Hello,
I came up with a hack that works around my problem. When you start tomcat catalina.sh starts with the -Djava.endorsed.dirs=$CATALINA_HOME/common/endorsed, so if you remove this option (about 7 places in the file) then tomcat will not use the xerces parser, but instead use the native java parsers. This will probably break any other webapps you have deployed to tomcat, but axis seems unaffected and my web service works.

--Brice



Thorsten Jungblut wrote:

Hi,

Hello,
        I'm having some problems getting a service to run on Axis 1.2.1 (Tomcat
5.0.28, Java 1.5.03, Linux).  I get the following error message:

java.lang.reflect.InvocationTargetException
       at
org.apache.axis.message.SOAPFaultBuilder.createFault(SOAPFaultBuilder.java:221)
       at
org.apache.axis.message.SOAPFaultBuilder.endElement(SOAPFaultBuilder.java:128)
       at
org.apache.axis.encoding.DeserializationContext.endElement(DeserializationContext.java:1087)

I'm just guessing but afaik, tomcat 5.0.x comes with a xerces implementation. That implementation is used instead of the one built in into the jre 1.5.0. While your service is probably built against the jre-xerces, it may be executed using tomcats xerces.

You could try three different things:
- remove the xerces implementation from your tomcat (may cause other problems), should be found at $tomcat_home/common/endorsed
- upgrade to tomcat 5.5
- avoid using the new features

Best regards
Thorsten


Reply via email to