请问JAXM创建MessageFactory的问题

03-08-22 llystart
我用下面语句实例化一个MessageFactory:

MessageFactory messageFactory=MessageFactory.newInstance();

一、当引入jaxm.jar时,编译能通过,但是运行时出错:

javax.xml.soap.SOAPException: Unable to create message factory for SOAP: com.sun.xml.messaging.soap.MessageFactoryImpl

at javax.xml.soap.MessageFactory.newInstance(MessageFactory.java:87)

at SoapClient.main(SoapClient.java:9)

Exception in thread "main"

二、如果引入WebLogic安装目录下weblogic700\server\lib里的 weblogic.jar和webservice.jar,编译运行均正常,不知是怎么回事?

1
猜你喜欢