Some Eclipse Foundation services are deprecated, or will be soon. Please ensure you've read this important communication.
Bug 371064 - Bundle project cannot reference an exported package from another Bundle project
Summary: Bundle project cannot reference an exported package from another Bundle project
Status: RESOLVED INVALID
Alias: None
Product: Virgo
Classification: RT
Component: tooling (show other bugs)
Version: unspecified   Edit
Hardware: PC Windows Server 2003
: P3 critical (vote)
Target Milestone: ---   Edit
Assignee: Project Inbox CLA
QA Contact:
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2012-02-09 06:50 EST by Brian Williamson CLA
Modified: 2012-02-13 18:37 EST (History)
3 users (show)

See Also:


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Brian Williamson CLA 2012-02-09 06:50:50 EST
Build Identifier: Version: Indigo Service Release 1 Build id: 20110916-0149 Virgo Tooling Version 1.0.0.201110312003-SNAPSHOT

Regardless of what type of project is created (EclipseRT Bundle, Spring Bundle, Spring with OSGi nature installed) any exported packages from bundle A cannot be imported into bundle B.  The manifest editor seems to find the exported packages ok and allows their selection however once added to the manifest, tooling reports that the package cannot be resolved.

For additional info, please see Eclipse forum entry:
http://www.eclipse.org/forums/index.php/mv/msg/285975/793713/

Reproducible: Always

Steps to Reproduce:
1. Create two bundle projects
2. Create a package in each project
3. Create a class in each project
4. Export package(s) in manifest.mf
5. Import package in only one project
6. Save manifest.mf and error should appear.

I've basically be trying to create a virgin project for use with Virgo and ran into this problem.  From the assistance I have received in the Virgo forums it has been identified as a bug.

For additional info, please see Eclipse forum entry:
http://www.eclipse.org/forums/index.php/mv/msg/285975/793713/
Comment 1 Miles Parker CLA 2012-02-09 16:00:39 EST
Marking as critical, since you really can't use the tooling in a meaningful way without this.
Comment 2 Miles Parker CLA 2012-02-13 17:45:08 EST
OK, this ended up being invalid. In order to establish a dependency between Virgo bundles you need to be using a par project. You can also do this with plans, but it is unlcear to me right now how that would work, as it seems that you would have to deploy the dependency to the server in order to actually use it.
Comment 3 Glyn Normington CLA 2012-02-13 18:37:04 EST
Please note that an alternative to a PAR is to use a plan, but note that the tooling support for plans is currently rather rudimentary.