0 Replies Latest reply on Jan 18, 2010 5:10 PM by Ben O'Day

    Missing Constraint: Import-Package:

    Ben O'Day Newbie

      I'm trying to deploy a servicemix-camel project using the maven-bundle-plugin, but keep running into various constraint/import package issues after deploying to Fuse 4.1.0-psc-01-00RC1.

       

      Clearly, I'm doing something wrong with my maven-bundle-plugin setup or need to install some packages into OSGI or something.  I'm new to Fuse4.1/OSGI and am trying to port my existing SMX3.3.1 service assembly into an OSGI-bundle deployment.

       

      I started with a missing constraint/import package error for bsh and jamonapi.  I added these as dependencies to my bundle artifact and the latest stacktrace is below...

       

      Also, I'm using an out of the box Fuse 4.1 configuration and here is my plugin configuration...I've tried various configurations of Import-Package/Export-Package, but don't really understand what I need to do...

       

       

       

      my pom.xml file is attached and here is the stacktrace ...any help would be much appreciated

       

      org.osgi.framework.BundleException: The bundle could not be resolved. Reason: Missing Constraint: Import-Package: com.sun.enterprise.loader; version="0.0.0"

              at org.eclipse.osgi.framework.internal.core.AbstractBundle.getResolverError(AbstractBundle.java:1313)

              at org.eclipse.osgi.framework.internal.core.AbstractBundle.getResolutionFailureException(AbstractBundle.java:1297)

              at org.eclipse.osgi.framework.internal.core.BundleHost.startWorker(BundleHost.java:309)

              at org.eclipse.osgi.framework.internal.core.AbstractBundle.start(AbstractBundle.java:280)

              at org.eclipse.osgi.framework.internal.core.AbstractBundle.start(AbstractBundle.java:272)

              at org.apache.felix.fileinstall.internal.DirectoryWatcher.start(DirectoryWatcher.java:1028)

              at org.apache.felix.fileinstall.internal.DirectoryWatcher.start(DirectoryWatcher.java:1014)

              at org.apache.felix.fileinstall.internal.DirectoryWatcher.startAllBundles(DirectoryWatcher.java:1007)

              at org.apache.felix.fileinstall.internal.DirectoryWatcher.process(DirectoryWatcher.java:396)

              at org.apache.felix.fileinstall.internal.DirectoryWatcher.run(DirectoryWatcher.java:206)