posts - 30,  comments - 50,  trackbacks - 0
- Creating ActiveMQ Broker
- Loading ActiveMQ Broker configuration from: /WEB-INF/classes/activemq.xml
- Failed to create broker: java.lang.IllegalStateException: Could not find valid implementation for2.0
java.lang.IllegalStateException: Could not find valid implementation 
for2.0
    at org.apache.xbean.spring.context.impl.XBeanHelper.createBeanDefinitionReader(XBeanHelper.java:
48)
    at org.apache.xbean.spring.context.ResourceXmlApplicationContext.loadBeanDefinitions(ResourceXmlApplicationContext.java:
94)
    at org.springframework.context.support.AbstractRefreshableApplicationContext.refreshBeanFactory(AbstractRefreshableApplicationContext.java:
89)
    at org.springframework.context.support.AbstractApplicationContext.refresh(AbstractApplicationContext.java:
269)
    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:
77)
    at org.apache.activemq.web.SpringBrokerContextListener.createBroker(SpringBrokerContextListener.java:
110)
    at org.apache.activemq.web.SpringBrokerContextListener.contextInitialized(SpringBrokerContextListener.java:
72)
    at org.apache.catalina.core.StandardContext.listenerStart(StandardContext.java:
3669)
    at org.apache.catalina.core.StandardContext.start(StandardContext.java:
4104)
    at org.apache.catalina.core.ContainerBase.start(ContainerBase.java:
1012)
    at org.apache.catalina.core.StandardHost.start(StandardHost.java:
718)
    at org.apache.catalina.core.ContainerBase.start(ContainerBase.java:
1012)
    at org.apache.catalina.core.StandardEngine.start(StandardEngine.java:
442)
    at org.apache.catalina.core.StandardService.start(StandardService.java:
450)
    at org.apache.catalina.core.StandardServer.start(StandardServer.java:
683)
    at org.apache.catalina.startup.Catalina.start(Catalina.java:
537)
    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:
597)
    at org.apache.catalina.startup.Bootstrap.start(Bootstrap.java:
271)
    at org.apache.catalina.startup.Bootstrap.main(Bootstrap.java:
409)
Caused by: java.lang.reflect.InvocationTargetException
    at sun.reflect.NativeConstructorAccessorImpl.newInstance0(Native Method)
    at sun.reflect.NativeConstructorAccessorImpl.newInstance(NativeConstructorAccessorImpl.java:
39)
    at sun.reflect.DelegatingConstructorAccessorImpl.newInstance(DelegatingConstructorAccessorImpl.java:
27)
    at java.lang.reflect.Constructor.newInstance(Constructor.java:
513)
    at org.apache.xbean.spring.context.impl.XBeanHelper.createBeanDefinitionReader(XBeanHelper.java:
46)
     
23 more
Caused by: java.lang.NoSuchMethodError: org.springframework.beans.factory.xml.XmlBeanDefinitionReader.setValidationMode(I)V
    at org.apache.xbean.spring.context.v2.XBeanXmlBeanDefinitionReader.
<init>(XBeanXmlBeanDefinitionReader.java:58)
     
28 more
- Starting ActiveMQ Broker
- Failed to start ActiveMQ broker: java.lang.NullPointerException
java.lang.NullPointerException
    at org.apache.activemq.web.SpringBrokerContextListener.contextInitialized(SpringBrokerContextListener.java:
76)
    at org.apache.catalina.core.StandardContext.listenerStart(StandardContext.java:
3669)
    at org.apache.catalina.core.StandardContext.start(StandardContext.java:
4104)
    at org.apache.catalina.core.ContainerBase.start(ContainerBase.java:
1012)
    at org.apache.catalina.core.StandardHost.start(StandardHost.java:
718)
    at org.apache.catalina.core.ContainerBase.start(ContainerBase.java:
1012)
    at org.apache.catalina.core.StandardEngine.start(StandardEngine.java:
442)
    at org.apache.catalina.core.StandardService.start(StandardService.java:
450)
    at org.apache.catalina.core.StandardServer.start(StandardServer.java:
683)
    at org.apache.catalina.startup.Catalina.start(Catalina.java:
537)
    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:
597)
    at org.apache.catalina.startup.Bootstrap.start(Bootstrap.java:
271)
    at org.apache.catalina.startup.Bootstrap.main(Bootstrap.java:
409)

Failed to create broker: java.lang.IllegalStateException: Could not find valid implementation for2.0

 

解决:加载了2次不同的spring,spring 的jar包有重复,删除spring-1.4.jar,保留spring-2.0.jar。
posted on 2007-08-03 21:27 心。 阅读(1034) 评论(0)  编辑  收藏 所属分类: java

只有注册用户登录后才能发表评论。


网站导航: