tomcat-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Aron Kramlik <aron.kram...@tenzing.com>
Subject RE: Class loading & classloader visibility test results
Date Wed, 06 Dec 2000 03:36:19 GMT
Rob,

This is great information.  I wonder if you could explain
why it is that I need to put xml4j.jar file under the $CLASSPATH
(i.e. $TOMCAT_HOME/lib) that is loaded by an init() method of
a servlet?

Once I do this the class, com.ibm.xml.parsers.DOMParser, is found.
Stack trace below.

Anyh help would be much appreciated.

Thanks again for the great info,
Aron.

java.lang.ClassNotFoundException: com.ibm.xml.parsers.DOMParser
    at java.lang.Throwable.<init>(Throwable.java:96)
    at java.lang.Exception.<init>(Exception.java:44)
    at
java.lang.ClassNotFoundException.<init>(ClassNotFoundException.java:71)
    at java.net.URLClassLoader.findClass(URLClassLoader.java:205)
    at java.lang.ClassLoader.loadClass(ClassLoader.java(Compiled Code))
    at sun.misc.Launcher$AppClassLoader.loadClass(Launcher.java:380)
    at java.lang.ClassLoader.loadClass(ClassLoader.java:257)
    at java.lang.Class.forName1(Native Method)
    at java.lang.Class.forName(Class.java:134)
    at org.xml.sax.helpers.ParserFactory.makeParser(ParserFactory.java:124)
    at com.tenzing.servlet.InitServlet.setXMLParser(InitServlet.java:331)
    at
com.tenzing.servlet.InitServlet.initializeConfiguration(InitServlet.java:298
)
    at com.tenzing.servlet.InitServlet.init(InitServlet.java:181)
    at org.apache.tomcat.core.ServletWrapper.doInit(ServletWrapper.java:317)




-----Original Message-----
From: Rob Shaw [mailto:shaw@servidium.com]
Sent: Tuesday, December 05, 2000 2:49 PM
To: tomcat-dev@jakarta.apache.org
Subject: Class loading & classloader visibility test results


For those that may be interested...

I was unclear as to how Tomcat was resolving class
loading and the visibility of classes to a context's
classloader so I created a simlpe test suite.
The test results are attached.

Rob Shaw
Servidium Inc.


Mime
View raw message