Eclipse + resin = simple and easy-to-use web development portfolio

Source: Internet
Author: User
Eclipse + resin = simple and easy-to-use web development portfolio
I have never used eclipse for large-scale applications, and my understanding of eclipse is only at the hobby and familiarity stage.

I feel that the eclipse interface is good, giving me a fresh feeling that Java is well supported, but I am not sure to compliment JSP support. Both lomboz and jbosside plug-ins cannot meet the commercial ide standards such as JBuilder and intellij idea (I am also convinced that there are better plug-ins, maybe I have not found them ).

Some time ago, I used my spare time to help my friends develop a simple company website. Recently, I am almost obsessed with open source. I decided to use the eclipse + Tomcat (resion) combination, so I chose resin, it is because of the early exposure, which has been deeply attracted by its superior performance and simple configuration management functions. Let's go!

After some time of use, I feel that lomboz has better integration with the Web server, but it seems that the integration support for hibernet is not as powerful as that of jbosside. So I chose to create a project based on the jbosside plug-in, but I don't want to use JBoss as a server. After all, it's just a small web site. I don't need support from heavy components such as ejbs. To make it easier to port and deploy, even the database connection pool I don't use the server's own, Tomcat is enough, resin is good, faster and easier to debug than Tomcat

How can I integrate my project into the Resin server for debugging and development? After some exploration, I finally got a simple and feasible solution.

A bit: no plug-ins are required. It runs in a pure Java environment (eclipse3.0.1 and resin3.0.12)

1. Create a basic structure
First, create a new project website in eclipse with the following structure:
Website
| -- SRC
|
| -- Webapp
|
| -- WEB-INF
|
| -- Classes
| -- Lib

2. Configure Project Properties
Configure in the properties of this project:
The default Output Folder for Java file compilation in this project is the classes directory above.
Add the jar required for compilation in the Lib list
The specific configuration depends on your situation.

3. Configure the conf of resin.
Edit the content of the/resin/CONF/test. conf file. By default, you can also add a line above the file <Web-app id = '/' Document-directory = "F:/Eclipse/workspace/website/webapp"/>
This is the simplest configuration. Of course, you can customize the detailed parameters yourself.

4. Configure eclipse running
Open the Eclipse "run" menu and select "run"
Select a Java application and click the new button below to create a new running project.
Enter your own name. We will name this example with "resin3.0.12-javer website system. Configure the relevant attributes.

(1) Main
Project: select the newly created website project.
Main class: Fill in COM. Caucho. server. Resin. Resin

(2) Independent Variables
Program independent variable:-conf "D:/resin/CONF/test. conf"
VM independent variables:
-Dresin. Home = "D:/resin"
-Djava. util. Logging. Manager = com. Caucho. log. logmanagerimpl

(3) Class path: add the jar under the Lib of resin home.

Other projects can be customized by default or as needed.
After configuration, click the "application" button and then click the "run" button below to run the project.

In the future, you will find a "resin3.0.12-javer website system" added to the drop-down list of the running button on the toolbar"
In this way, you can use the run and debug buttons on the toolbar to run and debug my website project :)
 

Related Article

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.