Hi Gert, I just found there are not other Spring relates jars in the camel-spring features package. May be I need to install the ServiceMix kernel features first to avoid the org.osgi.framework.BundleException.
Willem Willem Jiang wrote: > Hi Gert, > > Since I want to use the features out side of the Karaf, so I want the > stax-api bundle to be included in the camel-core feature. > I guess this inclusion will have side effect on camel-core be load by > Karaf :) > If so I'd like to do that change. > > Thanks, > > Willem > > > Gert Vanthienen wrote: >> Willem, >> >> The generator creates a features descriptor for use in Apache Karaf >> (aka ServiceMix Kernel). It calculates the bundles that are required >> for a given JAR to satisfy all the OSGi imports, but it also knows >> about the packages exported by Kernel itself. In this case, >> ServiceMix Kernel ships with a JAXP spec bundle that has the >> javax.xml.stream packages, so that's why it didn't include that >> bundle. >> >> So, if you'd like to get it included in the features descriptor >> anyway, the way to do it would be by excluding the JAXP Spec bundle >> from the kernel <dependency/> in the features' pom.xml (similar to >> what has been done for the asm bundle). >> >> Regards, >> >> Gert Vanthienen >> ------------------------ >> Open Source SOA: http://fusesource.com >> Blog: http://gertvanthienen.blogspot.com/ >> >> >> >> 2009/4/24 Willem Jiang <willem.ji...@gmail.com>: >>> Hi Gert, >>> >>> I'm try to load the Camel 2.0 SNAPSHOT features from the PAX-Exam. >>> I got below error when the PAX-Runner load the below bundle >>> <bundle>mvn:org.apache.servicemix.specs/org.apache.servicemix.specs.jaxb-api-2.1/1.3.0</bundle> >>> >>> BTW, If I remove the jaxb-api bundle, the camel-context can be start >>> without any error. >>> Did I miss some thing ? >>> >>> ## DEBUG: errors - FrameworkErrorEvent bundle #7 >>> ## DEBUG: errors - FrameworkErrorEvent throwable: >>> org.osgi.framework.BundleException: Unable to resolve bundle: missing >>> package(s) or can not resolve all of the them: >>> javax.xml.stream;version=1.0.0 >>> at >>> org.knopflerfish.framework.BundleImpl.getUpdatedState(BundleImpl.java:1036) >>> at org.knopflerfish.framework.BundleImpl.start(BundleImpl.java:312) >>> at >>> org.knopflerfish.framework.StartLevelImpl.increaseStartLevel(StartLevelImpl.java:278) >>> at >>> org.knopflerfish.framework.StartLevelImpl$1.run(StartLevelImpl.java:210) >>> at >>> org.knopflerfish.framework.StartLevelImpl.run(StartLevelImpl.java:171) >>> at java.lang.Thread.run(Thread.java:595) >>> org.osgi.framework.BundleException: Failed, missing package(s) or can >>> not resolve all of the them: javax.xml.stream;version=1.0.0 >>> at org.knopflerfish.framework.BundleImpl.start(BundleImpl.java:314) >>> at >>> org.knopflerfish.framework.StartLevelImpl.increaseStartLevel(StartLevelImpl.java:278) >>> at >>> org.knopflerfish.framework.StartLevelImpl$1.run(StartLevelImpl.java:210) >>> at >>> org.knopflerfish.framework.StartLevelImpl.run(StartLevelImpl.java:171) >>> at java.lang.Thread.run(Thread.java:595) >>> >>> Willem >>> > >