tomcat-users mailing list archives

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

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
(<TOMCAT_HOME>\doc\appdev\deployment.html),
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:


-
 |
 webapps 
        |
	sillyapplet (index.html)
                   |
		   WEB-INF
			  |
			   classes (MyApplet.class)
			   lib 


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

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


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

But doing so, anybody can access it via

http://www.sillydomain.com/sillyapplet/MyApplet.class

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, 

Holger


Mime
View raw message