Some Eclipse Foundation services are deprecated, or will be soon. Please ensure you've read this important communication.

Bug 324641

Summary: [WAR products] Adding servletbridge does not work reliable
Product: z_Archived Reporter: Dmitry Egorov <dima>
Component: LibraAssignee: Project Inbox <libra.warproducts-inbox>
Status: RESOLVED WORKSFORME QA Contact: Holger Staudacher <holger.staudacher>
Severity: normal    
Priority: P3 CC: ellisdp, hannes, holger.staudacher, milesparker, ricky.deklerck
Version: unspecified   
Target Milestone: ---   
Hardware: PC   
OS: Windows XP   
Whiteboard:
Attachments:
Description Flags
Eclipse target definition
none
Screen Shot of Validation Problem none

Description Dmitry Egorov CLA 2010-09-07 06:59:57 EDT
Build Identifier: 

I works under Windows XP, Eclipse Helios and RAP 1.3
When i try to use RAP WAR Deployment tool have some problem after “War Product Configuration” wizard complete :
1. in my case, wizard generate instead name eclipse.equinox.servletbridge_1.2.0.v20091026.jar strange name: .jar
2. respectively, when i try validate project i got message:
“Library doesn’t exist at location .jar
Missing library org.eclipse.equinox.servletbridge.jar”
I try my project and demo RAP mail template with the same result.


Reproducible: Always

Steps to Reproduce:
Steps to reproduce this erorrs:
1. Create new workspace;
2. New/Project/Plug-in Project, in wizard select RAP Mail Template
3. New/Other/Plug-in Development/War product Configuration, select RAP mail demo (step.2), 
"file name"- export, 
"use launch configuration" - RAP mail demo.
finish
4. file export.warproduct      
see tab "Configuration", label "Libraries"
5. Press button "validate"
Comment 1 Dmitry Egorov CLA 2010-09-07 07:01:44 EDT
Created attachment 178309 [details]
Eclipse target definition

target definition
Comment 2 David Ellis CLA 2010-10-12 11:39:30 EDT
I had the same issue.

When I went to Validate Bundles it could not find the library org.eclipse.equinox.servletbridge_xx.jar in the expected location. I worked around this by taking a copy of this jar from the runtime bundles into my project’s “lib” folder, and then removing and re-adding this in the WAR Product Configuration, and it then validated OK.

I captured a screen shot which I will attach.
Comment 3 David Ellis CLA 2010-10-12 11:40:45 EDT
Created attachment 180678 [details]
Screen Shot of Validation Problem
Comment 4 Miles Parker CLA 2010-12-29 21:27:58 EST
Same issue here. I tried David's workaround but wasn't able to get it to work. :(
Comment 5 Ricky de Klerck CLA 2011-01-07 05:42:14 EST
(In reply to comment #4)
> Same issue here. I tried David's workaround but wasn't able to get it to work.
> :(

The workaround worked fine for me.

These are the steps:

- create lib folder in your project
- copy jar's from requiredbundles.zip to lib folder
- go to your warproduct configuration
- In section 'libraries' remove the library listed here
- add libraries from the lib folder
- validate