This short term writes to friends who have not been developed by Eclipse Resin, and is not written to everyone. :) Mainly introduces how to run and debug web applications in Eclipse without the resin plugin.
Because there is no need to plugin, the pure Java environment is running, and the steps may be more. The following is an example of how to configure eclipse3.0.1, resin3.0.12, and the relevant configuration content is for reference only.
1. Establishing the basic structure First, in Eclipse, create a new project PJT, the structure is as follows: || --SRC || --Context | | - Web-inf | | --classes | --LIB SRC: Category Catex Copy: Web Application Document Directory, Web-App Document-DirectoryWeb-INF: Your * .xml, *. TLD, etc. State is stored here. Classes: Class Compilation Output Folder LIB: The deposit directory of the class library, stores the corresponding Application Runs to the class library above is a general structure, and believe that friends who have been developing will understand.
2. Configure the project properties Configure in the project properties: The default output folder compiled by the project Java file is the Classes directory above. Add a compilation needed JAR in the LIB list. The specific configuration is set to personal circumstances.
3, configure resin's conf copying a resin.conf under the resin installation directory confed, named Test.conf Editing the content, by default, add a line to the host> above it:
4. Configure Eclipse's run to open the "Run" menu of Eclipse, select "Run", if you are English, it should be RUN. :) Select the Java application, click the new button below, create a new running project. The name is filled out, and we temporarily name this example with Runtest. The related properties are then configured.
(1) Main projects: We choose the new PJT project that has just been built. MAIN: Fill in com.caucho.server.resin.resin, if you use the resin2.1.5 series should be com.caucho.server.http.httpserver
(2) Arrivals from variable procedures: -conf "d: /resin-3.0.12/conf/test.conf" VM argument: -dresin.home = "g: /worksspa/resin-3.0.12" -djava .util.logging.manager = com.caucho.log.logmanagerImpl If it is developed TapeStry, you need to automatically update, then add: -dorg.apache.tapestry.Nable-reset-service = true -dorg.apache.tapestry. Disable-caching = TRUE
(3) JRE: Select the JRE installed in your own system.
(4) Class Path: Add the JAR under the LIB of Resin Home.
Other projects can be customized by default or according to the situation. After configuring, click the "Apply" button, then click the "Run" button below to run the item. :)
You will find that there is more Runtest in the drop-down list of the toolbar on the toolbar. This will run this PJT project after running and debug buttons on the toolbar.