tomcat-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Larry Isaacs <Larry.Isa...@sas.com>
Subject RE: ClassNotFoundException
Date Wed, 27 Feb 2002 16:26:19 GMT
I haven't actually tried it, but I believe it would work
in Tomcat 3.3 as well.  Thanks.

Cheers,
Larry

> -----Original Message-----
> From: Sriram Narayanan [mailto:sriramx_2000@yahoo.com]
> Sent: Wednesday, February 27, 2002 10:08 AM
> To: Tomcat Users List
> Subject: RE: ClassNotFoundException
> 
> 
> Just a question,
> 
> Would 
> Thread.currentThread().getContextClassLoader().loadClass("mycl
> assname") help ?
> 
> I don't have TC 3.3, but this works for me in TC 4.0.1
> 
> Sriram
> 
> 
> 2/27/02 6:45:11 PM, Larry Isaacs <Larry.Isaacs@sas.com> wrote:
> 
> >To deal with a situation like this, I have seen #1 below
> >implemented by providing an object that is loaded in the
> >webapp classloader to the base class.  A good candidate
> >would be "this" from MyServletClass.  MyBaseServletClass
> >can obtain the classloader of this object to gain access
> >to the webapp classloader.
> >
> >Cheers,
> >Larry
> >
> 
> 
> 
> 
> _________________________________________________________
> 
> Do You Yahoo!?
> 
> Get your free @yahoo.com address at http://mail.yahoo.com
> 
> 
> 
> 
> --
> To unsubscribe:   <mailto:tomcat-user-unsubscribe@jakarta.apache.org>
> For additional commands: <mailto:tomcat-user-help@jakarta.apache.org>
> Troubles with the list: <mailto:tomcat-user-owner@jakarta.apache.org>
> 

--
To unsubscribe:   <mailto:tomcat-user-unsubscribe@jakarta.apache.org>
For additional commands: <mailto:tomcat-user-help@jakarta.apache.org>
Troubles with the list: <mailto:tomcat-user-owner@jakarta.apache.org>


Mime
View raw message