Hi,

I am trying to figure out how to configure two applications - one to have
the default context (ie: be in the root of the url) and the other to be in
its own directory. I have the following setup:

webapps dir=/usr/local/product/webapps
catalina_base=/usr/local/product/base
catalina_home=/usr/local/tomcat

Inside webapps I have two war files - myapp.war and a 3rd party monitoring
app - probe.war

I want myapp.war to be the default application (ie: www.myapp.com) and the
3rd party app to be www.myapp.com/probe

Right now I have the following Host config in server.xml:
<Host name="localhost" appBase="/usr/local/product/webapps"
unpackWARs="true" autoDeploy="true" deployOnStartup="true"
xmlValidation="false" xmlNamespaceAware="false">

Inside $CATALINA_BASE/conf/Catalina/localhost/ I have two context files:
probe.xml and myapp.xml
The probe.xml deploys to the correct location, but myapp.xml deploys to
www.myapp.com/myapp

Contents of myapp.xml:
<?xml version="1.0" encoding="UTF-8"?>
<Context path="" override="true" debug="3">

<!-- Default set of monitored resources
<WatchedResource>WEB-INF/web.xml</WatchedResource> -->
</Context>

I have tried adding a docBase="myapp" to the Context, but that produces the
following error in the logs (and still deploys to the wrong location). A
docBase /usr/local/product/webapps/myapp inside the host appBase has been
specified, and will be ignored

Reply via email to