FUSE 4.4 Feature Install NoClassDefFoundError/Console Dead
dustin_dustin.schultz Jul 22, 2011 7:26 PMHi,
I'm upgrading from Fuse 4.2 to Fuse 4.4. I have a feature that consists of several other features (an "uber-feature") that installs fine on 4.2 however, it throws several seemingly random NoClassDefFoundErrors when trying to install on 4.4.
The NoClassDefFoundErrors always occur right after the "Refreshing bundles" message comes up.
I have tried installing each of the features that exist in this "uber-feature" and when they are individually installed - it works fine. I get no refreshing bundles messages and everything is in Active state.
-
karaf@root> features:install further-provisions
Refreshing bundles org.apache.activemq.activemq-console (46), org.springframework.core (73), org.springframework.context.support (69), org.apache.servicemix.bundles.jdom (61), org.springframework.beans (68), wrap_mvn_org.apache.poi_poi-ooxml_3.7 (217), org.apache.cxf.bundle (123), org.springframework.aop (74), org.springframework.context (70)
ERROR: Bundle org.apache.servicemix.jbi.deployer EventDispatcher: Error during dispatch. (java.lang.NoClassDefFoundError: org/apache/servicemix/nmr/api/service/ServiceHelper)
java.lang.NoClassDefFoundError: org/apache/servicemix/nmr/api/service/ServiceHelper
at org.apache.servicemix.jbi.runtime.impl.ComponentContextImpl.deactivateEndpoint(ComponentContextImpl.java:129)
at org.apache.servicemix.common.endpoints.ProviderEndpoint.deactivate(ProviderEndpoint.java:66)
at org.apache.servicemix.common.DefaultServiceUnit.shutDown(DefaultServiceUnit.java:126)
at org.apache.servicemix.common.DefaultComponent.doShutDown(DefaultComponent.java:369)
at org.apache.servicemix.wsn.component.WSNComponent.doShutDown(WSNComponent.java:197)
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:3762)
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.aries.blueprint.container.ServiceRecipe.unregister(ServiceRecipe.java:201)
at org.apache.aries.blueprint.container.BlueprintContainerImpl.notifySatisfaction(BlueprintContainerImpl.java:615)
at org.apache.aries.blueprint.container.AbstractServiceReferenceRecipe.setSatisfied(AbstractServiceReferenceRecipe.java:305)
at org.apache.aries.blueprint.container.AbstractServiceReferenceRecipe.serviceRemoved(AbstractServiceReferenceRecipe.java:281)
at org.apache.aries.blueprint.container.AbstractServiceReferenceRecipe.serviceChanged(AbstractServiceReferenceRecipe.java:251)
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:3762)
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.aries.blueprint.container.ServiceRecipe.unregister(ServiceRecipe.java:201)
at org.apache.aries.blueprint.container.BlueprintContainerImpl.unregisterServices(BlueprintContainerImpl.java:673)
at org.apache.aries.blueprint.container.BlueprintContainerImpl.namespaceHandlerUnregistered(BlueprintContainerImpl.java:866)
at org.apache.aries.blueprint.namespace.NamespaceHandlerRegistryImpl$NamespaceHandlerSetImpl.unregisterHandler(NamespaceHandlerRegistryImpl.java:365)
at org.apache.aries.blueprint.namespace.NamespaceHandlerRegistryImpl.unregisterHandler(NamespaceHandlerRegistryImpl.java:149)
at org.apache.aries.blueprint.namespace.NamespaceHandlerRegistryImpl.removedService(NamespaceHandlerRegistryImpl.java:119)
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:3762)
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.aries.blueprint.container.ServiceRecipe.unregister(ServiceRecipe.java:201)
at org.apache.aries.blueprint.container.BlueprintContainerImpl.unregisterServices(BlueprintContainerImpl.java:673)
at org.apache.aries.blueprint.container.BlueprintContainerImpl.destroy(BlueprintContainerImpl.java:822)
at org.apache.aries.blueprint.container.BlueprintExtender.destroyContext(BlueprintExtender.java:250)
at org.apache.aries.blueprint.container.BlueprintExtender.bundleChanged(BlueprintExtender.java:242)
at org.apache.aries.blueprint.container.BlueprintExtender$BlueprintBundleTrackerCustomizer.modifiedBundle(BlueprintExtender.java:431)
at org.osgi.util.tracker.BundleTracker$Tracked.customizerModified(BundleTracker.java:453)
at org.osgi.util.tracker.AbstractTracked.track(AbstractTracked.java:237)
at org.osgi.util.tracker.BundleTracker$Tracked.bundleChanged(BundleTracker.java:413)
at org.apache.felix.framework.util.EventDispatcher.invokeBundleListenerCallback(EventDispatcher.java:795)
at org.apache.felix.framework.util.EventDispatcher.fireEventImmediately(EventDispatcher.java:717)
at org.apache.felix.framework.util.EventDispatcher.fireBundleEvent(EventDispatcher.java:597)
at org.apache.felix.framework.Felix.fireBundleEvent(Felix.java:3751)
at org.apache.felix.framework.Felix.stopBundle(Felix.java:2200)
at org.apache.felix.framework.Felix$RefreshHelper.stop(Felix.java:4554)
at org.apache.felix.framework.Felix.refreshPackages(Felix.java:3571)
at org.apache.felix.framework.PackageAdminImpl.run(PackageAdminImpl.java:365)
at java.lang.Thread.run(Thread.java:680)
Caused by: java.lang.ClassNotFoundException: org.apache.servicemix.nmr.api.service.ServiceHelper not found by org.apache.servicemix.jbi.runtime
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:248)
... 70 more
org.springframework.osgi.extender[org.springframework.osgi.extender.internal.util.concurrent.RunnableTimedExecution] : Closing runnable for context OsgiBundleXmlApplicationContext(bundle=servicemix-cxf-se, config=osgibundle:/META-INF/spring/*.xml) did not finish in 10000ms; consider taking a snapshot and then shutdown the VM in case the thread still hangs
ERROR: Bundle org.apache.servicemix.jbi.deployer 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.(BusFactory.java:71)
at org.apache.servicemix.cxfse.CxfSeComponent.doShutDown(CxfSeComponent.java:96)
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:3762)
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:2228)
at org.apache.felix.framework.Felix$RefreshHelper.stop(Felix.java:4554)
at org.apache.felix.framework.Felix.refreshPackages(Felix.java:3571)
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
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:248)
... 26 more
-
The class defs that are not found seem to vary from time to time. Sometimes they are javax.jms classes.
All of these classes do exist on the bus.
I've set my MaxPerm space to 1G as well to make sure I'm not running out of memory.
Edited by: dustin on Jul 22, 2011 11:25 PM