Hello everyone,

We have a problem here. Tomcat 5.0.x (x being 27 or 30), packages from
jpackage, BEA 1.4.2 JVM used.

Prior to today, the relevant parts (I think so, at least, not being at
all an expert with Tomcat) of the /etc/tomcat5/server.xml were as
such:

<Host name="localhost" debug="0" appBase="webapps" unpackWARs="true"
autoDeploy="false" xmlValidation="false" xmlNamespaceAware="false">
[...]
  <Context docBase="one2team" path="" id="o2t">
    <Valve className="org.apache.catalina.valves.AccessLogValve"
prefix="access-kitu-"
     suffix=".log" pattern="common"/>
    <Logger className="org.apache.catalina.logger.FileLogger"
prefix="kitu-" suffix=".log"
     verbosity="2" timestamp="true"/>
  </Context>
</Host>

The problem with this setup is that the application was loaded
*twice*. Once at the / of the webserver (which is good, that's what we
want - the webserver is Apache BTW but I think that's irrelevant), but
then another one under /one2team, which is not desired.

So, after much tinkering around with the configuration files, we came
up with this solution:

<Host name="localhost" debug="0" appBase="external-webapps" autoDeploy="false"
 deployXML="false" deployOnStartup="true" unpackWARs="true"
xmlValidation="false"
 xmlNamespaceAware="false">
[...]
  <Context docBase="/var/lib/tomcat5/webapps/one2team" path="" id="o2t">
    <Valve className="org.apache.catalina.valves.AccessLogValve"
prefix="access-kitu-"
     suffix=".log" pattern="common"/>
    <Logger className="org.apache.catalina.logger.FileLogger"
prefix="kitu-" suffix=".log"
     verbosity="2" timestamp="true"/>
  </Context>
</Host>

This does what we want. As expected we now see a
Catalina/localhost/ROOT.xml created, the application is only loaded
once, so all is fine.

But then this is flawed:
* The external-webapps directory does not exist, and tomcat doesn't
seem to complain. However, future versions may. What's more, if this
directory is created and a webapp exists in there we get to the same
problem...
* I'm no expert at all with Tomcat but this just looks like there's a
far more simple, elegant way...

Google has brought up no results at all, but then I may have entered
the wrong keywords :(
Can anyone enlighten me?

--
Francis Galiegue, [EMAIL PROTECTED], [EMAIL PROTECTED], [EMAIL PROTECTED]
One2team - 12bis rue de la Pierre Levée, 75011 Paris - 0143381980
"When it comes to performance, weight is everything" - Tiff Needell

---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]

Reply via email to