当前位置: 代码迷 >> Java相关 >> is org.springframework.beans.BeanInstantiationException: Could
  详细解决方案

is org.springframework.beans.BeanInstantiationException: Could

热度:6076   发布时间:2013-02-25 21:51:50.0
cxf+spring,求救。
Java code
严重: Context initialization failedorg.springframework.beans.factory.BeanCreationException: Error creating bean with name 'org.apache.cxf.wsdl.WSDLManager' defined in class path resource [META-INF/cxf/cxf.xml]: Instantiation of bean failed; nested exception is org.springframework.beans.BeanInstantiationException: Could not instantiate bean class [org.apache.cxf.wsdl11.WSDLManagerImpl]: Constructor threw exception; nested exception is java.lang.LinkageError: JAXB 2.0 API is being loaded from the bootstrap classloader, but this RI (from jar:file:/C:/Program%20Files/Apache%20Software%20Foundation/Tomcat%206.0/webapps/WebOrder/WEB-INF/lib/jaxb-impl-2.1.13.jar!/com/sun/xml/bind/v2/model/impl/ModelBuilder.class) needs 2.1 API. Use the endorsed directory mechanism to place jaxb-api.jar in the bootstrap classloader. (See http://java.sun.com/j2se/1.5.0/docs/guide/standards/)    at ....Caused by: org.springframework.beans.BeanInstantiationException: Could not instantiate bean class [org.apache.cxf.wsdl11.WSDLManagerImpl]: Constructor threw exception; nested exception is java.lang.LinkageError: JAXB 2.0 API is being loaded from the bootstrap classloader, but this RI (from jar:file:/C:/Program%20Files/Apache%20Software%20Foundation/Tomcat%206.0/webapps/WebOrder/WEB-INF/lib/jaxb-impl-2.1.13.jar!/com/sun/xml/bind/v2/model/impl/ModelBuilder.class) needs 2.1 API. Use the endorsed directory mechanism to place jaxb-api.jar in the bootstrap classloader. (See http://java.sun.com/j2se/1.5.0/docs/guide/standards/)    at  ....2010-11-24 10:47:18 org.apache.catalina.core.StandardContext start严重: Error listenerStart2010-11-24 10:47:18 org.apache.catalina.core.StandardContext start严重: Context [/WebOrder] startup failed due to previous errors2010-11-24 10:47:18 org.apache.catalina.core.ApplicationContext log信息: Closing Spring root WebApplicationContext2010-11-24 10:47:19 org.apache.struts.validator.ValidatorPlugIn initResources信息: Loading validation rules file from '/WEB-INF/validator-rules.xml'2010-11-24 10:47:19 org.apache.struts.validator.ValidatorPlugIn initResources信息: Loading validation rules file from '/WEB-INF/validation.xml'2010-11-24 10:47:19 org.apache.coyote.http11.Http11Protocol start信息: Starting Coyote HTTP/1.1 on http-80002010-11-24 10:47:19 org.apache.jk.common.ChannelSocket init信息: JK: ajp13 listening on /0.0.0.0:80092010-11-24 10:47:19 org.apache.jk.server.JkMain start信息: Jk running ID=0 time=0/0  config=null2010-11-24 10:47:19 org.apache.catalina.startup.Catalina start信息: Server startup in 7433 ms


这是什么原因?
我基本是按照这个教程搞的:http://www.cnblogs.com/modou/articles/1390645


------解决方案--------------------------------------------------------
我来了,还以为jar包冲突呢
------解决方案--------------------------------------------------------
要分........................................
------解决方案--------------------------------------------------------
。。。。。。。。
------解决方案--------------------------------------------------------
那就要吧
  相关解决方案