mardi 14 avril 2015

In Virgo-Server Import-Package could not be resolved.Caused by missing constraint in bundle constraint

I am very new in Java Spring framework. I have created a custom bundle and want to deploy the jar/bundle in virgo server.But I am not able to successfully do so.


Here is my template.mf file screen , where I have added the dependency


enter image description here


Here is my java file , where I have imported the packages


enter image description here


Here is the original jar file screen


enter image description here


Here is my pom.xml where I have added the dependency


enter image description here


But once deploying the jar file after maven build (which throws no error ) I am constantly getting the error



Caused by: org.eclipse.virgo.kernel.osgi.framework.UnableToSatisfyBundleDependenciesException: Unable to satisfy dependencies of bundle 'com.xyz.costfromsap.application' at version '1.4.0.RELEASE': Cannot resolve: com.xyz.costfromsap.application
Resolver report:
An Import-Package could not be resolved. Caused by missing constraint in bundle <com.xyz.costfromsap.application_1.4.0.RELEASE>
constraint: <Import-Package: com.sap.conn.jco; version="[3.0.0,4.0.0)">


Here is my updated dependency jar file after converting it to OSGI bundler


enter image description here


I have also updated the template.mf and pom.xml


enter image description here enter image description here


But still the issue persists.


Aucun commentaire:

Enregistrer un commentaire