You are viewing a plain text version of this content. The canonical link for it is here.
Posted to java-user@axis.apache.org by Eric Roberts <er...@tacc.utexas.edu> on 2002/08/01 23:33:21 UTC

Re: Messaging MessageFactoryImpl class

On Friday 21 June 2002 04:13 pm, Kevin Sebastian wrote:
I am having the exact same problem Kevin is having......Where is the 
com.sun.xml.messaging.soap package located?

Thanks

Eric

> Hi,
>
> I am trying to develop a messaging server servlet which uses the
> MessageFactory to create a SOAPMessage
> as follows:
>
> MessageFactory myFactory = MessageFactory.newInstance();
>
> But I get the following error during runtime :
>
> javax.xml.soap.SOAPException: Unable to create message factory for SOAP:
> Provider com.sun.xml.messaging.soap.MessageFactoryImpl not found
>
> I downloaded the Sun Java JWSDP  package and found that the
> MessageFactoryImpl class is in the
> saaj-ri.jar file under the package "com/sun/xml/messaging/saaj/soap/".
>
> But the AXIS MessageFactory.java code in the axis source expects the
> MessageFactoryImpl class to be in
> a totally different package as defined in the code below:
>
> private static final String DEFAULT_MESSAGE_FACTORY =
> "com.sun.xml.messaging.soap.MessageFactoryImpl";
>
> This means my code will not work even if I copy the saaj-ri.jar file
> over to my webserver.
>
> Can someone tell me how to overcome this problem.
>
> Thanks in advance,
> Kevin

-- 
Eric Roberts
Web Service Developer for Grid Computing
Texas Advanced Computing Center
ericrobe@tacc.utexas.edu