Caused by: java.lang.NoClassDefFoundError: Could not
initialize class org.apache.cxf.jaxrs.utils.JAXRSUtils...
...
41 more
Then if I uninstall the bundles and re-install them from the console, they cause a similar problem and the container is still not deploying my ReST service:
Caused by: java.lang.RuntimeException: java.lang.ClassNotFoundException: com.sun.ws.rs.ext.RuntimeDelegateImpl not found by org.fusesource.fabric.fabric-agent [63]
at javax.ws.rs.ext.RuntimeDelegate.findDelegate(RuntimeDelegate.java:122)
at javax.ws.rs.ext.RuntimeDelegate.getInstance(RuntimeDelegate.java:91)
at javax.ws.rs.core.MediaType.<clinit>(MediaType.java:44)
... 48 more
Caused by: java.lang.ClassNotFoundException: com.sun.ws.rs.ext.RuntimeDelegateImpl not found by org.fusesource.fabric.fabric-agent [63]
at org.apache.felix.framework.BundleWiringImpl.findClassOrResourceByDelegation(BundleWiringImpl.java:1467)
at org.apache.felix.framework.BundleWiringImpl.access$400(BundleWiringImpl.java:73)
at org.apache.felix.framework.BundleWiringImpl$BundleClassLoader.loadClass(BundleWiringImpl.java:1850)
at java.lang.ClassLoader.loadClass(ClassLoader.java:356)[:1.7.0_05]
at javax.ws.rs.ext.FactoryFinder.newInstance(FactoryFinder.java:37)
at javax.ws.rs.ext.FactoryFinder.find(FactoryFinder.java:143)
at javax.ws.rs.ext.RuntimeDelegate.findDelegate(RuntimeDelegate.java:105)
If I remove the two bundles out of my profile and restart the container, it works if I manually install the bundles and start them.
How does a bundle differ in being deployed in a profile vs manually? The bundles end up as start-level 60.
Thanks,
--Christian