tomcat-users mailing list archives

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

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(
	at 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:
For additional commands, e-mail:

View raw message