Issue Type: Bug Bug
Affects Versions: 1.2.0.Beta1
Assignee: Unassigned
Components: OSGi support
Created: 12/Nov/12 7:09 AM
Description:

When a camel project where we use camel cdi extension is intsalled on Apache Karaf running weld OSGI, then weld osgi core extension generates the following exception even if dynamic-import package has been set in the MANIFEST file

java.lang.ClassNotFoundException: org.apache.camel.spi.DataFormatResolver not found by org.jboss.weld.osgi.weld-osgi-core-extension [58]
at org.apache.felix.framework.BundleWiringImpl.findClassOrResourceByDelegation(BundleWiringImpl.java:1460)
at org.apache.felix.framework.BundleWiringImpl.access$400(BundleWiringImpl.java:72)
at org.apache.felix.framework.BundleWiringImpl$BundleClassLoader.loadClass(BundleWiringImpl.java:1843)
at java.lang.ClassLoader.loadClass(ClassLoader.java:247)
at org.jboss.weld.environment.osgi.api.events.AbstractServiceEvent.getServiceClasses(AbstractServiceEvent.java:198)
at org.jboss.weld.environment.osgi.impl.extension.ExtensionActivator.fireAllEvent(ExtensionActivator.java:293)
at org.jboss.weld.environment.osgi.impl.extension.ExtensionActivator.serviceChanged(ExtensionActivator.java:241)
at org.apache.felix.framework.util.EventDispatcher.invokeServiceListenerCallback(EventDispatcher.java:932)
at org.apache.felix.framework.util.EventDispatcher.fireEventImmediately(EventDispatcher.java:793)
at org.apache.felix.framework.util.EventDispatcher.fireServiceEvent(EventDispatcher.java:543)
at org.apache.felix.framework.Felix.fireServiceEvent(Felix.java:4260)
at org.apache.felix.framework.Felix.registerService(Felix.java:3275)
at org.apache.felix.framework.BundleContextImpl.registerService(BundleContextImpl.java:346)
at org.apache.felix.framework.BundleContextImpl.registerService(BundleContextImpl.java:320)
at org.apache.camel.impl.osgi.Activator$BaseService.doRegister(Activator.java:437)
at org.apache.camel.impl.osgi.Activator$BaseService.doRegister(Activator.java:429)
at org.apache.camel.impl.osgi.Activator$BaseService.doRegister(Activator.java:423)
at org.apache.camel.impl.osgi.Activator$BundleDataFormatResolver.register(Activator.java:259)
at org.apache.camel.impl.osgi.Activator.addingBundle(Activator.java:104)
at org.apache.camel.impl.osgi.tracker.BundleTracker$Tracked.customizerAdding(BundleTracker.java:431)
at org.apache.camel.impl.osgi.tracker.AbstractTracked.trackAdding(AbstractTracked.java:261)
at org.apache.camel.impl.osgi.tracker.AbstractTracked.track(AbstractTracked.java:234)
at org.apache.camel.impl.osgi.tracker.BundleTracker$Tracked.bundleChanged(BundleTracker.java:407)
at org.apache.felix.framework.util.EventDispatcher.invokeBundleListenerCallback(EventDispatcher.java:868)
at org.apache.felix.framework.util.EventDispatcher.fireEventImmediately(EventDispatcher.java:789)
at org.apache.felix.framework.util.EventDispatcher.fireBundleEvent(EventDispatcher.java:514)
at org.apache.felix.framework.Felix.fireBundleEvent(Felix.java:4244)
at org.apache.felix.framework.Felix.startBundle(Felix.java:1923)
at org.apache.felix.framework.Felix.setActiveStartLevel(Felix.java:1191)
at org.apache.felix.framework.FrameworkStartLevelImpl.run(FrameworkStartLevelImpl.java:295)
at java.lang.Thread.run(Thread.java:680)

Project: Weld
Priority: Major Major
Reporter: Charles Moulliard
This message is automatically generated by JIRA.
If you think it was sent incorrectly, please contact your JIRA administrators
For more information on JIRA, see: http://www.atlassian.com/software/jira