升级到WAS 8后,ServletWrapper未捕获异常

时间:2015-03-27 20:34:02

标签: java websphere axis2

RAD 7.5>升级RAD 8.5& WAS 7> WAS 8。制作jar& JRE参考更改,已经过了所有硬编译/构建错误,并且能够启动服务器没有错误,并且能够进入我的应用程序的第一页。在输入一些字段并单击提交后,我收到错误 - 任何想法?

ServletWrappe E com.ibm.ws.webcontainer.servlet.ServletWrapper service Uncaught service() exception thrown by servlet action: java.lang.AbstractMethodError: org/w3c/dom/Node.lookupNamespaceURI(Ljava/lang/String;)Ljava/lang/String;
at org.apache.ws.commons.schema.utils.NodeNamespaceContext.getNamespaceURIDomLevel3(NodeNamespaceContext.java:92)
at org.apache.ws.commons.schema.utils.NodeNamespaceContext.getNamespaceURI(NodeNamespaceContext.java:84)
at org.apache.ws.commons.schema.SchemaBuilder.getRefQName(SchemaBuilder.java:570)
at org.apache.ws.commons.schema.SchemaBuilder.handleSimpleContentExtension(SchemaBuilder.java:825)
at org.apache.ws.commons.schema.SchemaBuilder.handleSimpleContent(SchemaBuilder.java:735)
at org.apache.ws.commons.schema.SchemaBuilder.handleComplexType(SchemaBuilder.java:670)
at org.apache.ws.commons.schema.SchemaBuilder.handleXmlSchemaElement(SchemaBuilder.java:205)
at org.apache.ws.commons.schema.SchemaBuilder.build(SchemaBuilder.java:121)
at org.apache.ws.commons.schema.XmlSchemaCollection.read(XmlSchemaCollection.java:512)
at org.apache.ws.commons.schema.XmlSchemaCollection.read(XmlSchemaCollection.java:385)
at org.apache.ws.commons.schema.SchemaBuilder.resolveXmlSchema(SchemaBuilder.java:1892)
at org.apache.ws.commons.schema.SchemaBuilder.handleImport(SchemaBuilder.java:1606)
at org.apache.ws.commons.schema.SchemaBuilder.handleXmlSchemaElement(SchemaBuilder.java:224)
at org.apache.ws.commons.schema.SchemaBuilder.build(SchemaBuilder.java:121)
at org.apache.ws.commons.schema.XmlSchemaCollection.read(XmlSchemaCollection.java:512)
at org.apache.ws.commons.schema.XmlSchemaCollection.read(XmlSchemaCollection.java:385)
at org.apache.ws.commons.schema.SchemaBuilder.resolveXmlSchema(SchemaBuilder.java:1892)
at org.apache.ws.commons.schema.SchemaBuilder.resolveXmlSchema(SchemaBuilder.java:1921)
at org.apache.ws.commons.schema.SchemaBuilder.handleInclude(SchemaBuilder.java:1647)
at org.apache.ws.commons.schema.SchemaBuilder.handleXmlSchemaElement(SchemaBuilder.java:219)
at org.apache.ws.commons.schema.XmlSchemaCollection.read(XmlSchemaCollection.java:481)
at org.apache.axis2.description.WSDLToAxisServiceBuilder$1.run(WSDLToAxisServiceBuilder.java:148)
at org.apache.axis2.description.WSDLToAxisServiceBuilder$1.run(WSDLToAxisServiceBuilder.java:146)
at org.apache.axis2.java.security.AccessController.doPrivileged(AccessController.java:76)
at org.apache.axis2.description.WSDLToAxisServiceBuilder.getXMLSchema(WSDLToAxisServiceBuilder.java:145)
at org.apache.axis2.description.WSDL11ToAxisServiceBuilder.copyExtensibleElements(WSDL11ToAxisServiceBuilder.java:2492)
at org.apache.axis2.description.WSDL11ToAxisServiceBuilder.processTypes(WSDL11ToAxisServiceBuilder.java:420)
at org.apache.axis2.description.WSDL11ToAxisServiceBuilder.processTypes(WSDL11ToAxisServiceBuilder.java:409)
at org.apache.axis2.description.WSDL11ToAxisServiceBuilder.populateService(WSDL11ToAxisServiceBuilder.java:349)
at org.apache.axis2.jaxws.description.impl.EndpointDescriptionImpl.buildAxisServiceFromWSDL(EndpointDescriptionImpl.java:977)
at org.apache.axis2.jaxws.description.impl.EndpointDescriptionImpl.setupAxisService(EndpointDescriptionImpl.java:776)
at org.apache.axis2.jaxws.description.impl.EndpointDescriptionImpl.<init>(EndpointDescriptionImpl.java:275)
at org.apache.axis2.jaxws.description.impl.EndpointDescriptionImpl.<init>(EndpointDescriptionImpl.java:223)
at org.apache.axis2.jaxws.description.impl.ServiceDescriptionImpl.updateEndpointDescription(ServiceDescriptionImpl.java:534)
at org.apache.axis2.jaxws.description.impl.DescriptionFactoryImpl.updateEndpoint(DescriptionFactoryImpl.java:382)
at org.apache.axis2.jaxws.description.DescriptionFactory.updateEndpoint(DescriptionFactory.java:180)
at org.apache.axis2.jaxws.spi.ServiceDelegate.getPort(ServiceDelegate.java:597)
at org.apache.axis2.jaxws.spi.ServiceDelegate.getPort(ServiceDelegate.java:513)
at javax.xml.ws.Service.getPort(Service.java:99)
at com.usbank.soa.basecustomerservice_v_3_0.BaseCustomerService.getBaseCustomerServiceSOAP(BaseCustomerService.java:52)
at com.usbank.soa.basecustomerservice_v_3_0.BaseCustomerServiceRequest.sendRequest(BaseCustomerServiceRequest.java:38)
at com.usb.emailpref.action.emailaction.execute(emailaction.java:178)
at org.apache.struts.action.RequestProcessor.processActionPerform(RequestProcessor.java:484)
at org.apache.struts.action.RequestProcessor.process(RequestProcessor.java:274)
at org.apache.struts.action.ActionServlet.process(ActionServlet.java:1482)
at org.apache.struts.action.ActionServlet.doPost(ActionServlet.java:525)
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:1235)
at com.ibm.ws.webcontainer.servlet.ServletWrapper.handleRequest(ServletWrapper.java:779)
at com.ibm.ws.webcontainer.servlet.ServletWrapper.handleRequest(ServletWrapper.java:478)
at com.ibm.ws.webcontainer.servlet.ServletWrapperImpl.handleRequest(ServletWrapperImpl.java:178)
at com.ibm.ws.webcontainer.filter.WebAppFilterManager.invokeFilters(WebAppFilterManager.java:1071)
at com.ibm.ws.webcontainer.webapp.WebApp.handleRequest(WebApp.java:3815)
at com.ibm.ws.webcontainer.webapp.WebGroup.handleRequest(WebGroup.java:304)
at com.ibm.ws.webcontainer.WebContainer.handleRequest(WebContainer.java:981)
at com.ibm.ws.webcontainer.WSWebContainer.handleRequest(WSWebContainer.java:1662)
at com.ibm.ws.webcontainer.channel.WCChannelLink.ready(WCChannelLink.java:200)
at com.ibm.ws.http.channel.inbound.impl.HttpInboundLink.handleDiscrimination(HttpInboundLink.java:453)
at com.ibm.ws.http.channel.inbound.impl.HttpInboundLink.handleNewRequest(HttpInboundLink.java:515)
at com.ibm.ws.http.channel.inbound.impl.HttpInboundLink.processRequest(HttpInboundLink.java:306)
at com.ibm.ws.http.channel.inbound.impl.HttpICLReadCallback.complete(HttpICLReadCallback.java:84)
at com.ibm.ws.tcp.channel.impl.AioReadCompletionListener.futureCompleted(AioReadCompletionListener.java:175)
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:1702)

由于互联网上有各种帖子谈到删除jaxp_1.1.1.jar中的SAXParser *类(因为这些解析器位于基础WAS 8.5罐中),我删除了它们。但它仍然没有解决问题。当我走过我的代码时,发送SOAP消息时会抛出错误,因此它完全可能与解析问题有关。

是否有人对此有其他想法?

2 个答案:

答案 0 :(得分:0)

我最终发现我需要从包含的jar中删除crimson_1.1.1.jar,xmlparser_3.3.02.jar和xercesImpl-2.8.0.jar。我还必须从jaxp_1.1.1.jar中删除解析器文件夹。这些罐子已经被新的WAS v8.5标准罐取代/替换,其中XML格式化方法接口(这些方法至少)已被改变,导致实现发生变化。从jaxp_1.1.1.jar中删除解析器文件夹时的相同表示法。删除后,错误消失了,我的应用程序现在可以在RAD 8.5&amp; WAS 8.5.5.5。

由于这与SOAP / WSDL / XML相关,如果您碰巧遇到以下错误 - &#34; CWPOL0040E:客户端无法确定如何为服务{{{​​3}}} BaseCustomerService配置策略因为在处理附加到服务的WSDL文档时,com.ibm.ws.wspolicy.UnsupportedNamespaceException&#34;发生了以下异常,您需要添加参数 - “-Dcom.ibm.ws.wspolicy.ignoreWSP12inPackagedWSDL =真&#34; (在连字符之前有一个前置空格)到Generic JVM参数列表。这个错误并不总是发生,但在我的情况下也是如此。

答案 1 :(得分:0)

超级旧线程,但是我想在同一个问题上添加另一个观点。对我来说,深红色的依赖是主要的罪魁祸首。转向WAS 8.5和Java 8之后,我删除了以下内容:

  • 深红色
  • jaxp-api
  • xml-apis(确保没有传递依赖项)
  • xercesImpl
  • 注意:开头没有jaxp实现jar