2013-04-28 616 views
0

IBM Websphere 6.1服務器啓動時沒有錯誤 同時,當我輸入wsdl地址時,我獲得了Imcompatible Change Error異常錯誤。 Iam使用Apache CXF和我正在編譯我的項目在Java JDK 1.5(使用Maven 2.0.9) 有人可以幫我解決這個問題嗎?發生 在此先感謝Apache CXF IncompatibleClassChangeError websphere 6

[4/26/13 18:36:44:225 CEST] 00000026 ServletWrappe E SRVE0068E: Uncaught exception thrown in one of the service methods of the servlet: CXFServlet. Exception thrown : java.lang.IncompatibleClassChangeError 
at org.apache.cxf.wsdl11.ServiceWSDLBuilder.addExtensibilityElements(ServiceWSDLBuilder.java:229) 
at org.apache.cxf.wsdl11.ServiceWSDLBuilder.buildBindingInput(ServiceWSDLBuilder.java:355) 
at org.apache.cxf.wsdl11.ServiceWSDLBuilder.buildBindingOperation(ServiceWSDLBuilder.java:324) 
at org.apache.cxf.wsdl11.ServiceWSDLBuilder.buildBinding(ServiceWSDLBuilder.java:305) 
at org.apache.cxf.wsdl11.ServiceWSDLBuilder.build(ServiceWSDLBuilder.java:193) 
at org.apache.cxf.wsdl11.ServiceWSDLBuilder.build(ServiceWSDLBuilder.java:148) 
at org.apache.cxf.transport.http.WSDLQueryHandler.writeResponse(WSDLQueryHandler.java:146) 
at org.apache.cxf.transport.servlet.ServletController.invoke(ServletController.java:162) 
at org.apache.cxf.transport.servlet.AbstractCXFServlet.invoke(AbstractCXFServlet.java:142) 
at org.apache.cxf.transport.servlet.AbstractHTTPServlet.handleRequest(AbstractHTTPServlet.java:179) 
at org.apache.cxf.transport.servlet.AbstractHTTPServlet.doGet(AbstractHTTPServlet.java:108) 
at javax.servlet.http.HttpServlet.service(HttpServlet.java:743) 
at org.apache.cxf.transport.servlet.AbstractHTTPServlet.service(AbstractHTTPServlet.java:159) 
at com.ibm.ws.webcontainer.servlet.ServletWrapper.service(ServletWrapper.java:1146) 
at com.ibm.ws.webcontainer.servlet.ServletWrapper.handleRequest(ServletWrapper.java:592) 
at com.ibm.ws.wswebcontainer.servlet.ServletWrapper.handleRequest(ServletWrapper.java:525) 
at com.ibm.ws.webcontainer.webapp.WebApp.handleRequest(WebApp.java:3548) 
at com.ibm.ws.webcontainer.webapp.WebGroup.handleRequest(WebGroup.java:269) 
at com.ibm.ws.webcontainer.WebContainer.handleRequest(WebContainer.java:818) 
at com.ibm.ws.wswebcontainer.WebContainer.handleRequest(WebContainer.java:1478) 
at com.ibm.ws.webcontainer.channel.WCChannelLink.ready(WCChannelLink.java:126) 
at com.ibm.ws.http.channel.inbound.impl.HttpInboundLink.handleDiscrimination(HttpInboundLink.java:458) 
at com.ibm.ws.http.channel.inbound.impl.HttpInboundLink.handleNewInformation(HttpInboundLink.java:387) 
at com.ibm.ws.http.channel.inbound.impl.HttpInboundLink.ready(HttpInboundLink.java:267) 
at com.ibm.ws.tcp.channel.impl.NewConnectionInitialReadCallback.sendToDiscriminators(NewConnectionInitialReadCallback.java:214) 
at com.ibm.ws.tcp.channel.impl.NewConnectionInitialReadCallback.complete(NewConnectionInitialReadCallback.java:113) 
at com.ibm.ws.tcp.channel.impl.AioReadCompletionListener.futureCompleted(AioReadCompletionListener.java:165) 
at com.ibm.io.async.AbstractAsyncFuture.invokeCallback(AbstractAsyncFuture.java:217) 
at com.ibm.io.async.AsyncChannelFuture.fireCompletionActions(AsyncChannelFuture.java:161) 
at com.ibm.io.async.AsyncFuture.completed(AsyncFuture.java:136) 
at com.ibm.io.async.ResultHandler.complete(ResultHandler.java:196) 
at com.ibm.io.async.ResultHandler.runEventProcessingLoop(ResultHandler.java:751) 
at com.ibm.io.async.ResultHandler$2.run(ResultHandler.java:881) 
at com.ibm.ws.util.ThreadPool$Worker.run(ThreadPool.java:1497) 

[4/26/13 18:36:44:254 CEST] 00000026 WebApp E [Servlet Error]-[CXFServlet]: java.lang.IncompatibleClassChangeError 
at org.apache.cxf.wsdl11.ServiceWSDLBuilder.addExtensibilityElements(ServiceWSDLBuilder.java:229) 
at org.apache.cxf.wsdl11.ServiceWSDLBuilder.buildBindingInput(ServiceWSDLBuilder.java:355) 
at org.apache.cxf.wsdl11.ServiceWSDLBuilder.buildBindingOperation(ServiceWSDLBuilder.java:324) 
at org.apache.cxf.wsdl11.ServiceWSDLBuilder.buildBinding(ServiceWSDLBuilder.java:305) 
at org.apache.cxf.wsdl11.ServiceWSDLBuilder.build(ServiceWSDLBuilder.java:193) 
at org.apache.cxf.wsdl11.ServiceWSDLBuilder.build(ServiceWSDLBuilder.java:148) 
at org.apache.cxf.transport.http.WSDLQueryHandler.writeResponse(WSDLQueryHandler.java:146) 
at org.apache.cxf.transport.servlet.ServletController.invoke(ServletController.java:162) 
at org.apache.cxf.transport.servlet.AbstractCXFServlet.invoke(AbstractCXFServlet.java:142) 
at org.apache.cxf.transport.servlet.AbstractHTTPServlet.handleRequest(AbstractHTTPServlet.java:179) 
at org.apache.cxf.transport.servlet.AbstractHTTPServlet.doGet(AbstractHTTPServlet.java:108) 
at javax.servlet.http.HttpServlet.service(HttpServlet.java:743) 
at org.apache.cxf.transport.servlet.AbstractHTTPServlet.service(AbstractHTTPServlet.java:159) 
at com.ibm.ws.webcontainer.servlet.ServletWrapper.service(ServletWrapper.java:1146) 
at com.ibm.ws.webcontainer.servlet.ServletWrapper.handleRequest(ServletWrapper.java:592) 
at com.ibm.ws.wswebcontainer.servlet.ServletWrapper.handleRequest(ServletWrapper.java:525) 
at com.ibm.ws.webcontainer.webapp.WebApp.handleRequest(WebApp.java:3548) 
at com.ibm.ws.webcontainer.webapp.WebGroup.handleRequest(WebGroup.java:269) 
at com.ibm.ws.webcontainer.WebContainer.handleRequest(WebContainer.java:818) 
at com.ibm.ws.wswebcontainer.WebContainer.handleRequest(WebContainer.java:1478) 
at com.ibm.ws.webcontainer.channel.WCChannelLink.ready(WCChannelLink.java:126) 
at com.ibm.ws.http.channel.inbound.impl.HttpInboundLink.handleDiscrimination(HttpInboundLink.java:458) 
at com.ibm.ws.http.channel.inbound.impl.HttpInboundLink.handleNewInformation(HttpInboundLink.java:387) 
at com.ibm.ws.http.channel.inbound.impl.HttpInboundLink.ready(HttpInboundLink.java:267) 
at com.ibm.ws.tcp.channel.impl.NewConnectionInitialReadCallback.sendToDiscriminators(NewConnectionInitialReadCallback.java:214) 
at com.ibm.ws.tcp.channel.impl.NewConnectionInitialReadCallback.complete(NewConnectionInitialReadCallback.java:113) 
at com.ibm.ws.tcp.channel.impl.AioReadCompletionListener.futureCompleted(AioReadCompletionListener.java:165) 
at com.ibm.io.async.AbstractAsyncFuture.invokeCallback(AbstractAsyncFuture.java:217) 
at com.ibm.io.async.AsyncChannelFuture.fireCompletionActions(AsyncChannelFuture.java:161) 
at com.ibm.io.async.AsyncFuture.completed(AsyncFuture.java:136) 
at com.ibm.io.async.ResultHandler.complete(ResultHandler.java:196) 
at com.ibm.io.async.ResultHandler.runEventProcessingLoop(ResultHandler.java:751) 
at com.ibm.io.async.ResultHandler$2.run(ResultHandler.java:881) 
at com.ibm.ws.util.ThreadPool$Worker.run(ThreadPool.java:1497) 

[4/26/13 18:36:47:118 CEST] 00000022 ServletWrappe E SRVE0068E: Uncaught exception thrown in one of the service methods of the servlet: CXFServlet. Exception thrown : java.lang.IncompatibleClassChangeError 
at org.apache.cxf.wsdl11.ServiceWSDLBuilder.addExtensibilityElements(ServiceWSDLBuilder.java:229) 
at org.apache.cxf.wsdl11.ServiceWSDLBuilder.buildBindingInput(ServiceWSDLBuilder.java:355) 
at org.apache.cxf.wsdl11.ServiceWSDLBuilder.buildBindingOperation(ServiceWSDLBuilder.java:324) 
at org.apache.cxf.wsdl11.ServiceWSDLBuilder.buildBinding(ServiceWSDLBuilder.java:305) 
at org.apache.cxf.wsdl11.ServiceWSDLBuilder.build(ServiceWSDLBuilder.java:193) 
at org.apache.cxf.wsdl11.ServiceWSDLBuilder.build(ServiceWSDLBuilder.java:148) 
at org.apache.cxf.transport.http.WSDLQueryHandler.writeResponse(WSDLQueryHandler.java:146) 
at org.apache.cxf.transport.servlet.ServletController.invoke(ServletController.java:162) 
at org.apache.cxf.transport.servlet.AbstractCXFServlet.invoke(AbstractCXFServlet.java:142) 
at org.apache.cxf.transport.servlet.AbstractHTTPServlet.handleRequest(AbstractHTTPServlet.java:179) 
at org.apache.cxf.transport.servlet.AbstractHTTPServlet.doGet(AbstractHTTPServlet.java:108) 
at javax.servlet.http.HttpServlet.service(HttpServlet.java:743) 
at org.apache.cxf.transport.servlet.AbstractHTTPServlet.service(AbstractHTTPServlet.java:159) 
at com.ibm.ws.webcontainer.servlet.ServletWrapper.service(ServletWrapper.java:1146) 
at com.ibm.ws.webcontainer.servlet.ServletWrapper.handleRequest(ServletWrapper.java:592) 
at com.ibm.ws.wswebcontainer.servlet.ServletWrapper.handleRequest(ServletWrapper.java:525) 
at com.ibm.ws.webcontainer.webapp.WebApp.handleRequest(WebApp.java:3548) 
at com.ibm.ws.webcontainer.webapp.WebGroup.handleRequest(WebGroup.java:269) 
at com.ibm.ws.webcontainer.WebContainer.handleRequest(WebContainer.java:818) 
at com.ibm.ws.wswebcontainer.WebContainer.handleRequest(WebContainer.java:1478) 
at com.ibm.ws.webcontainer.channel.WCChannelLink.ready(WCChannelLink.java:126) 
at com.ibm.ws.http.channel.inbound.impl.HttpInboundLink.handleDiscrimination(HttpInboundLink.java:458) 
at com.ibm.ws.http.channel.inbound.impl.HttpInboundLink.handleNewInformation(HttpInboundLink.java:387) 
at com.ibm.ws.http.channel.inbound.impl.HttpInboundLink.ready(HttpInboundLink.java:267) 
at com.ibm.ws.tcp.channel.impl.NewConnectionInitialReadCallback.sendToDiscriminators(NewConnectionInitialReadCallback.java:214) 
at com.ibm.ws.tcp.channel.impl.NewConnectionInitialReadCallback.complete(NewConnectionInitialReadCallback.java:113) 
at com.ibm.ws.tcp.channel.impl.AioReadCompletionListener.futureCompleted(AioReadCompletionListener.java:165) 
at com.ibm.io.async.AbstractAsyncFuture.invokeCallback(AbstractAsyncFuture.java:217) 
at com.ibm.io.async.AsyncChannelFuture$1.run(AsyncChannelFuture.java:205) 
at com.ibm.ws.util.ThreadPool$Worker.run(ThreadPool.java:1497) 

[4/26/13 18:36:47:123 CEST] 00000022 WebApp E [Servlet Error]-[CXFServlet]: java.lang.IncompatibleClassChangeError 
at org.apache.cxf.wsdl11.ServiceWSDLBuilder.addExtensibilityElements(ServiceWSDLBuilder.java:229) 
at org.apache.cxf.wsdl11.ServiceWSDLBuilder.buildBindingInput(ServiceWSDLBuilder.java:355) 
at org.apache.cxf.wsdl11.ServiceWSDLBuilder.buildBindingOperation(ServiceWSDLBuilder.java:324) 
at org.apache.cxf.wsdl11.ServiceWSDLBuilder.buildBinding(ServiceWSDLBuilder.java:305) 
at org.apache.cxf.wsdl11.ServiceWSDLBuilder.build(ServiceWSDLBuilder.java:193) 
at org.apache.cxf.wsdl11.ServiceWSDLBuilder.build(ServiceWSDLBuilder.java:148) 
at org.apache.cxf.transport.http.WSDLQueryHandler.writeResponse(WSDLQueryHandler.java:146) 
at org.apache.cxf.transport.servlet.ServletController.invoke(ServletController.java:162) 
at org.apache.cxf.transport.servlet.AbstractCXFServlet.invoke(AbstractCXFServlet.java:142) 
at org.apache.cxf.transport.servlet.AbstractHTTPServlet.handleRequest(AbstractHTTPServlet.java:179) 
at org.apache.cxf.transport.servlet.AbstractHTTPServlet.doGet(AbstractHTTPServlet.java:108) 
at javax.servlet.http.HttpServlet.service(HttpServlet.java:743) 
at org.apache.cxf.transport.servlet.AbstractHTTPServlet.service(AbstractHTTPServlet.java:159) 
at com.ibm.ws.webcontainer.servlet.ServletWrapper.service(ServletWrapper.java:1146) 
at com.ibm.ws.webcontainer.servlet.ServletWrapper.handleRequest(ServletWrapper.java:592) 
at com.ibm.ws.wswebcontainer.servlet.ServletWrapper.handleRequest(ServletWrapper.java:525) 
at com.ibm.ws.webcontainer.webapp.WebApp.handleRequest(WebApp.java:3548) 
at com.ibm.ws.webcontainer.webapp.WebGroup.handleRequest(WebGroup.java:269) 
at com.ibm.ws.webcontainer.WebContainer.handleRequest(WebContainer.java:818) 
at com.ibm.ws.wswebcontainer.WebContainer.handleRequest(WebContainer.java:1478) 
at com.ibm.ws.webcontainer.channel.WCChannelLink.ready(WCChannelLink.java:126) 
at com.ibm.ws.http.channel.inbound.impl.HttpInboundLink.handleDiscrimination(HttpInboundLink.java:458) 
at com.ibm.ws.http.channel.inbound.impl.HttpInboundLink.handleNewInformation(HttpInboundLink.java:387) 
at com.ibm.ws.http.channel.inbound.impl.HttpInboundLink.ready(HttpInboundLink.java:267) 
at com.ibm.ws.tcp.channel.impl.NewConnectionInitialReadCallback.sendToDiscriminators(NewConnectionInitialReadCallback.java:214) 
at com.ibm.ws.tcp.channel.impl.NewConnectionInitialReadCallback.complete(NewConnectionInitialReadCallback.java:113) 
at com.ibm.ws.tcp.channel.impl.AioReadCompletionListener.futureCompleted(AioReadCompletionListener.java:165) 
at com.ibm.io.async.AbstractAsyncFuture.invokeCallback(AbstractAsyncFuture.java:217) 
at com.ibm.io.async.AsyncChannelFuture$1.run(AsyncChannelFuture.java:205) 
at com.ibm.ws.util.ThreadPool$Worker.run(ThreadPool.java:1497) 

[4/26/13 18:36:47:790 CEST] 00000021 ServletWrappe E SRVE0068E: Uncaught exception thrown in one of the service methods of the servlet: CXFServlet. Exception thrown : java.lang.IncompatibleClassChangeError 
at org.apache.cxf.wsdl11.ServiceWSDLBuilder.addExtensibilityElements(ServiceWSDLBuilder.java:229) 
at org.apache.cxf.wsdl11.ServiceWSDLBuilder.buildBindingInput(ServiceWSDLBuilder.java:355) 
at org.apache.cxf.wsdl11.ServiceWSDLBuilder.buildBindingOperation(ServiceWSDLBuilder.java:324) 
at org.apache.cxf.wsdl11.ServiceWSDLBuilder.buildBinding(ServiceWSDLBuilder.java:305) 
at org.apache.cxf.wsdl11.ServiceWSDLBuilder.build(ServiceWSDLBuilder.java:193) 
at org.apache.cxf.wsdl11.ServiceWSDLBuilder.build(ServiceWSDLBuilder.java:148) 
at org.apache.cxf.transport.http.WSDLQueryHandler.writeResponse(WSDLQueryHandler.java:146) 
at org.apache.cxf.transport.servlet.ServletController.invoke(ServletController.java:162) 
at org.apache.cxf.transport.servlet.AbstractCXFServlet.invoke(AbstractCXFServlet.java:142) 
at org.apache.cxf.transport.servlet.AbstractHTTPServlet.handleRequest(AbstractHTTPServlet.java:179) 
at org.apache.cxf.transport.servlet.AbstractHTTPServlet.doGet(AbstractHTTPServlet.java:108) 
at javax.servlet.http.HttpServlet.service(HttpServlet.java:743) 
at org.apache.cxf.transport.servlet.AbstractHTTPServlet.service(AbstractHTTPServlet.java:159) 
at com.ibm.ws.webcontainer.servlet.ServletWrapper.service(ServletWrapper.java:1146) 
at com.ibm.ws.webcontainer.servlet.ServletWrapper.handleRequest(ServletWrapper.java:592) 
at com.ibm.ws.wswebcontainer.servlet.ServletWrapper.handleRequest(ServletWrapper.java:525) 
at com.ibm.ws.webcontainer.webapp.WebApp.handleRequest(WebApp.java:3548) 
at com.ibm.ws.webcontainer.webapp.WebGroup.handleRequest(WebGroup.java:269) 
at com.ibm.ws.webcontainer.WebContainer.handleRequest(WebContainer.java:818) 
at com.ibm.ws.wswebcontainer.WebContainer.handleRequest(WebContainer.java:1478) 
at com.ibm.ws.webcontainer.channel.WCChannelLink.ready(WCChannelLink.java:126) 
at com.ibm.ws.http.channel.inbound.impl.HttpInboundLink.handleDiscrimination(HttpInboundLink.java:458) 
at com.ibm.ws.http.channel.inbound.impl.HttpInboundLink.handleNewInformation(HttpInboundLink.java:387) 
at com.ibm.ws.http.channel.inbound.impl.HttpInboundLink.ready(HttpInboundLink.java:267) 
at com.ibm.ws.tcp.channel.impl.NewConnectionInitialReadCallback.sendToDiscriminators(NewConnectionInitialReadCallback.java:214) 
at com.ibm.ws.tcp.channel.impl.NewConnectionInitialReadCallback.complete(NewConnectionInitialReadCallback.java:113) 
at com.ibm.ws.tcp.channel.impl.AioReadCompletionListener.futureCompleted(AioReadCompletionListener.java:165) 
at com.ibm.io.async.AbstractAsyncFuture.invokeCallback(AbstractAsyncFuture.java:217) 
at com.ibm.io.async.AsyncChannelFuture$1.run(AsyncChannelFuture.java:205) 
at com.ibm.ws.util.ThreadPool$Worker.run(ThreadPool.java:1497) 
+0

對於初學者,您需要在IBM JDK(附帶WebSphere)中進行編譯。這可能會或可能無法解決您的問題。 – 2013-04-28 20:59:23

回答

0

由於錯誤當您請求WSDL,它很可能,它是由和WSDL4J庫的版本之間的不兼容包括在WAS 6.1的一個通過CXF預期所致。爲了避免這種情況,您應該最後將您的應用程序的類加載器策略更改爲父項。