tomcat-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Caldarale, Charles R" <>
Subject RE: Problem deploying existing webapp in new Tomcat container
Date Thu, 17 May 2007 19:12:17 GMT
> From: Rob Tanner [] 
> Subject: Re: Problem deploying existing webapp in new Tomcat container
> the first thing I did was to add the path 
> ${CATALINA_HOME}/conf/Catalina/localhost.

What does "add the path" mean?  That directory should have already

> I created one xml file named: mailtools#aliases.xml since the 
> context path is multi-level (the path is "/mailtools/aliases"
> -- I presume that's what was meant by multi-level in the doc)
> for the first webapp and accntManager.xml for the seconf app.

You didn't say so explicitly, but I presume you placed these .xml files
in conf/Catalina/localhost.

> <Context crossContext="true" debug="0"
>     docBase="GroupAliases" path="/mailtools/aliases"
>   <Logger className="org.apache.catalina.logger.FileLogger"
>       prefix="localhost_aliases_log." suffix=".txt" timestamp="true"/>
> </Context>
> <Context crossContext="true" debug="0"
>     docBase="AccountManager" path="/accntManager" reloadable="true">
>   <Logger className="org.apache.catalina.logger.FileLogger"
>       prefix="localhost_accntmanager_log." suffix=".txt"
>       timestamp="true"/>
> </Context>

The path attribute is not allowed - get rid of it.  A docBase attribute
relative to appBase is also not allowed, so get rid of that.  As at
least two people have told you, the <Logger> element is no longer
allowed, so that goes as well.  (You can configure individual webapp
logging by following the doc here:

So now we're left with just:

<Context crossContext="true" debug="0" reloadable="true">

for each webapp.  However, that's not going to work for the multi-level
path one.  Any app using a multi-level path cannot be placed under the
<Host>'s appBase - it must be located elsewhere, or double deployments
can occur.  Let's assume you'll put it in ${CATALINA_HOME}/otherapps;
your <Context> for mailtools#aliases.xml now becomes:

<Context crossContext="true" debug="0" reloadable="true">

(The above assumes you have an unpacked webapp, not a .war file.)

For the second webapp, simply rename the directory from AccountManager
to accntManager; if you're going to deploy under the appBase directory,
the name of the sub-directory (or .war file) IS the URI path to the
webapp - no exceptions.  If you want something different, the webapp
must be located somewhere other than under appBase.

 - Chuck

MATERIAL and is thus for use only by the intended recipient. If you
received this in error, please contact the sender and delete the e-mail
and its attachments from all computers.

To start a new topic, e-mail:
To unsubscribe, e-mail:
For additional commands, e-mail:

View raw message