On 1/6/11 12:05 PM, Leon Rosenberg wrote:
> On Thu, Jan 6, 2011 at 5:45 PM, Wayne Fay <wayne...@gmail.com> wrote:
>>> if you mean context.xml in META-INF -> than nope.
>>> Tomcat only allows you to change the context path from outside, for
>>> example from localhost/Catalina/distributeme.xml
>>
>> The documentation suggests (to me) otherwise:
>> http://tomcat.apache.org/tomcat-6.0-doc/config/context.html
> 
> path
> he context path of this web application, which is matched against the
> beginning of each request URI to select the appropriate web
> application for processing. All of the context paths within a
> particular Host must be unique. If you specify a context path of an
> empty string (""), you are defining the default web application for
> this Host, which will process all requests not assigned to other
> Contexts.
> 
> The value of this field must not be set except when statically
> defining a Context in server.xml, as it will be inferred from the
> filenames used for either the .xml context file or the docBase.
> 
> And for the docBase:
> The value of this field must not be set when the Context is configured
> using a META-INF/context.xml file as it will be inferred by the
> automatic deployment process.
> 
> So apparently not. But thank for good intentions anyway!

Hmm. This definitely worked at one point, but it sounds like it has been
intentionally removed. Too bad.

Sorry for the false hope.

> 
> regards
> Leon
> 
>>
>> We don't use Tomcat as our primary container so I won't claim to be an
>> expert with Tomcat.
>>
>> Wayne
>>
>> ---------------------------------------------------------------------
>> To unsubscribe, e-mail: users-unsubscr...@maven.apache.org
>> For additional commands, e-mail: users-h...@maven.apache.org
>>
>>
> 
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: users-unsubscr...@maven.apache.org
> For additional commands, e-mail: users-h...@maven.apache.org
> 


---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscr...@maven.apache.org
For additional commands, e-mail: users-h...@maven.apache.org

Reply via email to