| Author |
unable to internalize message
|
Mikael Edvardsson
Greenhorn
Joined: Oct 08, 2003
Posts: 6
|
|
Hello! Does anyone know what causes this exception? javax.xml.soap.SOAPException: unable to internalize message Thanks
|
 |
JeanLouis Marechaux
Ranch Hand
Joined: Nov 12, 2001
Posts: 906
|
|
|
is it using JAXM ??
|
/ JeanLouis<br /><i>"software development has been, is, and will remain fundamentally hard" (Grady Booch)</i><br /> <br />Take a look at <a href="http://www.epfwiki.net/wikis/openup/" target="_blank" rel="nofollow">Agile OpenUP</a> in the Eclipse community
|
 |
Mikael Edvardsson
Greenhorn
Joined: Oct 08, 2003
Posts: 6
|
|
Yes It occured when I was trying to send a SOAPMessage to my JAXMServlet
|
 |
JeanLouis Marechaux
Ranch Hand
Joined: Nov 12, 2001
Posts: 906
|
|
What is the server your servlet is deployed onto ?? (Vendor + version) Are you sure JAXM is fully supported by this vendor ?
|
 |
Mikael Edvardsson
Greenhorn
Joined: Oct 08, 2003
Posts: 6
|
|
I am using Tomcat 5.0, and im quite sure it supports JAXM. I put the jaxm jars in common/lib folder, so it should find those.
|
 |
Lasse Koskela
author
Sheriff
Joined: Jan 23, 2002
Posts: 11962
|
|
Originally posted by Mikael Edvardsson: I am using Tomcat 5.0, and im quite sure it supports JAXM. I put the jaxm jars in common/lib folder, so it should find those.
Actually, Tomcat doesn't support JAXM -- that's why you need to add those .jar files yourself... Nitpicking aside, I think you should verify that Tomcat really sees the JAXM stuff in its classpath by doing Class.forName("javax.xml.messaging.OnewayListener") and seeing with your own eyes whether the class is found. If it isn't, I'd be looking at the startup scripts for Tomcat.
|
Author of Test Driven (2007) and Effective Unit Testing (2013) [Blog] [HowToAskQuestionsOnJavaRanch]
|
 |
Mikael Edvardsson
Greenhorn
Joined: Oct 08, 2003
Posts: 6
|
|
I tried Class.forName("javax.xml.messaging.OnewayListener"), it didnt cause any exception, so the problem remains. The exception report also shows this: java.security.PrivilegedActionException: javax.xml.soap.SOAPException: Unable to internalize message Caused by: javax.xml.soap.SOAPException: Invalid content-type"text/html"
|
 |
Mikael Edvardsson
Greenhorn
Joined: Oct 08, 2003
Posts: 6
|
|
Added the "saaj-impl.jar", and now it works. Thanks alot for your help
|
 |
Lasse Koskela
author
Sheriff
Joined: Jan 23, 2002
Posts: 11962
|
|
Thanks for sharing the solution
|
 |
 |
|
|
subject: unable to internalize message
|
|
|