1

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

2
  • What exactly are you trying to do? Commented Jun 25, 2019 at 16:05
  • we started getting this error after migration from Weblogic old version to WebLogic 12 c . we are returning the response data java object to the service and earlier weblogic version it was working fine however in Weblogic 12 c we are getting this error Commented Jun 25, 2019 at 16:33

1 Answer 1

1

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

Sign up to request clarification or add additional context in comments.

Comments

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge you have read our privacy policy.

Start asking to get answers

Find the answer to your question by asking.

Ask question

Explore related questions

See similar questions with these tags.