Satling Pujari
Satling Pujari

Reputation: 21

AbstractWsSecurityInterceptor.java: Could not secure response: oracle.xml.parser.v2.XMLElement cannot be cast to javax.xml.soap.SOAPElement;

SOAP Spring Web Service issue Java 8 weblogic 12.2.

Error in Log

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

please help

Upvotes: 1

Views: 766

Answers (1)

Satling Pujari
Satling Pujari

Reputation: 21

set below path in setDomainEnv.sh file of weblogic server

JAVA_OPTIONS="${JAVA_OPTIONS} -Djavax.xml.soap.MetaFactory=weblogic.xml.saaj.SAAJMetaFactoryImpl" export JAVA_OPTIONS

Upvotes: 1

Related Questions