I know almost have it 'The way I want it to work (TM)' using the
following configuration.

- server.xml
  <Host appBase="wars/<host>" autoDeploy="false" debug="99"
    name="<host>" unpackWARs="false" deployXML="false"
  >
    <Logger className="org.apache.catalina.logger.FileLogger"
      prefix="<host>" timestamp="false" />
  </Host>

- conf/Catalina/<host>/app.xml
  <?xml version='1.0' encoding='utf-8'?>
  <Context debug="9" docBase="app-web.war" path="/app"
    reloadable="true"
  >
    <ResourceLink global="jdbc/appDs" name="jdbc/appDs"
      type="javax.sql.DataSource"
  />
</Context>

Now the final question is how can I set the path to be a sub directory?
So /subdir/app. This worked on my Tomcat 5 installation on Linux but
doesn't work here. It seems to just ignore the path.

And YES these context files are NOT deployed as part of the war file.


On Fri, 2005-08-26 at 08:33 -0700, Hassan Schroeder wrote:
> Paul Austin wrote:
> > The test case I am using is running on Tomcat 5.5.9.
> > 
> > 1. The web application is deployed as a the app.war file, with no
> > context.xml file to the wars/<host> directory
> 
> _and_ no META-INF/context.xml in the war file, right?
> 
> > 2. The Host configuration is as follows.
> >   <Host debug="99" name="<host>" unpackWARs="false"
> >     deployXML="false">
> >      <Logger className="org.apache.catalina.logger.FileLogger"
> >      prefix="<host>" timestamp="false" />
> >   </Host>
> > 3. In conf/Catalina/<host>/app.xml
> >   <?xml version='1.0' encoding='utf-8'?>
> >   <Context debug="9" docBase="wars/<host>/app.war" path="/app"
> >     reloadable="true" workDir="work/Catalina/<host>/app">
> >     <ResourceLink global="jdbc/appDs" name="jdbc/appDs"
> >     type="javax.sql.DataSource"/>
> >   </Context>
> > 
> > When I copy app.war into wars/<host> to repeploy using the automatic
> > deployer I check the conf/Catalina/<host>/ and
> > http://<host>/manager/list and the app.xml and the /app context are
> > deleted.
> 
> I would check your logs for errors, but also go through all your
> entries in your server.xml and "app".xml files
> 
> For instance, for the path attribute of Context:
>    The value of this field must not be set except when statically
>    defining a Context in server.xml, as it will be infered from the
>    filenames used for either the .xml context file or the docBase.
> 
> Sometimes the subtle config errors will bite'cha :-)
> 


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

Reply via email to