tomcat-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Corobitsyn Roman <>
Subject Context tuning problem
Date Fri, 07 Apr 2006 07:53:59 GMT
Hello all

I use Tomcat 5.5.15 on Win2000 Prof, jdk 1.5.0
I have some problems with context tuning.
I RTFM, googled but I can't find solution
Please help

Problem description

I have my web-application in c:/apps/www. This application is default
for host localhost1
My server.xml is here

   <Host name="localhost1" appBase="c:/apps"
         unpackWARs="false" autoDeploy="false"
         xmlValidation="true" xmlNamespaceAware="true"

My $CATALINA_HOME/conf/[enginename]/[hostname]/context.xml.default

<Context path="" debug="0" docBase="www" reloadable="false" crossContext="false"/>

Tomcat started without errors. When I type in browser
http://localhost1:8080, I get blank page. It works as http://localhost1:8080/www/

If I rename c:/apps/www to c:/apps/ROOT and
become as
<Context debug="0" reloadable="false" crossContext="false"/>
All works fine.
But I don't want to have directory named as ROOT. Client putting his
files into this dir and he do not must to see dir with same name. I
don't want also to put this file into META-INF/context.xml of WAR file

I tried many combination with changing names of context file
(ROOT.xml, www.xml) and dir, but not found solution

But this works (by url http://localhost1:8080) if I put context description into server.xml,
<Host name="localhost1" appBase="C:/apps"
      unpackWARs="false" autoDeploy="false"
      xmlValidation="true" xmlNamespaceAware="true" workDir="C:/apps/work">

      <Context path="" docBase="www" debug="0" reloadable="false" crossContext="false"/>

 but it is not recommended.

Can anybody show me direction where I must find solution

Best regards,

To unsubscribe, e-mail:
For additional commands, e-mail:

View raw message