10 Replies Latest reply on Aug 17, 2010 9:59 PM by ffang

    "Unresolved constraint in bundle" deploy exception

    rkozura

      Hello, I am just starting out using FUSE ESB and I am having problems deploying my osgi bundle.

       

      I start out building the cxf-osgi example program using maven.  I added a mandatory external jar to the maven repository with the following command:

       

      mvn install:install-file -Dfile="technica -util.jar" -DgroupId=com.technicacorp -DartifactId=util -Dversion=1.0 -Dpackaging=jar -DgeneratePom=true

       

      I edited the project's pom.xml file to include the dependency and import the package.  I do a "mvn install" and it generates a .jar file.  I drop the jar file into the deploy folder while FUSE ESB is running and I get the following error:

       

      karaf@root> ERROR: Error starting file:  test.jar (org.osgi.framework.BundleException: Unresolved constraint in bundle test : package; (package=com.technicacorp.util.distributor)) org.osgi.framework.BundleException: Unresolved constraint in bundle test : package; (package=com.technicacorp.util.distributor)

              at org.apache.felix.framework.Felix.resolveBundle(Felix.java:3299)

              at org.apache.felix.framework.Felix.startBundle(Felix.java:1657)

              at org.apache.felix.framework.Felix.setActiveStartLevel(Felix.java:1128)

       

              at org.apache.felix.framework.StartLevelImpl.run(StartLevelImpl.java:264

      )

              at java.lang.Thread.run(Thread.java:595)

       

       

      How the heck do I solve this problem?  I am sorry if I am leaving details out, nothing comes to mind right now.  If you need more information I would be glad to supply it.  I have attached my pom file if you want to have a look.

       

      Thank you for helping me.

       

      Edited by: rkozura on Aug 2, 2010 9:35 PM