weblogic10.3报This class does not support SAAJ 1.1

axis调用webservice服务在本地main方法调用通过,发布到weblogic10.3上报This class does not support SAAJ 1.1

 

网上解决办法为在startWebLogic.sh加入:

 

export JAVA_OPTIONS="${JAVA_OPTIONS} -Djavax.xml.soap.MessageFactory=com.sun.xml.messaging.saaj.soap.ver1_1.SOAPMessageFactory1_1Impl
-Djavax.xml.soap.SOAPConnectionFactory=weblogic.wsee.saaj.SOAPConnectionFactoryImpl"

 

由于安装的jre中没有这个com.sun.xml包,就想着既然在本地可以调通,那就在weblogic中指定MessageFactory为axis的吧,一样在startWeblogic.sh加入:

export JAVA_OPTIONS="${JAVA_OPTIONS} -Djavax.xml.soap.SOAPFactory=org.apache.axis.soap.SOAPFactoryImpl -Djavax.xml.soap.MessageFa
ctory=org.apache.axis.soap.MessageFactoryImpl -Djavax.xml.soap.SOAPConnectionFactory=org.apache.axis.soap.SOAPConnectionFactoryIm
pl"

 

测试OK

你可能感兴趣的:(weblogic)