tomcat-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Tim Funk <>
Subject Re: WebappClassLoader
Date Mon, 21 Apr 2003 15:17:32 GMT
I think you might want:


Sanda John P wrote:
> The application is for my Master's research and is being used only by a
> limited number of users - one of my advisor's classses. Basically, the
> application is a game-playing system in which users write programs to
> compete against each other.
> this.getClass().getClassLoader() returns a JasperLoader, which is not an
> instance of a WebappClassLoader.
> John Sanda, Clemson University Computer Science Dept.
> (864)656-2844
> On Mon, 21 Apr 2003, Cox, Charlie wrote:
>>So a user uploads a class to be run? Sounds rather risky to me. I hope you
>>have a good security policy.
>>but here you go:
>>another URLClassloader would not know about the WebappClassLoader's classes
>>unless you set its parent to be the WebappClassLoader.
>>>-----Original Message-----
>>>From: Sanda John P []
>>>Sent: Sunday, April 20, 2003 12:44 PM
>>>To: Tomcat Users List
>>>Subject: WebappClassLoader
>>>How can my webapp obtain a reference to its
>>>WebappClassLoader? I have a
>>>JSP which needs to load classes from users. The classes that
>>>need to be
>>>loaded derive from a class within my application. So when I
>>>tried to use
>>>antother URLClassLoader, it threw a NoClassDefFoundError
>>>since it wasn't
>>>aware of my classes in
>>>TOMCAT_HOME/webapps/myapp/WEB-INF/classes/. I was
>>>hoping that using the WebappClassLoader might be an easy
>>>solution to my
>>>problem. Thanks.
>>>John Sanda, Clemson University Computer Science Dept.

To unsubscribe, e-mail:
For additional commands, e-mail:

View raw message