Subdirectories under webapps for Tomcat???

This is a discussion on Subdirectories under webapps for Tomcat??? within the Apache Web Server forums, part of the Web Server and Related Forums category; Hi, I can seem to create subdirectories under webapps that Tomcat (4.1.29) will recognize. Here is my problem......... ...


Go Back   Usenet Forums > Web Server and Related Forums > Apache Web Server

FAQ Members List Calendar Search Today's Posts Mark Forums Read
  #1 (permalink)  
Old 11-02-2003
stephanj
 
Posts: n/a
Default Subdirectories under webapps for Tomcat???

Hi,



I can seem to create subdirectories under webapps that Tomcat (4.1.29) will
recognize. Here is my problem.........

I have installed Tomcat 4.1.29 successfully and JSP and Servlets work fine
BUT I wish to have my users in a directory under webapps called 2003. My
directory structure looks like the one below



/examples

/ROOT

/stephanj ß created by me

/2003/johnl ß created by me



(so a user johnl is under a directory 2003)



The critical parts of the server.xml file looks like



<Context path="/stephanj" docBase="stephanj" debug="0" reloadable="true"
crossContext="true" />

<Context path="/johnl" docBase="2003/johnl" debug="0" reloadable="true"
crossContext="true" />





The URL http://localhost:8080/stephanj works fine BUT
http://localhost:8080/johnl keeps giving me a HTTP Status 404 - /johnl
error. Is it not possible to organize directories under webapps?



Any help appreciated






  #2 (permalink)  
Old 11-03-2003
Davide Bianchi
 
Posts: n/a
Default Re: Subdirectories under webapps for Tomcat???

stephanj <stephanj@melbpc.org.au> wrote:
> <Context path="/stephanj" docBase="stephanj" debug="0" reloadable="true"
> crossContext="true" />
> <Context path="/johnl" docBase="2003/johnl" debug="0" reloadable="true"
> crossContext="true" />
> The URL http://localhost:8080/stephanj works fine BUT
> http://localhost:8080/johnl keeps giving me a HTTP Status 404 - /johnl
> error. Is it not possible to organize directories under webapps?


AFAIK it is possible, it could be a problem with directory permissions
or something else. Check tomcat's log files if there is some error
reported.

Davide
 
Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are Off
[IMG] code is Off
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On



All times are GMT +1. The time now is 06:09 PM.


Powered by vBulletin® Version 3.7.3
Copyright ©2000 - 2008, Jelsoft Enterprises Ltd.
Content Relevant URLs by vBSEO 3.0.0