Win a copy of Python Continuous Integration and Delivery this week in the Python forum!
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
programming forums Java Mobile Certification Databases Caching Books Engineering Micro Controllers OS Languages Paradigms IDEs Build Tools Frameworks Application Servers Open Source This Site Careers Other all forums
this forum made possible by our volunteer staff, including ...
Marshals:
  • Campbell Ritchie
  • Liutauras Vilda
  • Bear Bibeault
  • Paul Clapham
  • Jeanne Boyarsky
Sheriffs:
  • Devaka Cooray
  • Junilu Lacar
  • Tim Cooke
Saloon Keepers:
  • Tim Moores
  • Ron McLeod
  • Tim Holloway
  • Claude Moore
  • Stephan van Hulst
Bartenders:
  • Winston Gutkowski
  • Carey Brown
  • Frits Walraven

unable to internalize message  RSS feed

 
Greenhorn
Posts: 6
  • 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
 
Ranch Hand
Posts: 906
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
is it using JAXM ??
 
Mikael Edvardsson
Greenhorn
Posts: 6
  • 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
  • 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
  • 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.
 
author
Posts: 11962
5
  • 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
  • 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
  • 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
Posts: 11962
5
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Thanks for sharing the solution
 
Hang a left on main. Then read this tiny ad:
ScroogeXHTML 8.2 - easy to use RTF to HTML converter library
https://coderanch.com/t/707504/ScroogeXHTML-RTF-HTML-XHTML-converter
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
Boost this thread!