tomcat-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Lakshmi Venkataraman" <laks...@foundrynet.com>
Subject RE: Tomcat deployment question
Date Thu, 19 Apr 2007 06:20:35 GMT
 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:lakshmi@foundrynet.com] 
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:rashmi.sub@gmail.com]
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: users-unsubscribe@tomcat.apache.org
For additional commands, e-mail: users-help@tomcat.apache.org


---------------------------------------------------------------------
To start a new topic, e-mail: users@tomcat.apache.org To unsubscribe,
e-mail: users-unsubscribe@tomcat.apache.org
For additional commands, e-mail: users-help@tomcat.apache.org


---------------------------------------------------------------------
To start a new topic, e-mail: users@tomcat.apache.org
To unsubscribe, e-mail: users-unsubscribe@tomcat.apache.org
For additional commands, e-mail: users-help@tomcat.apache.org


Mime
View raw message