5 Replies Latest reply on Jan 27, 2009 2:46 PM by Dave Stanley

    ActiveMQConnectionFactory NoClassDefFoundError: /26-beginner-exercise.html

    John O'Neill Newbie

      I'm configuring the tutorial on Link: http://servicemix.apache.org/26-beginner-exercise.html and have the following problem below on deploying the SA for this example.  This is happening on loading the SA using the Service Mix Console.  I'm not sure if I am missing a jar or the classpath needs to be set in some other fashion. I'm able to perform a Static deploy using ActiveMQ for application that is working fine.  Can anyone point out my problem? I'm running on Geronimo 2.1.3, apache-servicemix-3.4.0.0-fuse.

       

      Thanks,

      John

       

      *xbean.xml*

      <beans xmlns:jms="http://servicemix.apache.org/jms/1.0"

      xmlns:test="http://test"

      xmlns:amq="http://activemq.org/config/1.0"

      xmlns="http://www.springframework.org/schema/beans"

      xmlns:xsi="http://http://www.w3.org/2001/XMLSchema-instance"

      xsi:schemaLocation="http://servicemix.apache.org/jms/1.0 http://servicemix.apache.org/schema/servicemix-jms-3.2.2.xsd

      http://activemq.org/config/1.0 http://activemq.apache.org/schema/core/activemq-core-4.1.1.xsd

      http://www.springframework.org/schema/beans http://www.springframework.org/schema/beans/spring-beans-2.0.xsd">

       

      <jms:endpoint service="tut:jms"

      endpoint="myQueue"

      role="provider"

      destinationStyle="queue"

      jmsProviderDestinationName="queue/tutorial"

      connectionFactory="#connectionFactory"/>

       

      <amq:connectionFactory id="connectionFactory" brokerURL="tcp://localhost:61616" />

       

      <!-- JMS ConnectionFactory from JNDI -

      <bean id="connectionFactory" class="org.springframework.jndi.JndiObjectFactoryBean">

      <property name="jndiName" value="ConnectionFactory" />

      </bean>

      -->

       

      </beans>

       

      Error Log

      java.lang.Exception: <?xml version="1.0" encoding="UTF-8"?>

      <jbi-task xmlns="http://java.sun.com/xml/ns/jbi/management-message" version="1.0">

      <jbi-task-result>

      <frmwk-task-result>

      <frmwk-task-result-details>

      <task-result-details>

      <task-id>deploy</task-id>

      <task-result>FAILED</task-result>

      <message-type>ERROR</message-type>

      </task-result-details>

      </frmwk-task-result-details>

      </frmwk-task-result>

      <component-task-result>

      <component-name>servicemix-file</component-name>

      <component-task-result-details>

      <task-result-details>

      <task-id>deploy</task-id>

      <task-result>SUCCESS</task-result>

      </task-result-details>

      </component-task-result-details>

      </component-task-result>

      <component-task-result>

      <component-name>servicemix-jms</component-name>

      <component-task-result-details>

      <task-result-details>

      <task-id>deploy</task-id>

      <task-result>FAILED</task-result>

      <message-type>ERROR</message-type>

      <task-status-msg>

      <msg-loc-info>

      <loc-token/>

      <loc-message>Could not deploy xbean service unit</loc-message>

      </msg-loc-info>

      </task-status-msg>

      <exception-info>

      <nesting-level>1</nesting-level>

      <msg-loc-info>

      <loc-token/>

      <loc-message>Configuration problem: Class that bean class http://org.apache.activemq.spring.ActiveMQConnectionFactory depends on not found Offending resource: file C:\geronimo\geronimo-tomcat6-javaee5-2.1.3\data\smx\service-assemblies\tutorial-sa\version_2\sus\servicemix-jms\tutorial-jms-su\xbean.xml Bean 'connectionFactory'; nested exception is java.lang.NoClassDefFoundError: org/springframework/beans/factory/InitializingBean</loc-message> <stack-trace><![CDATA[org.springframework.beans.factory.parsing.BeanDefinitionParsingException: Configuration problem: Class that bean class http://org.apache.activemq.spring.ActiveMQConnectionFactory depends on not found Offending resource: file C:\geronimo\geronimo-tomcat6-javaee5-2.1.3\data\smx\service-assemblies\tutorial-sa\version_2\sus\servicemix-jms\tutorial-jms-su\xbean.xml Bean 'connectionFactory'; nested exception is java.lang.NoClassDefFoundError: org/springframework/beans/factory/InitializingBean at org.springframework.beans.factory.parsing.FailFastProblemReporter.error(FailFastProblemReporter.java:68) at org.springframework.beans.factory.parsing.ReaderContext.error(ReaderContext.java:85)

      at org.springframework.beans.factory.xml.BeanDefinitionParserDelegate.error(BeanDefinitionParserDelegate.java:288)

      at

      org.springframework.beans.factory.xml.BeanDefinitionParserDelegate.parseBeanDefinitionElement(BeanDefinitionParserDelegate.java:572)

      at

      org.apache.xbean.spring.context.v2c.XBeanBeanDefinitionParserDelegate.parseBeanDefinitionElement(XBeanBeanDefinitionParserDelegate.java:58)

      at

      org.springframework.beans.factory.xml.BeanDefinitionParserDelegate.parseBeanDefinitionElement(BeanDefinitionParserDelegate.java:389)

      at org.apache.xbean.spring.context.v2c.XBeanNamespaceHandler.parseBeanFromExtensionElement(XBeanNamespaceHandler.java:223)

      at org.apache.xbean.spring.context.v2c.XBeanNamespaceHandler.parseBeanFromExtensionElement(XBeanNamespaceHandler.java:271)

      at org.apache.xbean.spring.context.v2c.XBeanNamespaceHandler.parse(XBeanNamespaceHandler.java:155)

      at org.apache.xbean.spring.context.v2.XBeanNamespaceHandler.parse(XBeanNamespaceHandler.java:49)

      at org.springframework.beans.factory.xml.BeanDefinitionParserDelegate.parseCustomElement(BeanDefinitionParserDelegate.java:1255)

      at org.springframework.beans.factory.xml.BeanDefinitionParserDelegate.parseCustomElement(BeanDefinitionParserDelegate.java:1245)

      at

      org.apache.xbean.spring.context.v2.XBeanBeanDefinitionDocumentReader.parseBeanDefinitions(XBeanBeanDefinitionDocumentReader.java:84)

      at

      org.springframework.beans.factory.xml.DefaultBeanDefinitionDocumentReader.registerBeanDefinitions(DefaultBeanDefinitionDocumentReader.java:92)

      at org.springframework.beans.factory.xml.XmlBeanDefinitionReader.registerBeanDefinitions(XmlBeanDefinitionReader.java:507)

      at org.apache.xbean.spring.context.v2.XBeanXmlBeanDefinitionReader.registerBeanDefinitions(XBeanXmlBeanDefinitionReader.java:79)

      at org.springframework.beans.factory.xml.XmlBeanDefinitionReader.doLoadBeanDefinitions(XmlBeanDefinitionReader.java:398)

      at org.springframework.beans.factory.xml.XmlBeanDefinitionReader.loadBeanDefinitions(XmlBeanDefinitionReader.java:342)

      at org.springframework.beans.factory.xml.XmlBeanDefinitionReader.loadBeanDefinitions(XmlBeanDefinitionReader.java:310)

      at

      org.springframework.beans.factory.support.AbstractBeanDefinitionReader.loadBeanDefinitions(AbstractBeanDefinitionReader.java:143)

      at

      org.springframework.beans.factory.support.AbstractBeanDefinitionReader.loadBeanDefinitions(AbstractBeanDefinitionReader.java:178)

      at

      org.springframework.beans.factory.support.AbstractBeanDefinitionReader.loadBeanDefinitions(AbstractBeanDefinitionReader.java:149)

      at

      org.springframework.beans.factory.support.AbstractBeanDefinitionReader.loadBeanDefinitions(AbstractBeanDefinitionReader.java:212)

      at org.springframework.context.support.AbstractXmlApplicationContext.loadBeanDefinitions(AbstractXmlApplicationContext.java:113)

      at org.apache.xbean.spring.context.FileSystemXmlApplicationContext.loadBeanDefinitions(FileSystemXmlApplicationContext.java:168)

      at

      org.springframework.context.support.AbstractRefreshableApplicationContext.refreshBeanFactory(AbstractRefreshableApplicationContext.java:123)

      at org.springframework.context.support.AbstractApplicationContext.obtainFreshBeanFactory(AbstractApplicationContext.java:423)

      at org.springframework.context.support.AbstractApplicationContext.refresh(AbstractApplicationContext.java:353)

      at org.apache.servicemix.common.xbean.AbstractXBeanDeployer.deploy(AbstractXBeanDeployer.java:86)

      at org.apache.servicemix.common.BaseServiceUnitManager.doDeploy(BaseServiceUnitManager.java:88)

      at org.apache.servicemix.common.BaseServiceUnitManager.deploy(BaseServiceUnitManager.java:69)

      at org.apache.servicemix.jbi.framework.DeploymentService.deployServiceAssembly(DeploymentService.java:520)

      at org.apache.servicemix.jbi.framework.DeploymentService.deploy(DeploymentService.java:218)

      at org.apache.servicemix.jbi.framework.AdminCommandsService.deployServiceAssembly(AdminCommandsService.java:212)

      at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)

      at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39)

      at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)

      at java.lang.reflect.Method.invoke(Method.java:585)

      at org.apache.commons.beanutils.MethodUtils.invokeMethod(MethodUtils.java:216)

      at org.apache.servicemix.jbi.management.BaseStandardMBean.invoke(BaseStandardMBean.java:323)

      at com.sun.jmx.mbeanserver.DynamicMetaDataImpl.invoke(DynamicMetaDataImpl.java:213)

      at com.sun.jmx.mbeanserver.MetaDataImpl.invoke(MetaDataImpl.java:220)

      at com.sun.jmx.interceptor.DefaultMBeanServerInterceptor.invoke(DefaultMBeanServerInterceptor.java:815)

      at com.sun.jmx.mbeanserver.JmxMBeanServer.invoke(JmxMBeanServer.java:784)

      at org.springframework.jmx.access.MBeanClientInterceptor.invokeOperation(MBeanClientInterceptor.java:435)

      at org.springframework.jmx.access.MBeanClientInterceptor.invoke(MBeanClientInterceptor.java:326)

      at org.springframework.aop.framework.ReflectiveMethodInvocation.proceed(ReflectiveMethodInvocation.java:171)

      at org.springframework.aop.framework.JdkDynamicAopProxy.invoke(JdkDynamicAopProxy.java:204)

      at $Proxy29.deployServiceAssembly(Unknown Source)

      at org.apache.servicemix.web.controller.DeployServiceAssembly.onSubmit(DeployServiceAssembly.java:55)

      at org.springframework.web.servlet.mvc.SimpleFormController.processFormSubmission(SimpleFormController.java:267)

      at org.springframework.web.servlet.mvc.AbstractFormController.handleRequestInternal(AbstractFormController.java:265)

      at org.springframework.web.servlet.mvc.AbstractController.handleRequest(AbstractController.java:153)

      at org.springframework.web.servlet.mvc.SimpleControllerHandlerAdapter.handle(SimpleControllerHandlerAdapter.java:48)

      at org.springframework.web.servlet.DispatcherServlet.doDispatch(DispatcherServlet.java:875)

      at org.springframework.web.servlet.DispatcherServlet.doService(DispatcherServlet.java:809)

      at org.springframework.web.servlet.FrameworkServlet.processRequest(FrameworkServlet.java:571)

      at org.springframework.web.servlet.FrameworkServlet.doPost(FrameworkServlet.java:511)

      at javax.servlet.http.HttpServlet.service(HttpServlet.java:713)

      at javax.servlet.http.HttpServlet.service(HttpServlet.java:806)

      at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:290)

      at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:206)

      at org.apache.servicemix.web.filter.ApplicationContextFilter.doFilter(ApplicationContextFilter.java:81)

      at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:235)

      at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:206)

      at com.opensymphony.module.sitemesh.filter.PageFilter.parsePage(PageFilter.java:118)

      at com.opensymphony.module.sitemesh.filter.PageFilter.doFilter(PageFilter.java:52)

      at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:235)

      at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:206)

      at org.apache.catalina.core.StandardWrapperValve.invoke(StandardWrapperValve.java:233)

      at org.apache.catalina.core.StandardContextValve.invoke(StandardContextValve.java:191)

      at org.apache.geronimo.tomcat.valve.DefaultSubjectValve.invoke(DefaultSubjectValve.java:56)

      at org.apache.geronimo.tomcat.GeronimoStandardContext$SystemMethodValve.invoke(GeronimoStandardContext.java:406)

      at org.apache.geronimo.tomcat.valve.GeronimoBeforeAfterValve.invoke(GeronimoBeforeAfterValve.java:47)

      at org.apache.catalina.core.StandardHostValve.invoke(StandardHostValve.java:128)

      at org.apache.catalina.valves.ErrorReportValve.invoke(ErrorReportValve.java:102)

      at org.apache.catalina.core.StandardEngineValve.invoke(StandardEngineValve.java:109)

      at org.apache.catalina.valves.AccessLogValve.invoke(AccessLogValve.java:568)

      at org.apache.catalina.connector.CoyoteAdapter.service(CoyoteAdapter.java:286)

      at org.apache.coyote.http11.Http11Processor.process(Http11Processor.java:845)

      at org.apache.coyote.http11.Http11Protocol$Http11ConnectionHandler.process(Http11Protocol.java:583)

      at org.apache.tomcat.util.net.JIoEndpoint$Worker.run(JIoEndpoint.java:447)

      at java.lang.Thread.run(Thread.java:595)

      Caused by: java.lang.NoClassDefFoundError: org/springframework/beans/factory/InitializingBean

      at java.lang.ClassLoader.defineClass1(Native Method)

      at java.lang.ClassLoader.defineClass(ClassLoader.java:620)

      at java.security.SecureClassLoader.defineClass(SecureClassLoader.java:124)

      at org.apache.geronimo.kernel.classloader.JarFileClassLoader.access$200(JarFileClassLoader.java:52)

      at org.apache.geronimo.kernel.classloader.JarFileClassLoader$6.run(JarFileClassLoader.java:308)

      at java.security.AccessController.doPrivileged(Native Method)

      at org.apache.geronimo.kernel.classloader.JarFileClassLoader.findClass(JarFileClassLoader.java:260)

      at org.apache.geronimo.kernel.config.MultiParentClassLoader.loadClassInternal(MultiParentClassLoader.java:479)

      at org.apache.geronimo.kernel.config.MultiParentClassLoader.checkParents(MultiParentClassLoader.java:504)

      at org.apache.geronimo.kernel.config.MultiParentClassLoader.loadClassInternal(MultiParentClassLoader.java:465)

      at org.apache.geronimo.kernel.config.MultiParentClassLoader.checkParents(MultiParentClassLoader.java:504)

      at org.apache.geronimo.kernel.config.MultiParentClassLoader.loadClassInternal(MultiParentClassLoader.java:465)

      at org.apache.geronimo.kernel.config.MultiParentClassLoader.checkParents(MultiParentClassLoader.java:504)

      at org.apache.geronimo.kernel.config.MultiParentClassLoader.loadOptimizedClass(MultiParentClassLoader.java:416)

      at org.apache.geronimo.kernel.config.MultiParentClassLoader.loadClass(MultiParentClassLoader.java:279)

      at java.lang.ClassLoader.loadClass(ClassLoader.java:251)

      at org.apache.xbean.classloader.MultiParentClassLoader.loadClass(MultiParentClassLoader.java:184)

      at java.lang.ClassLoader.loadClass(ClassLoader.java:251)

      at org.apache.xbean.classloader.MultiParentClassLoader.loadClass(MultiParentClassLoader.java:184)

      at java.lang.ClassLoader.loadClass(ClassLoader.java:251)

      at org.apache.xbean.classloader.MultiParentClassLoader.loadClass(MultiParentClassLoader.java:184)

      at java.lang.ClassLoader.loadClass(ClassLoader.java:251)

      at org.springframework.util.ClassUtils.forName(ClassUtils.java:242)

      at org.springframework.beans.factory.support.BeanDefinitionReaderUtils.createBeanDefinition(BeanDefinitionReaderUtils.java:89)

      at

      org.springframework.beans.factory.xml.BeanDefinitionParserDelegate.parseBeanDefinitionElement(BeanDefinitionParserDelegate.java:462)

      ... 79 more

      ]]></stack-trace>

      </msg-loc-info>

      </exception-info>

      </task-result-details>

      </component-task-result-details>

      </component-task-result>

      <component-task-result>

      <component-name>servicemix-camel</component-name>

      <component-task-result-details>

      <task-result-details>

      <task-id>deploy</task-id>

      <task-result>SUCCESS</task-result>

      </task-result-details>

      </component-task-result-details>

      </component-task-result>

      </jbi-task-result>

      </jbi-task>