tomcat-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Clemens Eisserer <linuxhi...@gmail.com>
Subject Class.forName doesn't find classes located in WEB-INF/lib
Date Mon, 06 Jun 2011 21:47:25 GMT
Hi,

I have a servlet which dynamically loads classes from jar-files
located in WEB-INF/lib/,
however tomcat somehow seems to ignore those jar-files.

in WEB-INF/lib/Notepad.jar there is a class Notepad.class (without any package),
however loading that class yields:

Loading Application Class: Notepad
java.lang.ClassNotFoundException: Notepad
	at java.lang.Class.forName0(Native Method)
	at java.lang.Class.forName(Class.java:186)
	at net.java.openjdk.cacio.servlet.AppStarter.doGet(Unknown Source)


Any idea what could be the problem here?
Does tomcat use some kind of security manager which is blocking class-loading?

Thank you in advance, Clemens

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


Mime
View raw message