activemq-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Shamli <sham...@aztecsoft.com>
Subject Re: ActiveMQ4x with spring 1.2
Date Tue, 26 Sep 2006 08:52:23 GMT

I tried using 4.0.1. 4.0.1 snapshot as well as 4.0


Shamli wrote:
> 
> Thanks for such a quick response!!
> 
> First error i encountered :
> 
> 2006-09-25 16:58:19,140 [http-8080-Processor23] ERROR
> org.springframework.web.context.ContextLoader - Context initialization
> failed
> org.springframework.beans.factory.CannotLoadBeanClassException: Error
> loading class that [org.apache.activemq.xbean.BrokerFactoryBean] of bean
> with name 'broker' defined in ServletContext resource
> [/WEB-INF/applicationContext-jms.xml]: dependency not found; nested
> exception is java.lang.NoClassDefFoundError
> Caused by: 
> java.lang.NoClassDefFoundError
> 	at
> org.apache.activemq.xbean.BrokerFactoryBean.class$(BrokerFactoryBean.java:42)
> 	at
> org.apache.activemq.xbean.BrokerFactoryBean.<clinit>(BrokerFactoryBean.java:45)
> 	at java.lang.Class.forName0(Native Method)
> 	at java.lang.Class.forName(Class.java:242)
> 	at org.springframework.util.ClassUtils.forName(ClassUtils.java:160)
> 	at
> org.springframework.beans.factory.support.AbstractBeanDefinition.resolveBeanClass(AbstractBeanDefinition.java:308)
> 	at
> org.springframework.beans.factory.support.AbstractBeanFactory.resolveBeanClass(AbstractBeanFactory.java:853)
> 	at
> org.springframework.beans.factory.support.DefaultListableBeanFactory.getBeanNamesForType(DefaultListableBeanFactory.java:176)
> 	at
> org.springframework.context.support.AbstractApplicationContext.getBeanNamesForType(AbstractApplicationContext.java:686)
> 	at
> org.springframework.context.support.AbstractApplicationContext.invokeBeanFactoryPostProcessors(AbstractApplicationContext.java:397)
> 	at
> org.springframework.context.support.AbstractApplicationContext.refresh(AbstractApplicationContext.java:330)
> 	at
> org.springframework.web.context.support.AbstractRefreshableWebApplicationContext.refresh(AbstractRefreshableWebApplicationContext.java:156)
> 	at
> org.springframework.web.context.ContextLoader.createWebApplicationContext(ContextLoader.java:246)
> 	at
> org.springframework.web.context.ContextLoader.initWebApplicationContext(ContextLoader.java:184)
> 	at
> org.springframework.web.context.ContextLoaderListener.contextInitialized(ContextLoaderListener.java:49)
> 	at
> org.apache.catalina.core.StandardContext.listenerStart(StandardContext.java:3729)
> 	at
> org.apache.catalina.core.StandardContext.start(StandardContext.java:4187)
> 	at
> org.apache.catalina.core.ContainerBase.addChildInternal(ContainerBase.java:759)
> 	at
> org.apache.catalina.core.ContainerBase.addChild(ContainerBase.java:739)
> 	at org.apache.catalina.core.StandardHost.addChild(StandardHost.java:524)
> 	at org.apache.catalina.startup.HostConfig.deployWAR(HostConfig.java:809)
> 	at org.apache.catalina.startup.HostConfig.deployApps(HostConfig.java:497)
> 	at org.apache.catalina.startup.HostConfig.check(HostConfig.java:1204)
> 	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.modeler.BaseModelMBean.invoke(BaseModelMBean.java:503)
> 	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.apache.catalina.manager.ManagerServlet.check(ManagerServlet.java:1377)
> 	at
> org.apache.catalina.manager.ManagerServlet.deploy(ManagerServlet.java:814)
> 	at
> org.apache.catalina.manager.ManagerServlet.doGet(ManagerServlet.java:349)
> 	at javax.servlet.http.HttpServlet.service(HttpServlet.java:689)
> 	at javax.servlet.http.HttpServlet.service(HttpServlet.java:802)
> 	at
> org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:252)
> 	at
> org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:173)
> 	at
> org.apache.catalina.core.StandardWrapperValve.invoke(StandardWrapperValve.java:213)
> 	at
> org.apache.catalina.core.StandardContextValve.invoke(StandardContextValve.java:178)
> 	at
> org.apache.catalina.authenticator.AuthenticatorBase.invoke(AuthenticatorBase.java:524)
> 	at
> org.apache.catalina.core.StandardHostValve.invoke(StandardHostValve.java:126)
> 	at
> org.apache.catalina.valves.ErrorReportValve.invoke(ErrorReportValve.java:105)
> 	at
> org.apache.catalina.core.StandardEngineValve.invoke(StandardEngineValve.java:107)
> 	at
> org.apache.catalina.connector.CoyoteAdapter.service(CoyoteAdapter.java:148)
> 	at
> org.apache.coyote.http11.Http11Processor.process(Http11Processor.java:869)
> 	at
> org.apache.coyote.http11.Http11BaseProtocol$Http11ConnectionHandler.processConnection(Http11BaseProtocol.java:664)
> 	at
> org.apache.tomcat.util.net.PoolTcpEndpoint.processSocket(PoolTcpEndpoint.java:527)
> 	at
> org.apache.tomcat.util.net.LeaderFollowerWorkerThread.runIt(LeaderFollowerWorkerThread.java:80)
> 	at
> org.apache.tomcat.util.threads.ThreadPool$ControlRunnable.run(ThreadPool.java:684)
> 	at java.lang.Thread.run(Thread.java:595)
> Caused by: java.lang.ClassNotFoundException:
> org.apache.xbean.spring.context.impl.URIEditor
> 	at
> org.apache.catalina.loader.WebappClassLoader.loadClass(WebappClassLoader.java:1352)
> 	at
> org.apache.catalina.loader.WebappClassLoader.loadClass(WebappClassLoader.java:1198)
> 	at java.lang.ClassLoader.loadClassInternal(ClassLoader.java:319)
> 	at java.lang.Class.forName0(Native Method)
> 	at java.lang.Class.forName(Class.java:164)
> 	... 52 more
> 2006-09-25 16:58:19,156 [http-8080-Processor23] ERROR
> org.apache.catalina.core.ContainerBase.[Catalina].[localhost].[/saturn] -
> Exception sending context initialized event to listener instance of class
> org.springframework.web.context.ContextLoaderListener
> org.springframework.beans.factory.CannotLoadBeanClassException: Error
> loading class that [org.apache.activemq.xbean.BrokerFactoryBean] of bean
> with name 'broker' defined in ServletContext resource
> [/WEB-INF/applicationContext-jms.xml]: dependency not found; nested
> exception is java.lang.NoClassDefFoundError
> Caused by: 
> java.lang.NoClassDefFoundError
> 	at
> org.apache.activemq.xbean.BrokerFactoryBean.class$(BrokerFactoryBean.java:42)
> 	at
> org.apache.activemq.xbean.BrokerFactoryBean.<clinit>(BrokerFactoryBean.java:45)
> 	at java.lang.Class.forName0(Native Method)
> 	at java.lang.Class.forName(Class.java:242)
> 	at org.springframework.util.ClassUtils.forName(ClassUtils.java:160)
> 	at
> org.springframework.beans.factory.support.AbstractBeanDefinition.resolveBeanClass(AbstractBeanDefinition.java:308)
> 	at
> org.springframework.beans.factory.support.AbstractBeanFactory.resolveBeanClass(AbstractBeanFactory.java:853)
> 	at
> org.springframework.beans.factory.support.DefaultListableBeanFactory.getBeanNamesForType(DefaultListableBeanFactory.java:176)
> 	at
> org.springframework.context.support.AbstractApplicationContext.getBeanNamesForType(AbstractApplicationContext.java:686)
> 	at
> org.springframework.context.support.AbstractApplicationContext.invokeBeanFactoryPostProcessors(AbstractApplicationContext.java:397)
> 	at
> org.springframework.context.support.AbstractApplicationContext.refresh(AbstractApplicationContext.java:330)
> 	at
> org.springframework.web.context.support.AbstractRefreshableWebApplicationContext.refresh(AbstractRefreshableWebApplicationContext.java:156)
> 	at
> org.springframework.web.context.ContextLoader.createWebApplicationContext(ContextLoader.java:246)
> 	at
> org.springframework.web.context.ContextLoader.initWebApplicationContext(ContextLoader.java:184)
> 	at
> org.springframework.web.context.ContextLoaderListener.contextInitialized(ContextLoaderListener.java:49)
> 	at
> org.apache.catalina.core.StandardContext.listenerStart(StandardContext.java:3729)
> 	at
> org.apache.catalina.core.StandardContext.start(StandardContext.java:4187)
> 	at
> org.apache.catalina.core.ContainerBase.addChildInternal(ContainerBase.java:759)
> 	at
> org.apache.catalina.core.ContainerBase.addChild(ContainerBase.java:739)
> 	at org.apache.catalina.core.StandardHost.addChild(StandardHost.java:524)
> 	at org.apache.catalina.startup.HostConfig.deployWAR(HostConfig.java:809)
> 	at org.apache.catalina.startup.HostConfig.deployApps(HostConfig.java:497)
> 	at org.apache.catalina.startup.HostConfig.check(HostConfig.java:1204)
> 	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.modeler.BaseModelMBean.invoke(BaseModelMBean.java:503)
> 	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.apache.catalina.manager.ManagerServlet.check(ManagerServlet.java:1377)
> 	at
> org.apache.catalina.manager.ManagerServlet.deploy(ManagerServlet.java:814)
> 	at
> org.apache.catalina.manager.ManagerServlet.doGet(ManagerServlet.java:349)
> 	at javax.servlet.http.HttpServlet.service(HttpServlet.java:689)
> 	at javax.servlet.http.HttpServlet.service(HttpServlet.java:802)
> 	at
> org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:252)
> 	at
> org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:173)
> 	at
> org.apache.catalina.core.StandardWrapperValve.invoke(StandardWrapperValve.java:213)
> 	at
> org.apache.catalina.core.StandardContextValve.invoke(StandardContextValve.java:178)
> 	at
> org.apache.catalina.authenticator.AuthenticatorBase.invoke(AuthenticatorBase.java:524)
> 	at
> org.apache.catalina.core.StandardHostValve.invoke(StandardHostValve.java:126)
> 	at
> org.apache.catalina.valves.ErrorReportValve.invoke(ErrorReportValve.java:105)
> 	at
> org.apache.catalina.core.StandardEngineValve.invoke(StandardEngineValve.java:107)
> 	at
> org.apache.catalina.connector.CoyoteAdapter.service(CoyoteAdapter.java:148)
> 	at
> org.apache.coyote.http11.Http11Processor.process(Http11Processor.java:869)
> 	at
> org.apache.coyote.http11.Http11BaseProtocol$Http11ConnectionHandler.processConnection(Http11BaseProtocol.java:664)
> 	at
> org.apache.tomcat.util.net.PoolTcpEndpoint.processSocket(PoolTcpEndpoint.java:527)
> 	at
> org.apache.tomcat.util.net.LeaderFollowerWorkerThread.runIt(LeaderFollowerWorkerThread.java:80)
> 	at
> org.apache.tomcat.util.threads.ThreadPool$ControlRunnable.run(ThreadPool.java:684)
> 	at java.lang.Thread.run(Thread.java:595)
> Caused by: java.lang.ClassNotFoundException:
> org.apache.xbean.spring.context.impl.URIEditor
> 	at
> org.apache.catalina.loader.WebappClassLoader.loadClass(WebappClassLoader.java:1352)
> 	at
> org.apache.catalina.loader.WebappClassLoader.loadClass(WebappClassLoader.java:1198)
> 	at java.lang.ClassLoader.loadClassInternal(ClassLoader.java:319)
> 	at java.lang.Class.forName0(Native Method)
> 	at java.lang.Class.forName(Class.java:164)
> 
> The applicationContext file : 
> <beans>
> 
> 	<!-- JMS ConnectionFactory -->
> 
> 	<bean id="jmsConnectionFactory"
> class="org.apache.activemq.pool.PooledConnectionFactory"
> destroy-method="stop">
> 		<property name="connectionFactory">
> 			<bean class="org.apache.activemq.ActiveMQConnectionFactory"
> destroy-method="stop" depends-on="broker">
> 				<property name="brokerURL"><value>vm://localhost</value></property>
> 			</bean>
> 		</property>
> 	</bean>
> 	
> 	<bean id="broker" class="org.apache.activemq.xbean.BrokerFactoryBean">
> 			<property name="config"> 
> 			<value>"classpath:activemq.xml"</value>
> 			</property>
> 			<property name="start" value="true" />
> 	</bean>
> 	
> 	
> 
> 	<bean id="gateInQueue" class="org.apache.activemq.command.ActiveMQQueue">
> 		<property name="physicalName">
> 			<value>GateIn</value>
> 		</property>
> 	</bean>
> 
> 	<bean id="providerInQueue"
> class="org.apache.activemq.command.ActiveMQQueue">
> 		<property name="physicalName">
> 			<value>ProviderIn</value>
> 		</property>
> 	</bean>
> 
> 
> James.Strachan wrote:
>> 
>> On 9/26/06, Shamli <shamlib@aztecsoft.com> wrote:
>>>
>>> Hi,
>>>    I am facing a problem while upgrading ActiveMQ3.2 to 4x. I'm using
>>> spring
>>> 1.2. Also, i wanted to use embedded broker and specify my own
>>> configuration
>>> file. I made the necessary changes but while deploying my application,
>>> it
>>> gives NoClassDefFound error for URIEditor.
>> 
>> Could you give us a stack trace? Which 4x version were you using?
>> 
>>> I tried using xbean-spring jar
>>> but then it gives error for nomethodfound error for setNameSpaceAware
>>> not
>>> found in XBeanXmlBeanParser...
>>>
>>> How can i resolve this issue.
>>>
>>> Also, i'm using derby db, how can i view the messages in the db?
>> 
>> Via SQL, JMX or the Web Console.
>> 
>> -- 
>> 
>> James
>> -------
>> http://radio.weblogs.com/0112098/
>> 
>> 
> 
> 

-- 
View this message in context: http://www.nabble.com/ActiveMQ4x-with-spring-1.2-tf2337039.html#a6502837
Sent from the ActiveMQ - User mailing list archive at Nabble.com.


Mime
View raw message