Some Eclipse Foundation services are deprecated, or will be soon. Please ensure you've read this important communication.
Bug 316446 - WAR Deployment procedure for RAP 1.2.2
Summary: WAR Deployment procedure for RAP 1.2.2
Status: RESOLVED WORKSFORME
Alias: None
Product: RAP
Classification: RT
Component: Tools (show other bugs)
Version: 1.2   Edit
Hardware: All All
: P3 normal (vote)
Target Milestone: ---   Edit
Assignee: Project Inbox CLA
QA Contact:
URL:
Whiteboard:
Keywords: needinfo
Depends on:
Blocks:
 
Reported: 2010-06-10 07:44 EDT by Ryan Donnelly CLA
Modified: 2010-11-22 03:50 EST (History)
0 users

See Also:


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Ryan Donnelly CLA 2010-06-10 07:44:23 EDT
In RAP 1.2.2, I have just found the following bug:

#316443 Firefox 3.6: NumberFormatException on ToolItem click
https://bugs.eclipse.org/bugs/show_bug.cgi?id=316443

Given that it did not happen to me on Eclipse, but only when running the WAR under Tomcat, this led me to question my WAR deployment procedure.  Doing so raised questions about what the proper WAR deployment procedure would be for the 1.2.2 release, which although considered the latest stable, is several months behind HEAD.

    It seems to me that the procedure in the Eclipse Help article "WAR Deployment" is out of date, even with the help file provided by the latest (1.3 RC3) tooling.

    Specifically, the servletbridge project
    
org.eclipse.equinox.servletbridge.extensionbundle

is not mentioned in the article - it is not present in the bundle included in the help article:

http://127.0.0.1:49165/help/topic/org.eclipse.rap.help/help/html/advanced/servletbridge-anon.psf

nor is it in feature.xml from HEAD in org.eclipse.rap.demo.feature.


    However, sources such as the following lead me to believe that it is required.


http://wiki.eclipse.org/RAP/FAQ#Exported_WAR_file_does_not_work

#293020 War-deployment fails with equinox bridgeservlet from HEAD
https://bugs.eclipse.org/bugs/show_bug.cgi?id=293020


    If it is required, is there anything I need to do other than check out the project and include it in feature.xml before I run the webAppBuilder script?

    Is there anything else required that is not mentioned in the Help article?

    Since the WAR deployment procedure involves compiling the servletbridge,   the question arises, what version of the servletbridge projects should I have in my workspace when running the webAppBuilder script?  I have tried both the latest from HEAD (incl. the extensionbundle project) and the CVS source as of 27/01/2010 (the day after the 1.2.2 release).

    I understand that the WAR deployment procedure is likely in flux as the 1.3 release approaches, and that you are also working towards a more automated procedure (https://bugs.eclipse.org/bugs/show_bug.cgi?id=279743).  However, I am trying to work with the latest stable, 1.2.2, rather than 1.3 exactly because it is more stable than 1.3.
Comment 1 Benjamin Muskalla CLA 2010-06-29 09:41:40 EDT
The org.eclipse.equinox.servletbridge.extensionbundle fragment will be generated automatically at runtime by the Equinox Servlet Bridge. The only thing you need to do is to add it to the config.ini so OSGi can attach it.

Is there anything special you're missing in the tutorial? We reviewed it for Helios and the deployment works as expected for 1.2 and 1.3. The only thing we missed is to update the screenshot (see bug 318317 ). I'd suggest to close this bug as WORKSFORME because the tutorial works as is.

Ryan, I'd love to improve the documentation but I need concrete ideas what problem you have.
Comment 2 Ivan Furnadjiev CLA 2010-11-22 03:50:49 EST
I will close it as WORKSFORME, like Benny suggested. Ryan, please reopen if you still have a deployment problems.