在WAS 8.5中获取运行时JVMVRFY012的答案

时间:2016-10-03 10:30:58

标签: spring web-services websphere soapui incompatibility

我使用JDK 1.7(IBM)在Websphere 8.5中部署了一个EAR。我的应用程序是一个基于Spring的应用程序,只公开Web服务;它具有以下特点:

  • 类加载器设置为PARENT_LAST
  • 有共享库,其中一个有Spring Framework(4.3.2)和Apache CXF(3.1.9)jar。
  • 我通过SOAPUI(5.2.1)调用它。
  • 应用程序启动没有问题。

当我调用它时,我收到以下错误消息:

00000146 ServletWrappe E com.ibm.ws.webcontainer.servlet.ServletWrapper
service Uncaught service() exception thrown by servlet CXFServlet: 
java.lang.VerifyError: **JVMVRFY012** tamaño de pila incoherente; 
clase=com/sun/xml/messaging/saaj/soap/SOAPDocumentImpl, 
método=createDocumentFragment()Lorg/w3c/dom/DocumentFragment;, pc=5

我阅读了该错误的相关答案并提供了this solution,但收到了以下错误:

javax.xml.soap.SOAPException: **Unable to create message factory for SOAP: 
com.sun.xml.internal.messaging.saaj.soap.ver1_1.SOAPMessageFactory1_1Impl 
incompatible with javax.xml.soap.MessageFactory**

我将调试Apache CXF库以尝试解决问题。提前感谢您的回答。

1 个答案:

答案 0 :(得分:1)

我终于解决了我的问题。这是WAS和app libs之间存在冲突的库问题。我从WEB-INF / lib文件夹中删除了以下库:

  • javax.xml.soap中-API
  • SAAJ-IMPL

谢谢!