tomcat-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Christopher Schultz <>
Subject Re: Can Tomcat context path be multilevel
Date Wed, 09 Dec 2009 19:37:23 GMT
Hash: SHA1


On 12/9/2009 2:05 PM, Prashantha H wrote:
>     If my application name is Doc.war and I want it to be accessed using
> multilevel context path dco/smartfolder. (
> http://localhost:8080/dco/smartfolder/....)

Heh. So, you're on Windows, then? Doc.war ought to deploy to /Doc, not
to /doc (or even /dco).

>     I have made the below entry in the Conf/Server.xml file.

Don't do that: use the preferred deployment descriptor in your WAR
file's META-INF/context.xml.

>     <Context path="/dco/smartfolder/" docBase="Doc"
> reloadable="true"></Context>

In META-INF/context.xml, neither the path nor the docBase attributes are
allowed. Remove them.

The easiest thing to do is to name your WAR file dco#smartfolder.war and
it will be deployed to /dco/smartfolder

> When I Start my Tomcat after making the above changes, it will end up
> having two deploy folders created when it explodes, Documentum and another
> dco(Within which it will have smartfolder directory).

It appears that Documentum is a separate webapp, and /should/ be
deployed separately.

> Is there  a way we avoid creation of this multiple folders when it gets
> deployed and still be able to be access the application using the multilevel
> context path?

Each webapp will deploy into a separate folder, regardless of any
coincident URL mappings.

- -chris
Version: GnuPG v1.4.10 (MingW32)
Comment: Using GnuPG with Mozilla -


To unsubscribe, e-mail:
For additional commands, e-mail:

View raw message