tomcat-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Andy Ee" <>
Subject RE: Multi-Level Context Paths
Date Mon, 17 Aug 2009 11:49:39 GMT
Hi Mark,

Before I prepare my .war file, there is an existing META-INF/context.xml and
the content is,

<Context path="/test" debug="99" reloadable="true"
    antiJARLocking="true" antiResourceLocking="false">

    <!--Resource name="jdbc/moneysend" auth="Container"
              maxActive="100" maxIdle="30" maxWait="10000"
              username="MS3_STL" password="password"
              defaultAutoCommit="true" removeAbandoned="true"
              removeAbandonedTimeout="60" logAbandoned="true"/-->

Should I remove the path parameter and prepare the war file again?

With the path specified as /test, I am worried it will conflict how I setup
Multi-Level path.

Best Regards,
Andy Ee

-----Original Message-----
From: Mark Thomas [] 
Sent: Monday, August 17, 2009 7:04 PM
To: Tomcat Users List
Subject: Re: Multi-Level Context Paths

Andy Ee wrote:
> There is a new requirement to setup multi-level context path as in I need
> the URL to be  <http://localhost:8080/sg/server/test/>

Remove all the old files you no longer want:

Rename your WAR to sg#server#test.war

Place your renamed war in:

Any META-INF/context.xml will be extracted to:

> <Context path="/test" debug="99" reloadable="true"

As stated in the docs for the context element, you should not specify
the path attribute in this case.

> java.lang.IllegalArgumentException: Document base
> /usr/local/apache-tomcat/webapps/sg#server#test does not exist or is not a
> readable directory

If Tomcat finds:

It expects to find a matching war
or directory


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

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

View raw message