This week's book giveaway is in the Cloud/Virtualization forum.
We're giving away four copies of Learning OpenStack Networking: Build a solid foundation in virtual networking technologies for OpenStack-based clouds and have James Denton on-line!
See this thread for details.
Win a copy of Learning OpenStack Networking: Build a solid foundation in virtual networking technologies for OpenStack-based clouds this week in the Cloud/Virtualization 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:
  • Liutauras Vilda
  • Campbell Ritchie
  • Tim Cooke
  • Bear Bibeault
  • Devaka Cooray
Sheriffs:
  • Jeanne Boyarsky
  • Knute Snortum
  • Junilu Lacar
Saloon Keepers:
  • Tim Moores
  • Ganesh Patekar
  • Stephan van Hulst
  • Pete Letkeman
  • Carey Brown
Bartenders:
  • Tim Holloway
  • Ron McLeod
  • Vijitha Kumara

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
Sheriff
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
Sheriff
Posts: 11962
5
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Thanks for sharing the solution
 
Consider Paul's rocket mass heater.
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
Boost this thread!