tomcat-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Holger Wiechert <>
Subject Tomcat's classes dir is not in the internal classpath
Date Tue, 01 Aug 2000 17:09:18 GMT

I've got a problem with a simple thing on tomcat.

My problem is, that I don't know how to place the class file(s) so that they
don't get 
accessed via a client (browser). So, I don't want to put them in the root of
my application
(here "sillyapplet", see below).
According to the doc on deployment
the folders "WEB-INF/classes" and "WEB-INF/lib" are automatically added to
the classpath 
of my application.

The directory and file structure of my simple "web application" on tomcat is
as follows:

	sillyapplet (index.html)
			   classes (MyApplet.class)

The HTML-File (index.html) is quite simple:

<title>Silly applet </title>
<h1><font face="Arial">Here's just a silly applet...</font></h1>
<p><applet code="MyApplet.class" width="200" height="100"></applet></p>

The applet (MyApplet.class) is only found when placed in the app root (in
but not when placed in the "WEB-INF/classes" directory.

But doing so, anybody can access it via

Does anybody know, how to configure tomcat in order to place it in the
classes dir?

I'm using NT4, SP5, JDK1.3, MSIE5.

Thanks in advance, 


View raw message