You are viewing a plain text version of this content. The canonical link for it is here.
Posted to users@tomcat.apache.org by Subu <sb...@chutneytech.com> on 2002/10/03 00:22:04 UTC

class loader question

Hi,

I am using Tomcat 4.0 application server. I have a question about the class
loaders.

I have tried to use a custom jsp tag lib with this app server. I have placed
the jar file corresponding to the tag lib in the system class path (in the
setclasspath.bat). I was getting the following error as a result.

java.lang.NoClassDefFoundError: javax/servlet/jsp/tagext/TagSupport
    at java.lang.ClassLoader.defineClass0(Native Method)
                at java.lang.ClassLoader.defineClass(ClassLoader.java:486)
                ..........

In this case I wrote a jsp to print the classpath and the classloader for
the jsp's. It shows that the app server has loaded my custom jar file, and
the classloader for the current jsp is
org.apache.jasper.servlet.JasperLoader@4db06e .

What I dont understand is why this TagSupport error when I can find the
class already loaded.

could some one answer this.

thanks
-Subu


--
To unsubscribe, e-mail:   <ma...@jakarta.apache.org>
For additional commands, e-mail: <ma...@jakarta.apache.org>