You are viewing a plain text version of this content. The canonical link for it is here.
Posted to java-user@axis.apache.org by "Pascale, Peter H." <Pe...@pearson.com> on 2003/03/13 20:16:19 UTC
xerces.jar vs. xercesImpl.jar
I am surprised to find that axis seems to require a specific parser -
xerces, and will not accept xercesImpl. I thought both would be JAXP 1.1
compliant parsers, as the set-up instructions describe:
"In the WEB-INF directory, you'll find a "lib" directory.
In this directory, copy the jars associated with the JAXP 1.1 XML compliant
parser of your choice. We recommend xerces jars from the xml-xerces
distribution, though others work."
When I try to compile wsdl or run an axis client with xercesImpl.jar in the
classpath instead of xerces.jar, I get:
[java] java.lang.NoClassDefFoundError: org/w3c/dom/Node
Any ideas why this incompatibility exists?
Peter
****************************************************************************
This email may contain confidential material.
If you were not an intended recipient,
Please notify the sender and delete all copies.
We may monitor email to and from our network.
****************************************************************************
Re: xerces.jar vs. xercesImpl.jar
Posted by Steve Loughran <st...@iseran.com>.
----- Original Message -----
From: "Pascale, Peter H." <Pe...@pearson.com>
To: <ax...@ws.apache.org>
Sent: Thursday, March 13, 2003 11:16
Subject: xerces.jar vs. xercesImpl.jar
> I am surprised to find that axis seems to require a specific parser -
> xerces, and will not accept xercesImpl. I thought both would be JAXP 1.1
> compliant parsers, as the set-up instructions describe:
It does not require a specific parser, merely recommends ones that work.
Lots of them seem to have problems with complex XML Schema. Xerces is the
one that Axis is primarily tested against; crimson, caucho and the oracle
one all have caused problems in the past.
So the issue is not JAXP1.1 compliance, as compliance with the XML and XSD
specificiations.
>
>
> "In the WEB-INF directory, you'll find a "lib" directory.
>
> In this directory, copy the jars associated with the JAXP 1.1 XML
compliant
> parser of your choice. We recommend xerces jars from the xml-xerces
> distribution, though others work."
see: a recommendation, not a requirement.
>
> When I try to compile wsdl or run an axis client with xercesImpl.jar in
the
> classpath instead of xerces.jar, I get:
>
> [java] java.lang.NoClassDefFoundError: org/w3c/dom/Node
>
> Any ideas why this incompatibility exists?
You have multiple implementations of XML parsers in your classpath