cxf和老项目整合时出现的问题

本文详细阐述了在使用jreChart库时与gnuJaxp库版本冲突引发的Apache CXF WSDL解析错误,通过删除jreChart中特定jar包解决了问题。文章提供了错误日志分析、问题原因解释以及解决方案,适用于在开发过程中遇到类似版本冲突问题的开发者。
摘要由CSDN通过智能技术生成

2013-10-24 13:54:50 org.apache.cxf.phase.PhaseInterceptorChain doDefaultLogging
警告: Interceptor for {http://lzh.com/}AuthImpl has thrown exception, unwinding now
org.apache.cxf.frontend.WSDLQueryException: Exception occurred while trying to processhttp://10.223.26.196:8080/WebserviceTest/services/jkgl
 at org.apache.cxf.frontend.WSDLGetUtils.getDocument(WSDLGetUtils.java:267)
 at org.apache.cxf.frontend.WSDLGetInterceptor.getDocument(WSDLGetInterceptor.java:184)
 at org.apache.cxf.frontend.WSDLGetInterceptor.handleMessage(WSDLGetInterceptor.java:112)
 at org.apache.cxf.phase.PhaseInterceptorChain.doIntercept(PhaseInterceptorChain.java:263)
 at org.apache.cxf.transport.ChainInitiationObserver.onMessage(ChainInitiationObserver.java:121)
 at org.apache.cxf.transport.http.AbstractHTTPDestination.invoke(AbstractHTTPDestination.java:237)
 at org.apache.cxf.transport.servlet.ServletController.invokeDestination(ServletController.java:239)
 at org.apache.cxf.transport.servlet.ServletController.invoke(ServletController.java:213)
 at org.apache.cxf.transport.servlet.CXFNonSpringServlet.invoke(CXFNonSpringServlet.java:131)
 at org.apache.cxf.transport.servlet.AbstractHTTPServlet.handleRequest(AbstractHTTPServlet.java:266)
 at org.apache.cxf.transport.servlet.AbstractHTTPServlet.doGet(AbstractHTTPServlet.java:191)
 at javax.servlet.http.HttpServlet.service(HttpServlet.java:617)
 at org.apache.cxf.transport.servlet.AbstractHTTPServlet.service(AbstractHTTPServlet.java:242)
 at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:290)
 at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:206)
 at org.apache.catalina.core.StandardWrapperValve.invoke(StandardWrapperValve.java:233)
 at org.apache.catalina.core.StandardContextValve.invoke(StandardContextValve.java:191)
 at org.apache.catalina.core.StandardHostValve.invoke(StandardHostValve.java:127)
 at org.apache.catalina.valves.ErrorReportValve.invoke(ErrorReportValve.java:102)
 at org.apache.catalina.core.StandardEngineValve.invoke(StandardEngineValve.java:109)
 at org.apache.catalina.connector.CoyoteAdapter.service(CoyoteAdapter.java:293)
 at org.apache.coyote.http11.Http11Processor.process(Http11Processor.java:859)
 at org.apache.coyote.http11.Http11Protocol$Http11ConnectionHandler.process(Http11Protocol.java:602)
 at org.apache.tomcat.util.net.JIoEndpoint$Worker.run(JIoEndpoint.java:489)
 at java.lang.Thread.run(Thread.java:595)
Caused by: gnu.xml.dom.DomEx: The operation violates XML Namespaces.
More Information: setting xmlns attribute to illegal value
Node Name: xsd:schema
 at gnu.xml.dom.DomElement.setAttributeNS(DomElement.java:249)
 at org.apache.ws.commons.schema.XmlSchemaSerializer.setupNamespaces(XmlSchemaSerializer.java:2458)
 at org.apache.ws.commons.schema.XmlSchemaSerializer.serializeSchemaElement(XmlSchemaSerializer.java:1554)
 at org.apache.ws.commons.schema.XmlSchemaSerializer.serializeSchema(XmlSchemaSerializer.java:132)
 at org.apache.ws.commons.schema.XmlSchema.getSchemaDocument(XmlSchema.java:404)
 at org.apache.cxf.service.model.SchemaInfo.getElement(SchemaInfo.java:109)
 at org.apache.cxf.wsdl11.ServiceWSDLBuilder.buildTypes(ServiceWSDLBuilder.java:315)
 at org.apache.cxf.wsdl11.ServiceWSDLBuilder.build(ServiceWSDLBuilder.java:202)
 at org.apache.cxf.frontend.WSDLGetUtils.getDocument(WSDLGetUtils.java:188)
 ... 24 more

 

 

经查是由于jreechart中包含了gnujaxp.jar 导致版本冲突,删除即可

评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值