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

Bug 355922

Summary: Missing imported package javax.servlet of a required bundle
Product: [Eclipse Project] Equinox Reporter: Jens Kutzsche <jens.kutzsche>
Component: Server-SideAssignee: equinox.server-side-inbox <equinox.server-side-inbox>
Status: CLOSED DUPLICATE QA Contact:
Severity: normal    
Priority: P3 CC: igor, tjwatson
Version: 3.7   
Target Milestone: ---   
Hardware: PC   
OS: Windows XP   
Whiteboard:
Attachments:
Description Flags
An example which shows the bug none

Description Jens Kutzsche CLA 2011-08-26 04:17:02 EDT
Build Identifier: 

Tycho 0.13.0-SNAPSHOT

If a bundle has set "Require-Bundle: com.caucho.hessian", then tycho can't resolve the package imports javax.servlet and javax.servlet.http of hessian when execute surefire. For example see bundle test2 on the attachment.

If the bundle set "Require-Bundle: com.caucho.hessian, javax.servlet", then tycho/surefire resolves the imports. For example see bundle test1 on the attachment.

It does not matter whether tycho use a target platform or a p2 repository set in the pom (see the parent pom in the example).

Reproducible: Always
Comment 1 Jens Kutzsche CLA 2011-08-26 04:23:48 EDT
Created attachment 202212 [details]
An example which shows the bug

I have the bug on every run of mvn install on the parent pom. The bundle test1 (with a workaround) is ok and the bundle test2 faild.
Comment 2 Igor Fedorenko CLA 2011-08-26 07:57:29 EDT
The problem is caused by org.eclipse.equinox.servletbridge.extensionbundle IU metadata claiming this bundle provides javax.servlet and couple of other javax.* packages even though these packages are not provided by the bundle.
Comment 3 Thomas Watson CLA 2011-08-26 09:02:42 EDT

*** This bug has been marked as a duplicate of bug 348045 ***