Failed to create MessageFactory
843833Feb 16 2005 — edited Apr 10 2008I am running into a problem and not sure what to do. I have a web application set up and am trying to make a call to a web service. I have used wscompile to create my client classes and am making the call in my jsp but I get this error :
java.rmi.RemoteException: Couldn't create SOAP message factory due to exception: javax.xml.soap.SOAPException: Failed to create MessageFactory: org.apache.axis.soap.MessageFactoryImpl; nested exception is:
Couldn't create SOAP message factory due to exception: javax.xml.soap.SOAPException: Failed to create MessageFactory: org.apache.axis.soap.MessageFactoryImpl
I am NOT using AXIS., just the standard sun impl ->jax-rpc.
I have taken the code from this jsp and created my own java app and ran it from the command line and it runs fine - connection is made and I get the response, but in the web containter (tomcat 5), it doesn't seem to work.
I have read about adding a file in META-INF/services, but I am not sure that is the correct approach (although I tried it).
So I am left with these questions:
Why does it work from command line but not in tomcat?
Why is it talking about axis? (i have checked for jar conflicts but I THINK there are none)
What am I doing wrong? :)
Thanks,
Matt