Some Eclipse Foundation services are deprecated, or will be soon. Please ensure you've read this important communication.
Bug 355922 - Missing imported package javax.servlet of a required bundle
Summary: Missing imported package javax.servlet of a required bundle
Status: CLOSED DUPLICATE of bug 348045
Alias: None
Product: Equinox
Classification: Eclipse Project
Component: Server-Side (show other bugs)
Version: 3.7   Edit
Hardware: PC Windows XP
: P3 normal (vote)
Target Milestone: ---   Edit
Assignee: equinox.server-side-inbox CLA
QA Contact:
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2011-08-26 04:17 EDT by Jens Kutzsche CLA
Modified: 2011-08-26 09:02 EDT (History)
2 users (show)

See Also:


Attachments
An example which shows the bug (9.58 KB, application/octet-stream)
2011-08-26 04:23 EDT, Jens Kutzsche CLA
no flags Details

Note You need to log in before you can comment on or make changes to this bug.
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 ***