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
请帮助
答案 0 :(得分:1)
在weblogic服务器的setDomainEnv.sh文件中的路径下设置
JAVA_OPTIONS =“ $ {JAVA_OPTIONS} -Djavax.xml.soap.MetaFactory = weblogic.xml.saaj.SAAJMetaFactoryImpl” 导出JAVA_OPTIONS