jdk1.6与cxf兼容问题
2010-09-16 15:16
274 查看
刚接手一个项目,包含使用cxf,启动tomcat时,后台报错:
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]:
nested exception is
java.lang.LinkageError: JAXB 2.0 API is being loaded from the bootstrap
classloader, but this RI 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/
)。
后来上网查找,原来是JDK1.6与cxf的兼容性有问题升级到jdk1.6.0_14即可。
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]:
nested exception is
java.lang.LinkageError: JAXB 2.0 API is being loaded from the bootstrap
classloader, but this RI 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/
)。
后来上网查找,原来是JDK1.6与cxf的兼容性有问题升级到jdk1.6.0_14即可。
相关文章推荐
- CXF中jaxb-api.jar、jaxws-api.jar与jdk1.6不兼容问题
- CXF中jaxb-api.jar、jaxws-api.jar与jdk1.6不兼容问题:JAXB 2.0 API is being loaded from the bootstrap classloader
- cxf与jdk1.6兼容问题
- CXF中jaxb-api.jar、jaxws-api.jar与jdk1.6不兼容问题:JAXB 2.0 API is being loaded from the bootstrap classload
- java实现webservice的CXF框架和JDK1.6的冲突问题
- 1.6以上jdk与springframework3.x不兼容的问题
- 解决cxf2.2.3客户端动态调用与jdk1.7不兼容问题
- Use the endorsed directory mechanism to place jaxb-api.jar(jaxb-api.jar、jaxws-api.jar与jdk1.6不兼容问题)
- jdk1.6_02和tomcat6.0_37版本兼容问题
- 解决JBoos5.0运行EJB3.0_WebServices跟jdk1.6的兼容问题
- 使用cxf 关于JAXB2.1和JDK1.6/6.0版本不一致的问题 --已解决
- cxf2.4.3中jaxb-api.jar、jaxws-api.jar与jdk1.6.0_02不兼容问题
- CXF与JDK 1.6的不兼容,导致会出现SPRING中 Error creating bean with name '***‘ 解决办法
- myeclipse里工程的jdk使用的1.7版本,其中java compiler最高只能选到1.6的问题(在maven工程中出现的问题) -- 记录
- JDK版本不兼容问题之:一台机器安装多个版本的JDK
- windows 2008 下 tomcat 与jdk 兼容问题
- SpringBoot 版本 与 jdk 版本兼容问题
- JDK版本不兼容问题之:一台机器安装多个版本的JDK
- JDK 1.6 写Webservice时,runtime modeler error: Wrapper class com.ws.jaxws.DoSomething is not found问题的解决办法
- tomcat 与jdk 版本不兼容问题