tomcat-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Matt Koss <m.k...@open.ac.uk>
Subject Re: dynamic class loading problem in 4.1.24
Date Thu, 15 May 2003 16:04:13 GMT
On Thursday 15 May 2003 3:10 pm, Shapira, Yoav wrote:
> Howdy,
>
> >How do I get an instance of tomcat classloader from my webapp ?
>
> Same way you would normally:
>
> Thread.currentThread().getContextClassLoader();
>
> Yoav Shapira

This works like a charm.
In the JarClassLoader class I set its parent to be 
Thread.currentThread().getContextClassLoader() and now it does not matter 
whether I load plugins from the standalone application or from within the 
webapp.


Thanks for help

Matt

>
>
>
> This e-mail, including any attachments, is a confidential business
> communication, and may contain information that is confidential,
> proprietary and/or privileged.  This e-mail is intended only for the
> individual(s) to whom it is addressed, and may not be saved, copied,
> printed, disclosed or used by anyone else.  If you are not the(an) intended
> recipient, please immediately delete this e-mail from your computer system
> and notify the sender.  Thank you.

-- 
Matt Koss
Knowledge Media Institute
Open University
tel: +44 1908 659399

---------------------------------------------------------------------
To unsubscribe, e-mail: tomcat-user-unsubscribe@jakarta.apache.org
For additional commands, e-mail: tomcat-user-help@jakarta.apache.org


Mime
View raw message