首页 诗词 字典 板报 句子 名言 友答 励志 学校 网站地图
当前位置: 首页 > 教程频道 > 网站开发 > Web前端 >

was6.1迁移was7导致webservice报错有关问题解决

2012-09-02 
was6.1迁移was7导致webservice报错问题解决很高兴解决了困扰了我几天的问题。应用服务器一直使用的was6.1,

was6.1迁移was7导致webservice报错问题解决

很高兴解决了困扰了我几天的问题。
应用服务器一直使用的was6.1,最近迁移到was7时出现了一个系统问题,原本稳定运行的一个webservice接口无法正常工作,查看was日志发现一下报错。

SystemErr.log

[11-2-27 10:41:21:140 CST] 00000014 SystemErr     R java.lang.ClassCastException: com.ibm.wsdl.extensions.schema.SchemaImpl incompatible with javax.wsdl.extensions.UnknownExtensibilityElement[11-2-27 10:41:21:140 CST] 00000014 SystemErr     R at org.apache.wsif.schema.Parser.getTypesSchemas(Parser.java:608)[11-2-27 10:41:21:140 CST] 00000014 SystemErr     R at org.apache.wsif.schema.Parser.getAllSchemaTypes(Parser.java:499)[11-2-27 10:41:21:140 CST] 00000014 SystemErr     R at com.oval.webservice.DynamicInvoker.invokeMethod(DynamicInvoker.java:365)[11-2-27 10:41:21:140 CST] 00000014 SystemErr     R at com.oval.jobunit.webservice.WebServiceClient.step(WebServiceClient.java:102)[11-2-27 10:41:21:140 CST] 00000014 SystemErr     R at com.oval.foundation.workflow.WorkflowElement.walk(WorkflowElement.java:232)[11-2-27 10:41:21:140 CST] 00000014 SystemErr     R at com.oval.foundation.workflow.TxInterceptor.forward(TxInterceptor.java:526)[11-2-27 10:41:21:140 CST] 00000014 SystemErr     R at com.oval.foundation.workflow.WorkflowElement.forward(WorkflowElement.java:317)[11-2-27 10:41:21:140 CST] 00000014 SystemErr     R at com.oval.foundation.workflow.WorkflowElement.forward(WorkflowElement.java:303)[11-2-27 10:41:21:140 CST] 00000014 SystemErr     R at com.oval.foundation.workflow.OvalComponent.stepNormal(OvalComponent.java:157)[11-2-27 10:41:21:140 CST] 00000014 SystemErr     R at com.oval.foundation.workflow.OvalComponent.stepDetail(OvalComponent.java:229)[11-2-27 10:41:21:140 CST] 00000014 SystemErr     R at com.oval.foundation.workflow.OvalJob.step(OvalJob.java:80)[11-2-27 10:41:21:140 CST] 00000014 SystemErr     R at com.oval.foundation.workflow.OvalComponent.step(OvalComponent.java:61)[11-2-27 10:41:21:140 CST] 00000014 SystemErr     R at com.oval.foundation.workflow.WorkflowElement.walk(WorkflowElement.java:232)[11-2-27 10:41:21:140 CST] 00000014 SystemErr     R at com.oval.foundation.workflow.OvalComponent.walk(OvalComponent.java:111)[11-2-27 10:41:21:140 CST] 00000014 SystemErr     R at com.oval.foundation.workflow.TxInterceptor.forward(TxInterceptor.java:526)[11-2-27 10:41:21:140 CST] 00000014 SystemErr     R at com.oval.foundation.workflow.WorkflowElement.forward(WorkflowElement.java:317)[11-2-27 10:41:21:140 CST] 00000014 SystemErr     R at com.oval.foundation.workflow.WorkflowElement.forward(WorkflowElement.java:303)[11-2-27 10:41:21:140 CST] 00000014 SystemErr     R at com.oval.foundation.view.OvalDispatchEngine.processJob(OvalDispatchEngine.java:140)[11-2-27 10:41:21:140 CST] 00000014 SystemErr     R at com.oval.foundation.view.OvalDispatchEngine.processJob(OvalDispatchEngine.java:200)[11-2-27 10:41:21:140 CST] 00000014 SystemErr     R at com.oval.foundation.view.OvalDispatchEngine.processJob(OvalDispatchEngine.java:53)[11-2-27 10:41:21:140 CST] 00000014 SystemErr     R at com.oval.foundation.view.Dispatcher.processInfo(Dispatcher.java:176)[11-2-27 10:41:21:140 CST] 00000014 SystemErr     R at com.oval.foundation.view.Dispatcher.doGet(Dispatcher.java:67)[11-2-27 10:41:21:140 CST] 00000014 SystemErr     R at javax.servlet.http.HttpServlet.service(HttpServlet.java:718)[11-2-27 10:41:21:140 CST] 00000014 SystemErr     R at javax.servlet.http.HttpServlet.service(HttpServlet.java:831)[11-2-27 10:41:21:140 CST] 00000014 SystemErr     R at com.ibm.ws.webcontainer.servlet.ServletWrapper.service(ServletWrapper.java:1443)[11-2-27 10:41:21:140 CST] 00000014 SystemErr     R at com.ibm.ws.webcontainer.servlet.ServletWrapper.service(ServletWrapper.java:1384)[11-2-27 10:41:21:140 CST] 00000014 SystemErr     R at com.ibm.ws.webcontainer.filter.WebAppFilterChain.doFilter(WebAppFilterChain.java:131)[11-2-27 10:41:21:140 CST] 00000014 SystemErr     R at com.oval.foundation.view.OvalPageRequestFilter.doFilter(OvalPageRequestFilter.java:67)[11-2-27 10:41:21:140 CST] 00000014 SystemErr     R at com.ibm.ws.webcontainer.filter.FilterInstanceWrapper.doFilter(FilterInstanceWrapper.java:188)[11-2-27 10:41:21:140 CST] 00000014 SystemErr     R at com.ibm.ws.webcontainer.filter.WebAppFilterChain.doFilter(WebAppFilterChain.java:116)[11-2-27 10:41:21:140 CST] 00000014 SystemErr     R at com.ibm.ws.webcontainer.filter.WebAppFilterChain._doFilter(WebAppFilterChain.java:77)[11-2-27 10:41:21:140 CST] 00000014 SystemErr     R at com.ibm.ws.webcontainer.filter.WebAppFilterManager.doFilter(WebAppFilterManager.java:852)[11-2-27 10:41:21:140 CST] 00000014 SystemErr     R at com.ibm.ws.webcontainer.servlet.ServletWrapper.handleRequest(ServletWrapper.java:785)[11-2-27 10:41:21:140 CST] 00000014 SystemErr     R at com.ibm.ws.webcontainer.servlet.ServletWrapper.handleRequest(ServletWrapper.java:443)[11-2-27 10:41:21:140 CST] 00000014 SystemErr     R at com.ibm.ws.webcontainer.servlet.ServletWrapperImpl.handleRequest(ServletWrapperImpl.java:175)[11-2-27 10:41:21:140 CST] 00000014 SystemErr     R at com.ibm.ws.webcontainer.servlet.CacheServletWrapper.handleRequest(CacheServletWrapper.java:91)[11-2-27 10:41:21:140 CST] 00000014 SystemErr     R at com.ibm.ws.webcontainer.WebContainer.handleRequest(WebContainer.java:859)[11-2-27 10:41:21:140 CST] 00000014 SystemErr     R at com.ibm.ws.webcontainer.WSWebContainer.handleRequest(WSWebContainer.java:1557)[11-2-27 10:41:21:140 CST] 00000014 SystemErr     R at com.ibm.ws.webcontainer.channel.WCChannelLink.ready(WCChannelLink.java:173)[11-2-27 10:41:21:140 CST] 00000014 SystemErr     R at com.ibm.ws.http.channel.inbound.impl.HttpInboundLink.handleDiscrimination(HttpInboundLink.java:455)[11-2-27 10:41:21:140 CST] 00000014 SystemErr     R at com.ibm.ws.http.channel.inbound.impl.HttpInboundLink.handleNewInformation(HttpInboundLink.java:384)[11-2-27 10:41:21:140 CST] 00000014 SystemErr     R at com.ibm.ws.http.channel.inbound.impl.HttpICLReadCallback.complete(HttpICLReadCallback.java:83)[11-2-27 10:41:21:140 CST] 00000014 SystemErr     R at com.ibm.ws.tcp.channel.impl.AioReadCompletionListener.futureCompleted(AioReadCompletionListener.java:165)[11-2-27 10:41:21:140 CST] 00000014 SystemErr     R at com.ibm.io.async.AbstractAsyncFuture.invokeCallback(AbstractAsyncFuture.java:217)[11-2-27 10:41:21:140 CST] 00000014 SystemErr     R at com.ibm.io.async.AsyncChannelFuture.fireCompletionActions(AsyncChannelFuture.java:161)[11-2-27 10:41:21:140 CST] 00000014 SystemErr     R at com.ibm.io.async.AsyncFuture.completed(AsyncFuture.java:138)[11-2-27 10:41:21:140 CST] 00000014 SystemErr     R at com.ibm.io.async.ResultHandler.complete(ResultHandler.java:202)[11-2-27 10:41:21:140 CST] 00000014 SystemErr     R at com.ibm.io.async.ResultHandler.runEventProcessingLoop(ResultHandler.java:766)[11-2-27 10:41:21:140 CST] 00000014 SystemErr     R at com.ibm.io.async.ResultHandler$2.run(ResultHandler.java:896)[11-2-27 10:41:21:140 CST] 00000014 SystemErr     R at com.ibm.ws.util.ThreadPool$Worker.run(ThreadPool.java:1527)
?

开始分析问题,主要集中在2个jar包:wsif.jar/wsdl4j.jar,在部署的应用里这2个包都存在。

刚开始怀疑是jar包版本问题,但是替换后仍然不能解决。

再后来就怀疑是was本身自带的包里包含了这几个jar。分别去掉这几个jar包开始调试,分了几种场景都没有解决。

后来把这2个jar去全部去掉,重启,搞定!

回过头来再看下IBM\WebSphere\AppServer\lib下的文件。

其中有一个jar包:wsif-compatb.jar,打开看看,了然了。

热点排行