-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1
On 19-Sep-2001 Rich Catlett wrote:
> Sounds like a classpath problem, I think where do you have xerces.jar
> located. should be in the lib dir of tomcat.
Likely the issue. But the question is where do I put it? In tomcat 4.0, the
classloader structure is further refined than 3.2.x. According to their faq
page:
http://jakarta.apache.org/tomcat/tomcat-4.0-doc/class-loader-howto.html#Tomcat%2
04%20and%20XML%20Parsers
they claim that the parser can lib in the WEB-INF/lib directory. (In tomcat
3.2.3, I modified the tomcat.sh program to place it in the default classpath
the shellscript builds) However, with tomcat 4.0, catalina.sh has a
bootclasspath, server/lib, common/lib, jasper and lib directory. It seems that
whenever I place the jar file within the tomcat hierarchy (or classpath) I get
the same error:
java.lang.ExceptionInInitializerError: java.lang.ClassCastException:
org.apache.crimson.jaxp.DocumentBuilderFactoryImpl
at
javax.xml.parsers.DocumentBuilderFactory.newInstance(DocumentBuilderFactory.java
:152)
at
org.apache.soap.util.xml.XMLParserUtils.refreshDocumentBuilderFactory(XMLParserU
tils.java:112)
at
org.apache.soap.util.xml.XMLParserUtils.<clinit>(XMLParserUtils.java:79)
at org.apache.soap.server.ServiceManager.<init>(ServiceManager.java:83)
at
org.apache.soap.server.http.ServerHTTPUtils.getServiceManagerFromContext(ServerH
TTPUtils.java:103)
....
Which of course, means that its pulling the crimson stuff out instead of xerces.
I'm sure there is one combination I need to try, but I'm just not sure what
that is.
Virtually,
Ned Wolpert <[EMAIL PROTECTED]>
D08C2F45: 28E7 56CB 58AC C622 5A51 3C42 8B2B 2739 D08C 2F45
-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.0.6 (GNU/Linux)
Comment: For info see http://www.gnupg.org
iD8DBQE7qQqPiysnOdCML0URAsFmAJ9uCcd5Z0qwIO2wUmnMs99BiPOcNgCfXI4k
BoIfCobDC4PFuhybFHLZk4g=
=FG7p
-----END PGP SIGNATURE-----