tomcat-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Colin Evans" <>
Subject Re: Putting servlets in home directories
Date Thu, 30 Mar 2000 19:42:31 GMT

One problem that could show up is if you have all of your students make
their own versions of classes that have the same name and package structure.
i.e, if your assignment is to have students write a class called
"TestServlet" in package, the classes would all collide
when the classloader tried to load the servlets because all of the servlets
would be running in the same JVM.  You'll need to have a different class
and/or package for each student.

As for allowing users to deploy servlets in their own spaces, you could
create a server.xml config for tomcat that gave each student their own web
application and servlet context.  The directory location for the web
application can be anywhere you want, so you could write a program to
autogenerate a server.xml file from a list of student names.  Each student
then writes their own web.xml file and deploys their application
individually according to the WAR directory heirarchy.  Your last problem
will be finding a way for Tomcat to automagically reload servlets (I don't
know if it does this reliably yet..) which might mean cycling tomcat every
hour via cron.

Hope this helps!


Colin Evans
Bitmo Corp.
Breaking the Browser Barrier!

261 Jersey St.
San Francisco, CA 94114
415-641-7568 tel

----- Original Message -----
From: <>
To: <>
Sent: Wednesday, March 29, 2000 10:17 PM
Subject: Putting servlets in home directories

> Hello all.
> I'm using Tomcat 3.1 under RH Linux 6.1 and apache 1.3.12.
> I'm am giving a course on Java and would like to introduce servlets.
> I would like the users to be able to save their servlets in their
> home directories somewhere (such as ~/public_html) instead of making
> a publically writable directory in the main webtree.
> Is this possible? Or is the only way to define a <Directory> for
> each individual user. This would be messy as there are over 100
> students.
> Many thanks,
> David Jordan
> --------------------------------------------------------------------------
> To unsubscribe, email:
> For additional commmands, email:

View raw message