You are viewing a plain text version of this content. The canonical link for it is here.
Posted to users@tomcat.apache.org by Adam Lipscombe <ad...@cobar.fsbusiness.co.uk> on 2003/05/13 23:01:06 UTC

Newbie - unable to set default contexct

Folks,



I have the installed TC 4.1.24 on RedHat 7.2.
All went well - the Tomcat default page comes up fine.

I need to replace the default page with my own stuff however, so I
installed my app ("escapism") in the webapps dir  and edited server.xml
thus:

<!-- Tomcat Root Context -->
<!--
   <Context path="" docBase="escapism" debug="0"/>
-->

I restarted TC but the standard TC home page still is displayed when
accessing "http://localhost:8080/"


My understanding is that this should set the default Tomcat page to
webapps/escapism/index.jsp. 
Is this correct? If not how do I do it?


TIA - Adam


---
Outgoing mail is certified Virus Free.
Checked by AVG anti-virus system (http://www.grisoft.com).
Version: 6.0.480 / Virus Database: 276 - Release Date: 12/05/2003
 


---------------------------------------------------------------------
To unsubscribe, e-mail: tomcat-user-unsubscribe@jakarta.apache.org
For additional commands, e-mail: tomcat-user-help@jakarta.apache.org


Re: Newbie - unable to set default contexct

Posted by Jacob Kjome <ho...@visi.com>.
How do you expect tomcat to read a <Context> entry that is commented 
out?  Also, you may need to remove the ROOT context directory.  That 
directory name is treated specially by Tomcat.  If present, it serves as 
the <Context path="" ...>.  You might just want to put the contents of your 
context in to the ROOT directory.  It will make things easier and avoid 
conflicts.  You don't even need to define a <Context ...> entry if you do this.

Jake

At 10:01 PM 5/13/2003 +0100, you wrote:
>Folks,
>
>
>
>I have the installed TC 4.1.24 on RedHat 7.2.
>All went well - the Tomcat default page comes up fine.
>
>I need to replace the default page with my own stuff however, so I
>installed my app ("escapism") in the webapps dir  and edited server.xml
>thus:
>
><!-- Tomcat Root Context -->
><!--
>    <Context path="" docBase="escapism" debug="0"/>
>-->
>
>I restarted TC but the standard TC home page still is displayed when
>accessing "http://localhost:8080/"
>
>
>My understanding is that this should set the default Tomcat page to
>webapps/escapism/index.jsp.
>Is this correct? If not how do I do it?
>
>
>TIA - Adam
>
>
>---
>Outgoing mail is certified Virus Free.
>Checked by AVG anti-virus system (http://www.grisoft.com).
>Version: 6.0.480 / Virus Database: 276 - Release Date: 12/05/2003
>
>
>
>---------------------------------------------------------------------
>To unsubscribe, e-mail: tomcat-user-unsubscribe@jakarta.apache.org
>For additional commands, e-mail: tomcat-user-help@jakarta.apache.org