-
Type:
Bug
-
Status: Resolved
-
Priority:
Minor
-
Resolution: Done
-
Affects Version/s: 4.4.1-fuse-01-20
-
Fix Version/s: 4.4.1-fuse-02-xx
-
Component/s: Samples
-
Labels:None
-
Environment:
apache-servicemix-4.4.1-fuse-01-20
Apache Maven 3.0.3
java version "1.6.0_29"
Installing the cxf-jaxrs example after completing a maven build results in the following exception...
karaf@root> features:install examples-cxf-jaxrs
|
Refreshing bundles org.apache.cxf.bundle (125)
|
ERROR: Bundle org.apache.servicemix.jbi.deployer [154] EventDispatcher: Error during dispatch. (java.lang.NoClassDefFoundError: javax/xml/parsers/DocumentBuilderFactory)
|
java.lang.NoClassDefFoundError: javax/xml/parsers/DocumentBuilderFactory
|
at org.apache.cxf.common.logging.LogUtils.<clinit>(LogUtils.java:68)
|
at org.apache.cxf.BusFactory.<clinit>(BusFactory.java:71)
|
at org.apache.servicemix.cxfse.CxfSeComponent.doShutDown(CxfSeComponent.java:95)
|
at org.apache.servicemix.common.AsyncBaseLifeCycle.shutDown(AsyncBaseLifeCycle.java:259)
|
at org.apache.servicemix.jbi.deployer.artifacts.ComponentImpl$ComponentWrapper.shutDown(ComponentImpl.java:277)
|
at org.apache.servicemix.jbi.deployer.artifacts.ComponentImpl.shutDown(ComponentImpl.java:182)
|
at org.apache.servicemix.jbi.deployer.impl.Deployer.unregisterComponent(Deployer.java:452)
|
at org.apache.servicemix.jbi.deployer.impl.Deployer.unregisterDeployedComponent(Deployer.java:676)
|
at org.apache.servicemix.jbi.deployer.impl.Deployer$1.removedService(Deployer.java:223)
|
at org.osgi.util.tracker.ServiceTracker$Tracked.customizerRemoved(ServiceTracker.java:922)
|
at org.osgi.util.tracker.AbstractTracked.untrack(AbstractTracked.java:351)
|
at org.osgi.util.tracker.ServiceTracker$Tracked.serviceChanged(ServiceTracker.java:865)
|
at org.apache.felix.framework.util.EventDispatcher.invokeServiceListenerCallback(EventDispatcher.java:859)
|
at org.apache.felix.framework.util.EventDispatcher.fireEventImmediately(EventDispatcher.java:721)
|
at org.apache.felix.framework.util.EventDispatcher.fireServiceEvent(EventDispatcher.java:649)
|
at org.apache.felix.framework.Felix.fireServiceEvent(Felix.java:3781)
|
at org.apache.felix.framework.Felix.access$000(Felix.java:79)
|
at org.apache.felix.framework.Felix$2.serviceChanged(Felix.java:723)
|
at org.apache.felix.framework.ServiceRegistry.unregisterService(ServiceRegistry.java:135)
|
at org.apache.felix.framework.ServiceRegistrationImpl.unregister(ServiceRegistrationImpl.java:129)
|
at org.apache.felix.framework.ServiceRegistry.unregisterServices(ServiceRegistry.java:178)
|
at org.apache.felix.framework.Felix.stopBundle(Felix.java:2247)
|
at org.apache.felix.framework.Felix$RefreshHelper.stop(Felix.java:4573)
|
at org.apache.felix.framework.Felix.refreshPackages(Felix.java:3590)
|
at org.apache.felix.framework.PackageAdminImpl.run(PackageAdminImpl.java:365)
|
at java.lang.Thread.run(Thread.java:680)
|
Caused by: java.lang.ClassNotFoundException: javax.xml.parsers.DocumentBuilderFactory not found by org.apache.cxf.bundle [125]
|
at org.apache.felix.framework.ModuleImpl.findClassOrResourceByDelegation(ModuleImpl.java:812)
|
at org.apache.felix.framework.ModuleImpl.access$400(ModuleImpl.java:72)
|
at org.apache.felix.framework.ModuleImpl$ModuleClassLoader.loadClass(ModuleImpl.java:1806)
|
at java.lang.ClassLoader.loadClass(ClassLoader.java:247)
|
... 26 more
|
I have also seen this occur with the prebuilt cxf-jaxrs feature packaged with the distribution