| Bundle Error:Import-package:xxxx can not be resovled [message #701015] |
Sun, 24 July 2011 08:46  |
xmuysa Messages: 1 Registered: July 2011 |
Junior Member |
|
|
Hi,
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
On element:manifest.mf
In folder:com.xxx.dao/src/main/resources/META-INF
Location:line 10
IDE:STS 2.7.1
Server:virgo web server
Where is the issue?
Don,
Yang
|
|
|
|
|
|
| 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 Messages: 1 Registered: August 2012 |
Junior Member |
|
|
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
Manifest-Version: 1.0
Bundle-Version: 1.0.0
Bundle-Name: HelloWorld
Bundle-ManifestVersion: 2
Bundle-Description: JAVAWORLD
Bundle-SymbolicName: com.javaworld.sample.HelloWorld
Bundle-Activator: com.javaworld.sample.HelloWorld.Activator
Import-Package: org.osgi.framework;version="[1.7.0,1.7.0]"
Export-Package: com.javaworld.sample.HelloWorld
Here is my importing MANIFEST.MF
Manifest-Version: 1.0
Bundle-Version: 1.0.0
Bundle-Name: HelloWorldSpring
Bundle-ManifestVersion: 2
Bundle-SymbolicName: HelloWorldSpring
Import-Package: com.javaworld.sample.HelloWorld,
org.osgi.framework;version="[1.7.0,1.7.0]"
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.
Thanks
|
|
|
Powered by
FUDForum. Page generated in 0.02285 seconds