java.lang.NoClassDefFoundError: org/apache/activemq/ra/LocalAndXATransaction

servicemix-dev | Freeman Fang (JIRA) | 8 years ago
tip
Your exception is missing from the Samebug knowledge base.
Here are the best solutions we found on the Internet.
Click on the to mark the helpful solution and get rewards for you help.
  1. 0

    [jira] Resolved: (SMX4-104) servicemix-wsn2005 failed to start

    servicemix-dev | 8 years ago | Freeman Fang (JIRA)
    java.lang.NoClassDefFoundError: org/apache/activemq/ra/LocalAndXATransaction

    Root Cause Analysis

    1. java.lang.NoClassDefFoundError

      org/apache/activemq/ra/LocalAndXATransaction

      at org.apache.activemq.pool.JcaPooledConnectionFactory.createConnectionPool()
    2. ActiveMQ :: Pool
      PooledConnectionFactory.createConnection
      1. org.apache.activemq.pool.JcaPooledConnectionFactory.createConnectionPool(JcaPooledConnectionFactory.java:49)
      2. org.apache.activemq.pool.PooledConnectionFactory.createConnection(PooledConnectionFactory.java:111)
      3. org.apache.activemq.pool.PooledConnectionFactory.createConnection(PooledConnectionFactory.java:81)
      3 frames
    3. Java RT
      Method.invoke
      1. sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
      2. sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39)
      3. sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
      4. java.lang.reflect.Method.invoke(Method.java:585)
      4 frames
    4. Spring OSGi Core
      ServiceInvoker.invoke
      1. org.springframework.osgi.service.importer.support.internal.aop.ServiceInvoker.doInvoke(ServiceInvoker.java:64)
      2. org.springframework.osgi.service.importer.support.internal.aop.ServiceInvoker.invoke(ServiceInvoker.java:78)
      2 frames
    5. Spring AOP
      ReflectiveMethodInvocation.proceed
      1. org.springframework.aop.framework.ReflectiveMethodInvocation.proceed(ReflectiveMethodInvocation.java:171)
      2. org.springframework.aop.support.DelegatingIntroductionInterceptor.doProceed(DelegatingIntroductionInterceptor.java:131)
      3. org.springframework.aop.support.DelegatingIntroductionInterceptor.invoke(DelegatingIntroductionInterceptor.java:119)
      4. org.springframework.aop.framework.ReflectiveMethodInvocation.proceed(ReflectiveMethodInvocation.java:171)
      4 frames
    6. Spring OSGi Core
      ServiceTCCLInterceptor.invoke
      1. org.springframework.osgi.service.util.internal.aop.ServiceTCCLInterceptor.invoke(ServiceTCCLInterceptor.java:36)
      1 frame
    7. Spring AOP
      ReflectiveMethodInvocation.proceed
      1. org.springframework.aop.framework.ReflectiveMethodInvocation.proceed(ReflectiveMethodInvocation.java:171)
      1 frame
    8. Spring OSGi Core
      LocalBundleContextAdvice.invoke
      1. org.springframework.osgi.service.importer.support.LocalBundleContextAdvice.invoke(LocalBundleContextAdvice.java:59)
      1 frame
    9. Spring AOP
      JdkDynamicAopProxy.invoke
      1. org.springframework.aop.framework.ReflectiveMethodInvocation.proceed(ReflectiveMethodInvocation.java:171)
      2. org.springframework.aop.support.DelegatingIntroductionInterceptor.doProceed(DelegatingIntroductionInterceptor.java:131)
      3. org.springframework.aop.support.DelegatingIntroductionInterceptor.invoke(DelegatingIntroductionInterceptor.java:119)
      4. org.springframework.aop.framework.ReflectiveMethodInvocation.proceed(ReflectiveMethodInvocation.java:171)
      5. org.springframework.aop.framework.JdkDynamicAopProxy.invoke(JdkDynamicAopProxy.java:204)
      5 frames
    10. Unknown
      $Proxy74.createConnection
      1. $Proxy74.createConnection(Unknown Source)
      1 frame
    11. org.apache.servicemix
      ServiceRegistryImpl.register
      1. org.apache.servicemix.wsn.jms.JmsNotificationBroker.init(JmsNotificationBroker.java:48)
      2. org.apache.servicemix.wsn.component.WSNComponent.doInit(WSNComponent.java:159)
      3. org.apache.servicemix.common.AsyncBaseLifeCycle.init(AsyncBaseLifeCycle.java:193)
      4. org.apache.servicemix.jbi.deployer.impl.ComponentImpl$ComponentWrapper.init(ComponentImpl.java:244)
      5. org.apache.servicemix.jbi.runtime.impl.ComponentRegistryImpl.doRegister(ComponentRegistryImpl.java:97)
      6. org.apache.servicemix.jbi.runtime.impl.ComponentRegistryImpl.doRegister(ComponentRegistryImpl.java:37)
      7. org.apache.servicemix.nmr.core.ServiceRegistryImpl.register(ServiceRegistryImpl.java:47)
      7 frames
    12. Java RT
      Method.invoke
      1. sun.reflect.GeneratedMethodAccessor69.invoke(Unknown Source)
      2. sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
      3. java.lang.reflect.Method.invoke(Method.java:585)
      3 frames
    13. Spring OSGi Core
      OsgiServiceCollection$Listener.serviceChanged
      1. org.springframework.osgi.util.internal.ReflectionUtils.invokeMethod(ReflectionUtils.java:108)
      2. org.springframework.osgi.config.CustomListenerAdapterUtils.invokeCustomMethods(CustomListenerAdapterUtils.java:154)
      3. org.springframework.osgi.config.OsgiServiceLifecycleListenerAdapter.bind(OsgiServiceLifecycleListenerAdapter.java:186)
      4. org.springframework.osgi.service.importer.support.internal.util.OsgiServiceBindingUtils.callListenersBind(OsgiServiceBindingUtils.java:50)
      5. org.springframework.osgi.service.importer.support.internal.collection.OsgiServiceCollection$Listener.serviceChanged(OsgiServiceCollection.java:106)
      5 frames
    14. Apache Felix Framework
      BundleContextImpl.registerService
      1. org.apache.felix.framework.util.EventDispatcher.invokeServiceListenerCallback(EventDispatcher.java:765)
      2. org.apache.felix.framework.util.EventDispatcher.fireEventImmediately(EventDispatcher.java:623)
      3. org.apache.felix.framework.util.EventDispatcher.fireServiceEvent(EventDispatcher.java:554)
      4. org.apache.felix.framework.Felix.fireServiceEvent(Felix.java:3612)
      5. org.apache.felix.framework.Felix.access$000(Felix.java:36)
      6. org.apache.felix.framework.Felix$1.serviceChanged(Felix.java:626)
      7. org.apache.felix.framework.ServiceRegistry.fireServiceChanged(ServiceRegistry.java:559)
      8. org.apache.felix.framework.ServiceRegistry.registerService(ServiceRegistry.java:75)
      9. org.apache.felix.framework.Felix.registerService(Felix.java:2702)
      10. org.apache.felix.framework.BundleContextImpl.registerService(BundleContextImpl.java:254)
      11. org.apache.felix.framework.BundleContextImpl.registerService(BundleContextImpl.java:232)
      11 frames
    15. org.apache.servicemix
      Deployer$1.addingService
      1. org.apache.servicemix.jbi.deployer.impl.Deployer.registerService(Deployer.java:435)
      2. org.apache.servicemix.jbi.deployer.impl.Deployer.maybeWrapComponent(Deployer.java:402)
      3. org.apache.servicemix.jbi.deployer.impl.Deployer$1.addingService(Deployer.java:130)
      3 frames
    16. OSGi
      ServiceTracker$Tracked.serviceChanged
      1. org.osgi.util.tracker.ServiceTracker$Tracked.trackAdding(ServiceTracker.java:1021)
      2. org.osgi.util.tracker.ServiceTracker$Tracked.track(ServiceTracker.java:999)
      3. org.osgi.util.tracker.ServiceTracker$Tracked.serviceChanged(ServiceTracker.java:924)
      3 frames
    17. Apache Felix Framework
      BundleContextImpl.registerService
      1. org.apache.felix.framework.util.EventDispatcher.invokeServiceListenerCallback(EventDispatcher.java:765)
      2. org.apache.felix.framework.util.EventDispatcher.fireEventImmediately(EventDispatcher.java:623)
      3. org.apache.felix.framework.util.EventDispatcher.fireServiceEvent(EventDispatcher.java:554)
      4. org.apache.felix.framework.Felix.fireServiceEvent(Felix.java:3612)
      5. org.apache.felix.framework.Felix.access$000(Felix.java:36)
      6. org.apache.felix.framework.Felix$1.serviceChanged(Felix.java:626)
      7. org.apache.felix.framework.ServiceRegistry.fireServiceChanged(ServiceRegistry.java:559)
      8. org.apache.felix.framework.ServiceRegistry.registerService(ServiceRegistry.java:75)
      9. org.apache.felix.framework.Felix.registerService(Felix.java:2702)
      10. org.apache.felix.framework.BundleContextImpl.registerService(BundleContextImpl.java:254)
      10 frames
    18. Spring OSGi Core
      MandatoryDependencyBeanPostProcessor.postProcessAfterInitialization
      1. org.springframework.osgi.service.exporter.support.OsgiServiceFactoryBean.registerService(OsgiServiceFactoryBean.java:401)
      2. org.springframework.osgi.service.exporter.support.OsgiServiceFactoryBean.registerService(OsgiServiceFactoryBean.java:371)
      3. org.springframework.osgi.service.exporter.support.OsgiServiceFactoryBean$Executor.registerService(OsgiServiceFactoryBean.java:147)
      4. org.springframework.osgi.service.exporter.support.internal.controller.ExporterController.registerService(ExporterController.java:40)
      5. org.springframework.osgi.service.dependency.internal.DefaultMandatoryDependencyManager.startExporter(DefaultMandatoryDependencyManager.java:287)
      6. org.springframework.osgi.service.dependency.internal.DefaultMandatoryDependencyManager.checkIfExporterShouldStart(DefaultMandatoryDependencyManager.java:237)
      7. org.springframework.osgi.service.dependency.internal.DefaultMandatoryDependencyManager.discoverDependentImporterFor(DefaultMandatoryDependencyManager.java:230)
      8. org.springframework.osgi.service.dependency.internal.DefaultMandatoryDependencyManager.addServiceExporter(DefaultMandatoryDependencyManager.java:161)
      9. org.springframework.osgi.service.dependency.internal.MandatoryDependencyBeanPostProcessor.postProcessAfterInitialization(MandatoryDependencyBeanPostProcessor.java:46)
      9 frames
    19. Spring Beans
      AbstractAutowireCapableBeanFactory$1.run
      1. org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.applyBeanPostProcessorsAfterInitialization(AbstractAutowireCapableBeanFactory.java:361)
      2. org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.initializeBean(AbstractAutowireCapableBeanFactory.java:1343)
      3. org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.doCreateBean(AbstractAutowireCapableBeanFactory.java:473)
      4. org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory$1.run(AbstractAutowireCapableBeanFactory.java:409)
      4 frames
    20. Java RT
      AccessController.doPrivileged
      1. java.security.AccessController.doPrivileged(Native Method)
      1 frame
    21. Spring Beans
      DefaultListableBeanFactory.preInstantiateSingletons
      1. org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.createBean(AbstractAutowireCapableBeanFactory.java:380)
      2. org.springframework.beans.factory.support.AbstractBeanFactory$1.getObject(AbstractBeanFactory.java:264)
      3. org.springframework.beans.factory.support.DefaultSingletonBeanRegistry.getSingleton(DefaultSingletonBeanRegistry.java:221)
      4. org.springframework.beans.factory.support.AbstractBeanFactory.doGetBean(AbstractBeanFactory.java:261)
      5. org.springframework.beans.factory.support.AbstractBeanFactory.getBean(AbstractBeanFactory.java:185)
      6. org.springframework.beans.factory.support.AbstractBeanFactory.getBean(AbstractBeanFactory.java:164)
      7. org.springframework.beans.factory.support.DefaultListableBeanFactory.preInstantiateSingletons(DefaultListableBeanFactory.java:423)
      7 frames
    22. Spring Context
      AbstractApplicationContext.finishBeanFactoryInitialization
      1. org.springframework.context.support.AbstractApplicationContext.finishBeanFactoryInitialization(AbstractApplicationContext.java:729)
      1 frame
    23. Spring OSGi Core
      AbstractDelegatedExecutionApplicationContext.completeRefresh
      1. org.springframework.osgi.context.support.AbstractDelegatedExecutionApplicationContext.completeRefresh(AbstractDelegatedExecutionApplicationContext.java:276)
      1 frame
    24. org.springframework.osgi
      DependencyWaiterApplicationContextExecutor$CompleteRefreshTask.run
      1. org.springframework.osgi.extender.internal.dependencies.startup.DependencyWaiterApplicationContextExecutor$CompleteRefreshTask.run(DependencyWaiterApplicationContextExecutor.java:145)
      1 frame
    25. Java RT
      Thread.run
      1. java.lang.Thread.run(Thread.java:595)
      1 frame