weblogic javax/xml/namespace/QName报错
来源:互联网 发布:java ftpclient linux 编辑:程序博客网 时间:2024/05/16 07:08
项目在tomcat已调试好,部署到weblogic后报错,如下
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: loader constraint violation: when resolving field "DATETIME" the class loader (instance of weblogic/utils/classloaders/ChangeAwareClassLoader) of the referring class, javax/xml/datatype/DatatypeConstants, and the class loader (instance of <bootloader>) for the field's resolved type, javax/xml/namespace/QName, have different Class objects for that type
分析:应该是属于jar包问题,工程需要设置weblogic.xml优先用web/lib下面的包
<weblogic-web-app> <container-descriptor> <prefer-web-inf-classes>true</prefer-web-inf-classes> </container-descriptor> </weblogic-web-app>
因为 Apache CXF 里的类的时间晚于 Weblogic 里的类的时间,而且类的二进制内容也发生了改变,
于是原来 Weblogic 里的其它类由于我们通过了 prefer-web-inf-classes 设置为 true 后,而引用到了现在的 Apache CXF 里的类了,就发生了 java.lang.LinkageError 错误。
解决方式是使用ifind.jar工具把工程下所有带javax/xml/namespace/QName class的都删除掉。
ifind.jar工具下载地址: http://pan.baidu.com/s/1dEBCGN3
0 0
- weblogic javax/xml/namespace/QName报错
- javax.xml.namespace.QName
- javax.xml.namespace.QName
- weblogic启动异常:Parsing Failure in config.xml: javax.xml.namespace.QName; local class incompatible
- javax.xml.namespace.QName类的用法
- javax.xml.namespace.QName 解释以及作用JDK
- symbol:constructor Service(java.net.URL,javax.xml.namespace.QName,javax.xml.ws.WebServiceFeature
- javax.xml.ws.Service 报错The constructor Service(URL, QName, WebServiceFeature[]) is undefined的解决方案
- javax.xml.ws.Service 报错The constructor Service(URL, QName, WebServiceFeature[]) is undefined的解决方案
- javax.xml.ws.Service 报错The constructor Service(URL, QName, WebServiceFeature[]) is undefined的解决方案
- Axis: rt.jar和jaxrpc中javax.xml.namespace.QName冲突问题分析
- android studio错误解决finished with non-zero exit value 1 【javax/xml/namespace/QName.class】
- weblogic启动报错javax.xml.parsers.DocumentBuilderFactory
- weblogic中报javax.persistence.OneToMany.orphanRemoval()Z错
- javax.xml.bin报红
- WebService报错javax.xml.ws.soap.SOAPFaultException: javax.xml.ws.WebFault.messageName()
- WebService报错javax.xml.ws.soap.SOAPFaultException: javax.xml.ws.WebFault.messageName()
- 解析XML QName
- PCI MSI parse in ACPI
- C++ 动态调用DLL
- HTML5--应用程序缓存
- jQuery插件superslide.js源码片段分析记录
- 真假正负例、混淆矩阵、ROC曲线、召回率、准确率、F值、AP
- weblogic javax/xml/namespace/QName报错
- 码农在安装Ubuntu 16.04后要做的重要事
- 运行时权限
- wait获取子进程退出状态 WIFEXITED和WIFSIGNALED用法
- 路由及路由器工作原理深入解析5:UDP跨网段传输
- 打开网页后自动执行的JS
- 知识库--Engine interface(56)
- Atitit MATLAB 图像处理attilax总结
- c面试试卷