Chuck, you rock!!!

I changed the appBase to "/var/www" for Host, added "testapp" in the
Context docBase and restarted the tomcat and it worked!!!

I will work on migrating the Context elements to the META-INF folder
as suggested by you.

Again, thank you very much for your help on this and you have have a
wonderful day.

Regards
Sriganesh


On Thu, Apr 23, 2009 at 1:06 PM, Caldarale, Charles R
<chuck.caldar...@unisys.com> wrote:
>> From: Sriganesh Ananth [mailto:sriganesh.anant...@gmail.com]
>> Subject: Re: Tomcat migration 4.1.3 to 5.5.23: Tomcat5.5 searching
>> servlet file in file system and reporting 404 error rather mapping in
>> web.xml
>
>>       <Host name="192.168.1.23" debug="1" appBase="/var/www/testapp"
>> unpackWARs="true">
>
> The above is wrong; the appBase should be "/var/www".
>
>>         <Logger className="org.apache.catalina.logger.FileLogger"
>>                  directory="logs"  prefix="oss.com_log." suffix=".txt"
>>                 timestamp="true"/>
>
> <Logger> elements are not used in 5.5; remove both of them.
>
>>         <Context path="" docBase="" debug="0"
>>                  reloadable="false" crossContext="true">
>
> The above is wrong; docBase should be "testapp"; you must never have an empty 
> docBase.  A bug in prior levels of Tomcat occasionally caused something 
> useful to happen when you did that, but it was an accident.
>
> Note that putting <Context> elements in server.xml is strongly discouraged; 
> the proper location is in a webapp's META-INF/context.xml file, or in 
> conf/Catalina/[host]/[appName].xml.  Also, if you're defining the default 
> webapp, it should be named ROOT.  Read the Tomcat docs:
> http://tomcat.apache.org/tomcat-5.5-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
>
>

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

Reply via email to