You are viewing a plain text version of this content. The canonical link for it is here.
Posted to users@tomcat.apache.org by "Pira, Joel G." <jp...@uap.edu.ph> on 2003/04/01 07:44:32 UTC

setting home directory of users in win32

Hi to all!

I have been using tomcat for linux and setting up users home directories to
have a URL of the form http://localhost/~user works fine. 

Here is the problem. I did the same thing with W2K. I changed server.xml by
cut and pasting the tag needed so that the home directories of the user will
have the form http://localhost/~user to work. But when I tested it using a
"HelloWorld" servlet, it gave me a "no servlet" error. The html files worked
fine in the public_html directory. I have a plain web.xml file in the
WEB-INF directory. I copied the contents of the "examples" and placed it in
one of the accounts I am configuring and it worked fine. 


What am I missing?


This is what I did.

1. I created c:\home folder for user directories.
2. I created the following c:\home\me, c:\home\me\public_html,
c:\home\me\WEB-INF\, c:\home\me\WEB-INF\classes, c:\home\me\WEB-INF\lib and
c:\home\me\WEB-INF\web.xml.
3. My web.xml is contains "<web-app></web-app>."
4. I run tomcat and did http://localhost:8080/~me/index.html and it works.
5. I made HelloWorld.java and did
http://localhost:8080/~me/servlet/HelloWorld. Restart tomcat.
6. Tomcat gave me a "no servlet" error.
7. I copied HelloWorld.* to jakarta.../webapps/examples/WEB-INF/classes and
did http://localhost:8080/examples/servlet/HelloWorld and it works.

============================
Joel Gatdula Pira
Faculty
IIT, UA&P
Philippines 





---
Outgoing mail is certified Virus Free.
Checked by AVG anti-virus system (http://www.grisoft.com).
Version: 6.0.465 / Virus Database: 263 - Release Date: 3/25/2003
 

---------------------------------------------------------------------
To unsubscribe, e-mail: tomcat-user-unsubscribe@jakarta.apache.org
For additional commands, e-mail: tomcat-user-help@jakarta.apache.org