Discussions

XML & Web services: Random faults using Axis1.1 and tomcat 5.x combination

  1. I have a web service client implementation using Axis 1.1.
    I recently moved it to tomcat 5.0 and now sometimes i randomly get org.xml.sax.SAXException : Invalid element in com.something.X
    at org.apachet.axis.encoding.ser.BeanDeserializer.onStartChild(BeanDeserializer.java:260)

    The problem is that everything was working fine before i moved it to Tomcat 5.0. The Server is sending the complete XML messages but the client randomly fails.

    I am guessing that its a problem due to client jaxrpc or some other jar which is new in tomcat 5.0 and sometimes the classpath randomly picks the wrong jar.

    Any ideas or suggestions.

    Thanks,
    Puneet
  2. Hi Puneet,

    Double check with xerces.jar in %TOMCAT_HOME%/common/lib. And also, make sure that whatever jars you had in tomcat 4 has in tomcat 5.0. Because I ran into the same problem you have. The thing is pre-installed jars in each tomcat version has different.

    I hope that works for you.

    sithu
  3. Sithu :
    The problem is i can not take out the common/endorsed libs.
    I have tried all permutations but the problem still exists.

    I guess its some axis1.1 problem with tomcat xml jars.
    Let me know if you have any ideas.

    Thanks,
    Puneet