2008/4/9, Caldarale, Charles R <[EMAIL PROTECTED]>:
[...]
>
> I've had no problems with 5.0, 5.5, and 6.0 in using a ROOT.xml file in
> conf/Catalina/[host] containing a <Context> element with an absolute
> docBase attribute pointing to the location of the webapp. You must not
> use a path attribute, and you must delete the ROOT directory under the
> <Host> appBase, if there is one.
>
Well, this doesn't work for me :(
Here is what I try in the server.xml:
<Server port="8005" shutdown="SHUTDOWN">
<Service name="Catalina">
<Connector port="8009" protocol="AJP/1.3" enableLookups="false"
URIEncoding="UTF-8" maxProcessors="0"/>
<Engine name="Catalina" defaultHost="localhost">
<Host name="localhost" appBase="webapps" autoDeploy="false"
deployXML="false" unpackWARs="false"/>
</Engine>
</Service>
</Server>
And in Catalina/localhost/ROOT.xml:
<Context docBase="/var/lib/tomcat5/webapps/one2team">
<Valve className="org.apache.catalina.valves.AccessLogValve"
prefix="tomcat-access" suffix=".log" rotatable="false"
pattern="%a (%B bytes/%D msec) %s %r"/>
<Logger className="org.apache.catalina.logger.FileLogger"
prefix="tomcat-logger" suffix=".log" verbosity="2"
timestamp="false"/>
</Context>
As a Context attribute, I've tried no path as you suggested, path="",
path="/": no luck, the webapp still deploys as /one2team...
Also, if I lie about the appBase in <Host>, the application isn't
found at all (but I guess this was to be expected after all).
I've also tried the "real" appBase, changing the docBase of the
<Context> to one2team: app deploys as /one2team, even though the
context file is named ROOT.xml :(
--
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 start a new topic, e-mail: [email protected]
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]