• 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 Pie Elite all forums
this forum made possible by our volunteer staff, including ...
Marshals:
  • Campbell Ritchie
  • Jeanne Boyarsky
  • Ron McLeod
  • Paul Clapham
  • Liutauras Vilda
Sheriffs:
  • paul wheaton
  • Rob Spoor
  • Devaka Cooray
Saloon Keepers:
  • Stephan van Hulst
  • Tim Holloway
  • Carey Brown
  • Frits Walraven
  • Tim Moores
Bartenders:
  • Mikalai Zaikin

unable to internalize message

 
Greenhorn
Posts: 6
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • 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
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
is it using JAXM ??
 
Mikael Edvardsson
Greenhorn
Posts: 6
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • 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
    Number of slices to send:
    Optional 'thank-you' note:
  • 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
    Number of slices to send:
    Optional 'thank-you' note:
  • 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
    Number of slices to send:
    Optional 'thank-you' note:
  • 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
    Number of slices to send:
    Optional 'thank-you' note:
  • 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
    Number of slices to send:
    Optional 'thank-you' note:
  • 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
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
Thanks for sharing the solution
 
Don't get me started about those stupid light bulbs.
reply
    Bookmark Topic Watch Topic
  • New Topic