OK. The problem was that the server needs to be restarted each
time a servlet is recompiled. Doing this as root is somewhat
not the best thing to do from a security point of view.
Is there any way that I can give all users on the
system permission to create their own servlets
and run them? How can I configure tomcat to
allow for such a configuration?

I am looking for a configuration where a command like
http://localhost:8080/~janesmith/servlet/HelloWorldServlet

will access janesmith's HelloWorldServlet in some standard location
such as ~janesmith/tomcat/HelloWorldServlet.class or something like that.

Thanks!

Neil

On Tue, 14 May 2002, Neil Zanella wrote:

> 
> Hello,
> 
> I have just installed Apache Jakarta Tomcat 4.0.3, Java 2 SDK 1.4.0,
> and Java 2 SDK EE 1.3.1 on a Red Hat 7.3 Linux platform. I appended
> the following lines to my personal ~/.bash_profile file:
> 
> export PATH="$PATH:/usr/local/jdk/bin"
> export JAVA_HOME="/usr/local/j2sdk1.4.0"
> export CLASSPATH=".:/usr/local/j2sdkee1.3.1/lib/j2ee.jar"
> export CATALINA_HOME="/usr/local/jakarta-tomcat-4.0.3"
> export CLASSPATH="$CLASSPATH:/usr/local/saxon/saxon.jar"
> 
> I can view the following file:
> 
> /usr/local/jakarta-tomcat-4.0.3/webapps/ROOT/index.html
> 
> by pointing my browser to http://localhost:8080/
> 
> However when I tried to run a servlet by creating directory:
> 
> /usr/local/jakarta-tomcat-4.0.3/webapps/ROOT/WEB-INF/classes
> 
> and placing class file HelloWorldServlet.class there and
> 
> accessing http://localhost:8080/servlet/HelloWorldServlet
> 
> I get the following error:
> 
> Apache Tomcat/4.0.3 - HTTP Status 404 - /servlets/HelloWorldServlet
> 
> !!!!!!!!!!
> 
> Why? I can view the example servlet files just fine.
> Is there some file such as web.xml or so which I need
> to configure to be able to view HelloWorldServlet in
> this directory (which I believe is the standard place
> where servlets should be put)?
> 
> Thanks a lot,
> 
> Neil
> 
> 
> --
> To unsubscribe, e-mail:   <mailto:[EMAIL PROTECTED]>
> For additional commands, e-mail: <mailto:[EMAIL PROTECTED]>
> 


--
To unsubscribe, e-mail:   <mailto:[EMAIL PROTECTED]>
For additional commands, e-mail: <mailto:[EMAIL PROTECTED]>

Reply via email to