I'm assuming your docBase for this app is not inside tomcat's webapps
folder and in that case, you're right to wonder how tomcat finds the
context.xml file.  The <Context ... >...</Context> element can also be
in it's own file named after the path attribute - i.e. alti.xml in
conf/Catalina/localhost.  Replace 'Catalina' with your tomcat's Service
name from server.xml and 'localhost' with your Host name, again from
server.xml.  Tomcat looks there as well for the webapp's <Context
...></Context> element and you can remove the path attribute.

--David

steflik wrote:
> Chuck,
> I'm a little bit hesitant as a number of the students are still struggleing
> to get their JSP project done. Right now the server is running and the
> <Context> statements that define where the apps are are right at the end of
> server.xml. This is an example of a <Context> ststement as they are
> currently in server.xml:
>
> <Context  docBase="/home/alti/public_html/alti" path="/alti" debug="0"
> reloadable="true" crossContext="true"></Context>
>
> If this is moved out of server.xml and into
> /home/alti/public_html/alti/META_INF/  how will Tomcat know where the alti
> app is; I always thought that Tomcat followed the paths it found in
> server.xml to figure out where all of the apps were.?  If this is where it
> goes what name does the file get context.xml or alti.xml?
>
> Dick Steflik
> Binghamton University
>
>
> Pid Ster wrote:
>   
>> On 15/12/2009 04:17, steflik wrote:
>>     
>>> Chuck,
>>>
>>> OK, I've read the document several times and still can't figure out what
>>> it
>>> is you are trying to tell me. I'm not using WARs so /META-INF/? doesn't
>>> come
>>> into play. If the<Context>  statements don't go in to server.xml where
>>> should I put them, context.xml doesn't seem to be the appropriate place?
>>>       
>> A web app in the form of a directory is just an exploded/uncompressed 
>> WAR.  Putting a META-INF directory inside the app dir still applies. 
>> Try it and see.
>>
>> (The manager & host-manager apps preinstalled in Tomcat also use a 
>> META-INF directory.)
>>
>>
>> p
>>
>>
>>     
>>> Dick Steflik
>>> Binghamton University
>>>
>>>
>>>
>>> Caldarale, Charles R wrote:
>>>       
>>>>> From: steflik [mailto:stef...@binghamton.edu]
>>>>> Subject: Re: Tomcat Config Question
>>>>>
>>>>> Do I just move the<context>  statements out of server.xml and into
>>>>> context.xml?
>>>>>           
>>>> It's<Context>  not<context>  - case matters.
>>>>
>>>>         
>>>>> or is there something else I have to do.
>>>>>           
>>>> Reading the doc would be a good first step:
>>>> http://tomcat.apache.org/tomcat-6.0-doc/config/context.html
>>>>
>>>>   - Chuck
>>>>
>>>>
>>>> THIS COMMUNICATION MAY CONTAIN CONFIDENTIAL AND/OR OTHERWISE PROPRIETARY
>>>> MATERIAL and is thus for use only by the intended recipient. If you
>>>> received this in error, please contact the sender and delete the e-mail
>>>> and its attachments from all computers.
>>>>
>>>>
>>>>
>>>>
>>>>         

---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscr...@tomcat.apache.org
For additional commands, e-mail: users-h...@tomcat.apache.org

Reply via email to