Skip to Main Content

Java EE (Java Enterprise Edition) General Discussion

Announcement

For appeals, questions and feedback about Oracle Forums, please email oracle-forums-moderators_us@oracle.com. Technical questions should be asked in the appropriate category. Thank you!

Failed to create MessageFactory

843833Feb 16 2005 — edited Apr 10 2008
I 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
Comments
Locked Post
New comments cannot be posted to this locked post.
Post Details
Locked on May 8 2008
Added on Feb 16 2005
7 comments
7,849 views