Using Java project as the resin project strategy in eclipse

Source: Internet
Author: User
For work reasons, you need to do web development in the resin environment. Ide is of course not eclipse. Improve-technologies, a company that provides resin plug-ins under eclipse, is well-known. Through its website, improve technologies should be a French company, of course (I take it for granted) it also inherits the romance and laziness of French people. This is what I dream of, but things are overwhelming. Eclipse has been upgraded to version 3.1.1 and version 3.2m3 has been available for download last weekend. However, the resin plug-in of improve technologies is still stopped at 16 Aug. in version 3.0.0 of 2004, the resin project created after eclipse 3.1.0 is installed does not have the corresponding resin launcher in the eclipse menu run, that is to say, you cannot start the resin debugging project in eclipse. I'm in a hurry. I see improve-technologies on a daily basis. It's not like my French friends who have half a year off in the first half of the year. It seems that "the relief is still dependent on yourself". I saw an article "Running resin in eclipse or as Java app." On www.caucho.com, and I tried it myself. Steps are as follows: 1. Create a Java project such as resinsample in eclipse. We recommend that you set source folder to resinsample/src and Output Folder to resinsample/web/WEB-INF/classes, in libraries, add % resin_home %/lib (I Used Resin 2.1.16 for testing. Other versions should be the same, but the last run class may be somewhat different) to all jar files in the folder, if it is often recommended to add as a user libraries; 2. Add the index for testing in resinsample/web. in the JSP file, write some test statements such as: 2 + 3 = <% = 2 + 3%>; 3. Replace resin in % resin_home %/CONF. copy conf to the resinsample folder and modify resin. in the conf file, add: <web-app id = 'resinsample' app-Dir = 'e:/myproj/Eclipse/workspace/resinsample/web'>
<Classpath id = 'web-INF/classe'
Source = 'e:/myproj/Eclipse/workspace/resinsample/src'
Compile = 'true'/>
</Web-app> note: the resin version may be slightly different. 4. Choose run> run... from the eclipse menu ..., in the run dialog box, enter COM. caucho. server. HTTP. resinserver (if resin 3. for Version X, enter COM. caucho. server. resin. resin), in arguments, enter-conf "$ {workspace_loc}/resinsample/resin. conf "specifies the resin configuration file to be used. Fill in-xms128m-xmx384m in VM arguments; 5. Run now. Enter http: // 127.0.0.1 in the browser: 8080/resinsample/index. JSP can be accessed. Now we know what the resin plug-in has done: 1. automatically add the resin lib to the project libraries; 2. automatically create the resin. conf and add the current project as a Web-app. 3. Set the parameter for running resin. Specify the main () class to run and the path name of the configuration file. Ha! This is simple. We are still waiting for the French to do what they do, but if they can hurry up, we can save some trouble.
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.