Thanks Mark, could my context.xml also just live in my WAR/META-INF
file?
So let me get this right, the location of "appBase" is purely for
where WARs are uploaded. Never should "document roots" live under it?
So if I upload a war to "appBase" Tomcat then unpacks it to the
"context" "docbase"?
On Feb 26, 2008, at 1:40 PM, Mark Thomas wrote:
Lessie Z. Mitch wrote:
Sorry.. didn't finish... (hit the damned button)
And my application context.xml files would read something like...
No - completely wrong. In short (just doing one host) you want
something like:
/tomcat_home/conf/server.xml
<!-- virtual host mywebapp1 -->
<Host
name="mydomain1.net"
appBase="home/web/mydomain1.net/webapps"
unpackWARs="true"
autoDeploy="true">
</Host>
Context file location (for ROOT webapp):
/tomcat_home/conf/Catalina/mydomain1.net/ROOT.xml
Contents of .../mydomain1.net/ROOT.xml:
<Context path=""
docBase="/some/other/path/foobar.war"
reloadable="true">
</Context>
The docBase *must not* be under the appBase (home/web/mydomain1.net/
webapps)
Mark
---------------------------------------------------------------------
To start a new topic, e-mail: users@tomcat.apache.org
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]