Announcement Announcement Module
Collapse
No announcement yet.
Deploying Web Service to Tomcat Using SAAJ and Saxon Page Title Module
Move Remove Collapse
X
Conversation Detail Module
Collapse
  • Filter
  • Time
  • Show
Clear All
new posts

  • Deploying Web Service to Tomcat Using SAAJ and Saxon

    I have developed a webservice using the AbstractJDOMEndpoint. It works fine in my embedded tomcat server in eclipse. When I deployed the application to a tomcat server 6.0 on debian, i get a ClassLoader exception. I believe the problem is the way classloading works with tomcat. The SAAJ apis which are part of JDK1.6 are referencing the Saxon apis which are located in the WEB-INF/lib folder. I could move the saxon jars to jre/lib/ext directory but I am wondering if that would cause other problems. Is there a way to tell SAAJ to use Xerces/Xalan parsers which are also part of the JRE.

    Any one else run into this problem. Any ideas appreciated.

    Thanks
    Irfan

  • #2
    saaj 1.3 and jdk1.6

    Using jdk1.6 I got error in running saaj 1.3 on Tomcat 6.

    First of all, MessageFactory.newInstance() got IllegalArgumentException: com.sun.xml.internal.messaging.saaj.soap.LocalStri ngs != com.sun.xml.messaging.saaj.soap.LocalStrings.

    rt.jar in jdk1.6 uses com.sun.xml.internal.messaging.saaj which conflicts with saaj's soap implementation.

    saaj 1.3 does not support createMessage() method which is defined in the javax.xml.soap.MessageFactory too.

    Does anyone know how to make jdk1.6 run with saaj 1.3?

    Comment

    Working...
    X