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 11:21:41 GMT

I couldn't find xbean-spring from the place you spcified but got
xbean-spring2.2. And i'm using Spring 1.2 in my app.
Tried with the above settings, but got exceptions. What all should i include
in the classpath?


James.Strachan wrote:
> 
> What spring version are you using? If you use the spring & xbean
> libraries from the release it will work
> 
> On 9/26/06, Shamli <shamlib@aztecsoft.com> wrote:
>>
>> I tried what you had asked me to do, but it still gives me error. Stack
>> trace
>> :
>>
>> ERROR org.springframework.web.context.ContextLoader - Context
>> initialization
>> failed
>> org.springframework.beans.factory.BeanCreationException: Error creating
>> bean
>> with name 'broker' defined in ServletContext resource
>> [/WEB-INF/applicationContext-jms.xml]: Initialization of bean failed;
>> nested
>> exception is java.lang.NoSuchMethodError:
>> org.springframework.beans.factory.xml.XmlBeanDefinitionReader.setNamespaceAware(Z)V
>> java.lang.NoSuchMethodError:
>> org.springframework.beans.factory.xml.XmlBeanDefinitionReader.setNamespaceAware(Z)V
>>         at
>> org.apache.xbean.spring.context.impl.XBeanXmlBeanDefinitionReader.<init>(XBeanXmlBeanDefinitionReader.java:57)
>>         at
>> org.apache.xbean.spring.context.ResourceXmlApplicationContext.loadBeanDefinitions(ResourceXmlApplicationContext.java:87)
>>         at
>> org.springframework.context.support.AbstractRefreshableApplicationContext.refreshBeanFactory(AbstractRefreshableApplicationContext.java:87)
>>         at
>> org.springframework.context.support.AbstractApplicationContext.refresh(AbstractApplicationContext.java:260)
>>         at
>> org.apache.xbean.spring.context.ResourceXmlApplicationContext.<init>(ResourceXmlApplicationContext.java:64)
>>         at
>> org.apache.xbean.spring.context.ResourceXmlApplicationContext.<init>(ResourceXmlApplicationContext.java:52)
>>         at
>> org.apache.activemq.xbean.BrokerFactoryBean.afterPropertiesSet(BrokerFactoryBean.java:76)
>>         at
>> org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.invokeInitMethods(AbstractAutowireCapableBeanFactory.java:937)
>>         at
>> org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.createBean(AbstractAutowireCapableBeanFactory.java:334)
>>         at
>> org.springframework.beans.factory.support.AbstractBeanFactory.getBean(AbstractBeanFactory.java:222)
>>         at
>> org.springframework.beans.factory.support.AbstractBeanFactory.getBean(AbstractBeanFactory.java:146)
>>         at
>> org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.createBean(AbstractAutowireCapableBeanFactory.java:281)
>>         at
>> org.springframework.beans.factory.support.BeanDefinitionValueResolver.resolveInnerBeanDefinition(BeanDefinitionValueResolver.java:147)
>>         at
>> org.springframework.beans.factory.support.BeanDefinitionValueResolver.resolveValueIfNecessary(BeanDefinitionValueResolver.java:96)
>>         at
>> org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.applyPropertyValues(AbstractAutowireCapableBeanFactory.java:891)
>>         at
>> org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.populateBean(AbstractAutowireCapableBeanFactory.java:707)
>>         at
>> org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.createBean(AbstractAutowireCapableBeanFactory.java:316)
>>         at
>> org.springframework.beans.factory.support.AbstractBeanFactory.getBean(AbstractBeanFactory.java:222)
>>         at
>> org.springframework.beans.factory.support.AbstractBeanFactory.getBean(AbstractBeanFactory.java:146)
>>         at
>> org.springframework.beans.factory.support.DefaultListableBeanFactory.preInstantiateSingletons(DefaultListableBeanFactory.java:277)
>>         at
>> org.springframework.context.support.AbstractApplicationContext.refresh(AbstractApplicationContext.java:310)
>>         at
>> org.springframework.web.context.support.AbstractRefreshableWebApplicationContext.refresh(AbstractRefreshableWebApplicationContext.java:133)
>>         at
>> org.springframework.web.context.ContextLoader.createWebApplicationContext(ContextLoader.java:230)
>>         at
>> org.springframework.web.context.ContextLoader.initWebApplicationContext(ContextLoader.java:156)
>>         at
>> org.springframework.web.context.ContextLoaderListener.contextInitialized(ContextLoaderListener.java:48)
>>         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)
>> 2006-09-26 16:30:21,870 [http-8080-Processor25] 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.BeanCreationException: Error creating
>> bean
>> with name 'broker' defined in ServletContext resource
>> [/WEB-INF/applicationContext-jms.xml]: Initialization of bean failed;
>> nested
>> exception is java.lang.NoSuchMethodError:
>> org.springframework.beans.factory.xml.XmlBeanDefinitionReader.setNamespaceAware(Z)V
>> java.lang.NoSuchMethodError:
>> org.springframework.beans.factory.xml.XmlBeanDefinitionReader.setNamespaceAware(Z)V
>>         at
>> org.apache.xbean.spring.context.impl.XBeanXmlBeanDefinitionReader.<init>(XBeanXmlBeanDefinitionReader.java:57)
>>         at
>> org.apache.xbean.spring.context.ResourceXmlApplicationContext.loadBeanDefinitions(ResourceXmlApplicationContext.java:87)
>>         at
>> org.springframework.context.support.AbstractRefreshableApplicationContext.refreshBeanFactory(AbstractRefreshableApplicationContext.java:87)
>>         at
>> org.springframework.context.support.AbstractApplicationContext.refresh(AbstractApplicationContext.java:260)
>>         at
>> org.apache.xbean.spring.context.ResourceXmlApplicationContext.<init>(ResourceXmlApplicationContext.java:64)
>>         at
>> org.apache.xbean.spring.context.ResourceXmlApplicationContext.<init>(ResourceXmlApplicationContext.java:52)
>>         at
>> org.apache.activemq.xbean.BrokerFactoryBean.afterPropertiesSet(BrokerFactoryBean.java:76)
>>         at
>> org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.invokeInitMethods(AbstractAutowireCapableBeanFactory.java:937)
>>         at
>> org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.createBean(AbstractAutowireCapableBeanFactory.java:334)
>>         at
>> org.springframework.beans.factory.support.AbstractBeanFactory.getBean(AbstractBeanFactory.java:222)
>>         at
>> org.springframework.beans.factory.support.AbstractBeanFactory.getBean(AbstractBeanFactory.java:146)
>>         at
>> org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.createBean(AbstractAutowireCapableBeanFactory.java:281)
>>         at
>> org.springframework.beans.factory.support.BeanDefinitionValueResolver.resolveInnerBeanDefinition(BeanDefinitionValueResolver.java:147)
>>         at
>> org.springframework.beans.factory.support.BeanDefinitionValueResolver.resolveValueIfNecessary(BeanDefinitionValueResolver.java:96)
>>         at
>> org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.applyPropertyValues(AbstractAutowireCapableBeanFactory.java:891)
>>         at
>> org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.populateBean(AbstractAutowireCapableBeanFactory.java:707)
>>         at
>> org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.createBean(AbstractAutowireCapableBeanFactory.java:316)
>>         at
>> org.springframework.beans.factory.support.AbstractBeanFactory.getBean(AbstractBeanFactory.java:222)
>>         at
>> org.springframework.beans.factory.support.AbstractBeanFactory.getBean(AbstractBeanFactory.java:146)
>>         at
>> org.springframework.beans.factory.support.DefaultListableBeanFactory.preInstantiateSingletons(DefaultListableBeanFactory.java:277)
>>         at
>> org.springframework.context.support.AbstractApplicationContext.refresh(AbstractApplicationContext.java:310)
>>         at
>> org.springframework.web.context.support.AbstractRefreshableWebApplicationContext.refresh(AbstractRefreshableWebApplicationContext.java:133)
>>         at
>> org.springframework.web.context.ContextLoader.createWebApplicationContext(ContextLoader.java:230)
>>         at
>> org.springframework.web.context.ContextLoader.initWebApplicationContext(ContextLoader.java:156)
>>         at
>> org.springframework.web.context.ContextLoaderListener.contextInitialized(ContextLoaderListener.java:48)
>>         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)
>>
>> Is it compatibility issue with spring 1.2?
>>
>>
>> James.Strachan wrote:
>> >
>> > You need to be careful with what jars you put on your classpath; each
>> > ActiveMQ release comes with exactly the right xbean libraries that you
>> > need to use it - so the quick answer is use the xbean libraries that
>> > come with the ActiveMQ release you are using (they are usually in
>> > lib/optional of the distro)
>> >
>> > Your issue looks like you are not including the xbean-spring-2.2.jar
>> > on your classpath (look inside the jar and you should see the
>> > URIEditor.class).
>> >
>> >
>> > On 9/26/06, Shamli <shamlib@aztecsoft.com> wrote:
>> >>
>> >> 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.
>> >>
>> >>
>> >
>> >
>> > --
>> >
>> > James
>> > -------
>> > http://radio.weblogs.com/0112098/
>> >
>> >
>>
>> --
>> View this message in context:
>> http://www.nabble.com/ActiveMQ4x-with-spring-1.2-tf2337039.html#a6504655
>> Sent from the ActiveMQ - User mailing list archive at Nabble.com.
>>
>>
> 
> 
> -- 
> 
> James
> -------
> http://radio.weblogs.com/0112098/
> 
> 

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


Mime
View raw message