AbstractWsSecurityInterceptor.java:无法确保响应:oracle.xml.parser.v2.XMLElement无法转换为javax.xml.soap.SOAPElement;

时间:2019-06-25 15:50:50

标签: spring soap weblogic12c

SOAP Spring Web Service问题 Java 8 weblogic 12.2。

日志错误

AbstractWsSecurityInterceptor.java:263 | Could not secure response:
java.lang.ClassCastException: oracle.xml.parser.v2.XMLElement cannot
be cast to javax.xml.soap.SOAPElement; nested exception is
com.sun.xml.wss.XWSSecurityException: java.lang.ClassCastException:
oracle.xml.parser.v2.XMLElement cannot be cast to
javax.xml.soap.SOAPElement
org.springframework.ws.soap.security.xwss.XwsSecuritySecurementException:
java.lang.ClassCastException: oracle.xml.parser.v2.XMLElement cannot
be cast to javax.xml.soap.SOAPElement; nested exception is
com.sun.xml.wss.XWSSecurityException: java.lang.ClassCastException:
oracle.xml.parser.v2.XMLElement cannot be cast to
javax.xml.soap.SOAPElement

请帮助

1 个答案:

答案 0 :(得分:1)

在weblogic服务器的setDomainEnv.sh文件中的路径下设置

JAVA_OPTIONS =“ $ {JAVA_OPTIONS} -Djavax.xml.soap.MetaFactory = weblogic.xml.saaj.SAAJMetaFactoryImpl” 导出JAVA_OPTIONS