日期:2014-05-20  浏览次数:20904 次

cxf+spring,求救。
Java code

严重: Context initialization failed
org.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 listenerStart
2010-11-24 10:47:18 org.apache.catalina.core.StandardContext start
严重: Context [/WebOrder] startup failed due to previous errors
2010-11-24 10:47:18 org.apache.catalina.core.ApplicationContext log
信息: Closing Spring root WebApplicationContext
2010-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-8000
2010-11-24 10:47:19 org.apache.jk.common.ChannelSocket init
信息: JK: ajp13 listening on /0.0.0.0:8009
2010-11-24 10:47:19 org.apache.jk.server.JkMain start
信息: Jk running ID=0 time=0/0  config=null
2010-11-24 10:47:19 org.apache.catalina.startup.Catalina start
信息: Server startup in 7433 ms



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


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