You are viewing a plain text version of this content. The canonical link for it is here.
Posted to users@tomcat.apache.org by Corobitsyn Roman <kr...@dtnm.ru> on 2006/04/07 09:53:59 UTC

Context tuning problem

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"
         workDir="C:/apps/work">
   </Host>
...

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
$CATALINA_HOME/conf/[enginename]/[hostname]/context.xml.default
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
Thanx

-- 
Best regards,
 Corobitsyn



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