Eclipse rap deploy-for eclipse 3.5 + Tomcat

Source: Internet
Author: User

I checked on the Internet for a long time about the deployment of rap and got the same answer: Use the RAP provided by eclipse. demo. the feature plug-in is automatically generated, but an error always occurs after half a day: "An entry point named 'default' does not exist". So I thought I should add my entry point, so I changed it? Startup = Hello, here hello is the entry point defined in rap, but the 'hello' does not exist is reported again, so I have to give up this method again and again.

Up to now, I don't know whether my operation is correct or whether this method is nonsense for 3.5. In a word, I did not try it out. This reminds me that when I got DND a few weeks ago, it was clear that the jar package contained the corresponding DND support, but it was not enough. Then there was no way to download the latest jar package,. Really TMD wants her uncle F!

Well, let's talk about the successful experience. Assume that you have a rap project waiting for deployment, and its project name can be arbitrary. Here we assume it is XXX. yyy.

1. Create the following directory structure under your favorite directory:
Note that the directory rap_web_deploy is the one you like very much.

2. Define a feature project: File/New/other... /feature project; select your plugins project XXX in the "referenced plug-ins and fragments" dialog box. YYY and all non-Source plug-ins, non-javax. servlet plug-ins, non-jetty plug-ins, sometimes if your system contains Org. apache. commons. the logging plug-in should not be selected. Again, the four plug-ins mentioned above are bothNoSelect because we need to deploy rap to Tomcat.

3. After defining the feature project, export its export, select the "deployable features" item, and set the export to the directory. Remember to export it to the eclipse directory. During the operation, eclipse will automatically copy all the Plugins you selected to eclipse/plugins.

4. Find and copy org from the Plugins directory under your eclipse installation directory. eclipse. update. configurator_3.3.0.v20090312.jar file to the Plugins of the above directory structure; of course, I am giving the files in my system. You may have different versions, but you only need to name the files;

5. Set servletbridge. jar is put in the Lib of the above directory structure; and org. eclipse. equinox. HTTP. put servletbridge_1.0.0.head.jar into plugins. The two files can be obtained from/files/wayne_wang/servletbridge.zip.

6. Create a config. ini file in the configuration directory. The file content is as follows:
# Product runtime configuration file
Osgi. bundles = org. eclipse. equinox. common @ 2: Start, org. eclipse. update. aggregator @ start, org. eclipse. equinox. HTTP. servletbridge @ start, org. eclipse. equinox. HTTP. registry @ start, Com. TR. helloworld. feature @ start
Osgi. Bundles. defaultstartlevel = 4

For example:/files/wayne_wang/config.rar, please note thatCom. Tr. helloworld. Feature @ startIt is the feature ID of the feature project you defined. It may be different from the project name, but you only need to use the feature ID.

6, define the Web. xml file in the WEB-INF directory, give an example:/files/wayne_wang/web.rar, you do not have to modify it can be used, of course, if yourProgramYou need more configurations and may need to update them further. We will not go into detail here.

7, WEB-INF directory compression, renamed to any file name. War, such as hello. War, and then deploy it to Tomcat, this does not need to be discussed. So how to access it? Actually, the access URL is:

Http: // localhost: 8080/Hello/RAP, the system will look for the default 'default' entry point. If your program is not defined, the system will definitely encounter an error? Startup = hello. hello is the entry point defined by your rap plug-in. However, at this time, you may find that your themes does not work, so good, you just need to replace the rap with the servlet name given when you define themes.

The following is my program interface. Let's take a look. It's good!

 

 

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.