有关迁移Web服务应用程序的Websphere 8.5 ClassCastException

时间:2014-09-27 22:40:02

标签: java web-services soap websphere-8

我们正在升级我们的应用服务器并将部署在websphere 5中的所有应用程序移动到websphere 8.5。

我们无法提出网络服务应用程序。部署ear文件没有问题,但是当尝试部署(ServiceManagerClient部署)web服务时,它会抛出错误

Unsupported response content type "text/html; charset=utf-8", must be: "text/xml". Response was: Error 500: java.lang.ClassCastException: org.apache.soap.server.ServiceManager incompatible with org.apache.soap.server.ServiceManager

我尝试了所有我能想到的方法。

首先,我尝试使用/AppServer/plugins下的com.ibm.ws.prereq.soap.jar替换应用程序类路径中的旧soap.jar

然后我从应用程序类路径中完全删除了soap.jar,并将com.ibm.ws.prereq.soap.jar放在/AppServer/lib目录中,但仍然遇到了同样的错误。

我还在整个AppServer目录中搜索了任何jar中的org.apache.soap.server.ServiceManager类,并尝试在应用程序的类路径中添加jar而没有运气。

我能够在WAS 5.5和7中没有任何问题地部署Web服务。

FFDC事件记录在服务器端

[9/27/14 17:17:34:938 CDT]     FFDC Exception:java.lang.ClassCastException SourceId:com.ibm.ws.webcontainer.filter.WebAppFilterManager.invokeFilters -RE ProbeId:1123 Reporter:com.ibm.ws.webcontainer.filter.WebAppFilterManagerImpl@f04030c
java.lang.ClassCastException: org.apache.soap.server.ServiceManager incompatible with org.apache.soap.server.ServiceManager
    at org.apache.soap.server.http.ServerHTTPUtils.getServiceManagerFromContext(ServerHTTPUtils.java:112)
    at org.apache.soap.server.http.RPCRouterServlet.doPost(RPCRouterServlet.java:277)
    at javax.servlet.http.HttpServlet.service(HttpServlet.java:595)
    at javax.servlet.http.HttpServlet.service(HttpServlet.java:668)
    at com.ibm.ws.webcontainer.servlet.ServletWrapper.service(ServletWrapper.java:1224)
    at com.ibm.ws.webcontainer.servlet.ServletWrapper.handleRequest(ServletWrapper.java:774)
    at com.ibm.ws.webcontainer.servlet.ServletWrapper.handleRequest(ServletWrapper.java:456)
    at com.ibm.ws.webcontainer.servlet.ServletWrapperImpl.handleRequest(ServletWrapperImpl.java:178)
    at com.ibm.ws.webcontainer.filter.WebAppFilterManager.invokeFilters(WebAppFilterManager.java:1032)
    at com.ibm.ws.webcontainer.webapp.WebApp.handleRequest(WebApp.java:3748)
    at com.ibm.ws.webcontainer.webapp.WebGroup.handleRequest(WebGroup.java:304)
    at com.ibm.ws.webcontainer.WebContainer.handleRequest(WebContainer.java:962)
    at com.ibm.ws.webcontainer.WSWebContainer.handleRequest(WSWebContainer.java:1662)
    at com.ibm.ws.webcontainer.channel.WCChannelLink.ready(WCChannelLink.java:195)
    at com.ibm.ws.http.channel.inbound.impl.HttpInboundLink.handleDiscrimination(HttpInboundLink.java:459)
    at com.ibm.ws.http.channel.inbound.impl.HttpInboundLink.handleNewRequest(HttpInboundLink.java:526)
    at com.ibm.ws.http.channel.inbound.impl.HttpInboundLink.processRequest(HttpInboundLink.java:312)
    at com.ibm.ws.http.channel.inbound.impl.HttpInboundLink.ready(HttpInboundLink.java:283)
    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:138)
    at com.ibm.io.async.ResultHandler.complete(ResultHandler.java:204)
    at com.ibm.io.async.ResultHandler.runEventProcessingLoop(ResultHandler.java:775)
    at com.ibm.io.async.ResultHandler$2.run(ResultHandler.java:905)
    at com.ibm.ws.util.ThreadPool$Worker.run(ThreadPool.java:1814)

我担心我可能在这里完全遗漏了一些东西,而不仅仅是soap.jar的问题。任何指导我正确方向的帮助都将不胜感激。

1 个答案:

答案 0 :(得分:1)

Apache 8.0支持已从8.0版(soap.jar)中删除。请查看此链接Removed features

您需要迁移您的网络服务 您可以查看此页面以进行手动迁移 - Migrating Apache SOAP web services to JAX-RPC web services based on Java EE standards 或者你可以查看WebSphere Application Server Migration Toolkit,它是Eclipse的免费插件,可以自动迁移你的网络服务。