Please refer to the directory structure in the original message or At the bottom of this email.
Given that directory structure, I have working configuration with appBase="webapps" in server.xml (seems like a dummy value since we don't have anything in that directory). In ${catalina.home}/conf/catalina/localhost/ROOT.xml I have defined the <Context> element with docBase="${catalina.home}/htdocs". Here are the questions: Previously, I had appBase="htdocs" and ROOT.xml was called htdocs.xml. 1) When absolute path such as ${catalina.home}/htdocs is specified why does it look for ${catalina.home}/htdocs/htdocs/ 2) Why does it expect a ROOT directory under htdocs? 3) What is special about ROOT? Should not the configuration be totally under application Developer's control? 4) What is path? It is not very clear from the documenatation. It took me a while to get to the current working Configuration. I will appreciate it if one of you can clarify these concepts. Thanks in advance, Lakshmi -----Original Message----- From: Lakshmi Venkataraman Sent: Wednesday, April 18, 2007 11:21 PM To: 'Tomcat Users List' Subject: RE: Tomcat deployment question I have finally a working configuration. Please refer to the bottom of this email for the directory structure. In server.xml I changed appBase="webapps" (original value) htdocs.xml is renamed as ROOT.xml as Rashmi suggested with docBase="${catalina.home}/htdocs Then I am able to type http://localhost:8080 which in turn looks up index.html from the htdocs directory Even so, I have some more questions and my understanding is not that clear yet. I will post the questions in my next email. Thanks Lakshmi -----Original Message----- From: Lakshmi Venkataraman [mailto:[EMAIL PROTECTED] Sent: Wednesday, April 18, 2007 9:33 PM To: Tomcat Users List Subject: RE: Tomcat deployment question Hi Rashmi, Thanks! I renamed htdocs.xml to ROOT.xml. http://localhost:8080 did not work. However, http://localhost:8080/htdocs/index.html worked which is some progress. I think my organization would prefer only http://localhost:8080 I am confused between the concepts appBase, docBase and path. So given the directory structure below, what should be the values of appBase, docBase and path so http://localhost:8080 looks for index.html under htdocs. Thanks again Lakshmi -----Original Message----- From: Rashmi Rubdi [mailto:[EMAIL PROTECTED] Sent: Wednesday, April 18, 2007 9:04 PM To: Tomcat Users List Subject: Re: Tomcat deployment question Hi Lakshmi, Rename the context file from htdocs.xml to ROOT.xml then you should be able to access the app at http://localhost:8080/ -Rashmi -------------------Original posting by Lakshmi ------------------------------------------- I have upgraded from Tomcat 3.3 to Tomcat 5.5.23. It is running on WinXP and I am using Java 1.5. Here's my dierctory set up: ${Catalina.Home} -- conf -- Catalina --localhost htdocs.xml -- htdocs index.html --bin --html --jsp --css --jar --WEB-INF web.xml --classes --lib --webapps In server.xml, I modified the <Host> element to have {appBase="htdocs" autoDeploy="false"} I am using htdocs.xml in ${Catalina.home}/Catalina/localhost as the context descriptor and is defined as follows: <Context docBase="${catalina.home}" override="true" privileged="true"> <Loader className="com.example.appClassLoader" reloadable="true"/> <!-- Default set of monitored resources --> <WatchedResource>WEB-INF/web.xml</WatchedResource> <!-- Uncomment this to disable session persistence across Tomcat restarts --> <Manager pathname="" /> </Context> Tomcat is able to load appClassLoader. However, when I type, http://localhost:8080, it is not able to load the index.html found under the htdocs directory. If I create ROOT directory and move the index.html over there it is able to load it. I guess, my main problem is how can I maintain the same directory structure as above without having to create ROOT and move everything below it? The above directory structure worked in Tomcat 3.3. What am I missing? Thanks Lakshmi --------------------------------------------------------------------- To start a new topic, e-mail: users@tomcat.apache.org To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] --------------------------------------------------------------------- To start a new topic, e-mail: users@tomcat.apache.org To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] --------------------------------------------------------------------- To start a new topic, e-mail: users@tomcat.apache.org To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]