Win a copy of Clojure in Action this week in the Clojure forum!
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

unable to internalize message

 
Mikael Edvardsson
Greenhorn
Posts: 6
  • 0
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Hello!
Does anyone know what causes this exception?
javax.xml.soap.SOAPException: unable to internalize message

Thanks
 
JeanLouis Marechaux
Ranch Hand
Posts: 906
  • 0
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
is it using JAXM ??
 
Mikael Edvardsson
Greenhorn
Posts: 6
  • 0
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Yes
It occured when I was trying to send a SOAPMessage to my JAXMServlet
 
JeanLouis Marechaux
Ranch Hand
Posts: 906
  • 0
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
What is the server your servlet is deployed onto ??
(Vendor + version)
Are you sure JAXM is fully supported by this vendor ?
 
Mikael Edvardsson
Greenhorn
Posts: 6
  • 0
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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
Posts: 11962
5
  • 0
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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.
 
Mikael Edvardsson
Greenhorn
Posts: 6
  • 0
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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
Posts: 6
  • 0
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Added the "saaj-impl.jar", and now it works.
Thanks alot for your help
 
Lasse Koskela
author
Sheriff
Posts: 11962
5
  • 0
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Thanks for sharing the solution
 
I agree. Here's the link: http://aspose.com/file-tools
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic