|Bundle Error:Import-package:xxxx can not be resovled [message #701015]
||Sun, 24 July 2011 08:46
Registered: July 2011
I have created two bundle projects,one is com.xxx.domain and the other is com.xxx.dao.I export the package of com.xxx.domain,then import package in com.xxx.dao,but something has gone wrong with manifest.mf:
In the Marker page:
Description:Import-Bundle: com.xxx.domain [1.0.0, 1.0.0] could not be resolved
Server:virgo web server
Where is the issue?
|Re: Bundle Error:Import-package:xxxx can not be resovled [message #901365 is a reply to message #701015]
||Sat, 11 August 2012 10:13
| James Sharier
Registered: August 2012
Hi, I'm running into the same issue.|
I'm using STS-2.9.2.RELEASE with Virgo Tooling http://download.eclipse.org/virgo/milestone/tooling and Virgo 3.5.0.RELEASE.
I create two projects using the Virgo -> Bundle Project Wizard.
Here is my exporting MANIFEST.MF
Here is my importing MANIFEST.MF
As soon as I add the dependency Eclipse gives me this error.
Import-Package: com.javaworld.sample.HelloWorld [0.0.0, oo) could not be resolved MANIFEST.MF /HelloWorldSpring/src/META-INF line 6 Virgo Bundle Dependency Problem
I also tried adding the project containing the "com.javaworld.sample.HelloWorld" package via Project Properties -> Java Build Path -> Projects. Doing so allows me to access the classes within Eclipse without error but I still see the Import-Package error.
I tried to run both bundles in Virgo by using Run As -> Run on Server.
I noticed the bundle with the dependency (HelloWorldSpring) was started before the HelloWorld Bundle which was unexpected. I thought Virgo was supposed to determine the dependencies and launch the bundles in order?
Next I started Virgo within Eclipse with just the HelloWorld bundle and everything started. Then I ran the HelloWorldSpring bundle using Run As -> Run on Server and that successfully ran too.
Am I doing something wrong in Eclipse to cause the Import-Package error? Or is this a tool bug?
While developing do I need to manually deploy bundles in the proper order?
Any help is appreciated.
Powered by FUDForum
. Page generated in 0.01704 seconds