tomcat-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Cox, Charlie" <c...@cincom.com>
Subject RE: WebappClassLoader
Date Mon, 21 Apr 2003 12:50:46 GMT
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:
this.getClass().getClassLoader()

another URLClassloader would not know about the WebappClassLoader's classes
unless you set its parent to be the WebappClassLoader.

Charlie

> -----Original Message-----
> From: Sanda John P [mailto:sandaj@cs.clemson.edu]
> 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.
> (864)656-2844
> 
> 
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: tomcat-user-unsubscribe@jakarta.apache.org
> For additional commands, e-mail: tomcat-user-help@jakarta.apache.org
> 

---------------------------------------------------------------------
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