tomcat-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Markus Schönhaber <mailing-tomcat-u...@schoenhaber.de>
Subject Re: Tomcat not reading context path directive
Date Mon, 29 Jan 2007 11:44:29 GMT
Alan Cooper wrote:

> I'm running Tomcat 5.5.12 (Red Hat Enterprise Linux stock packages).
>
> I am trying to set a Context path directive for /ejava/appname
>
> Tomcat is ignoring the Context path and instead taking the context from
> the xml file name (so it's reading the file and the docBase directive).

That's just the way it's designed to be:
http://tomcat.apache.org/tomcat-5.5-doc/config/context.html

> The servlet is served, just not from the desired context.  I am setting
> the context up in /etc/tomcat5/Catalina/localhost/bield.xml.
[...]
> <Context docBase="/home/bield/live/ejava/" path="/ejava/bield"
> override="true"
>          privileged="true" antiResourceLocking="false"
> antiJARLocking="false">
>
>   <ResourceLink name="users" global="UserDatabase"
>                 type="org.apache.catalina.UserDatabase"/>
>
> </Context>
>
>
> Any ideas where I'm going wrong?

Remove the "path" attribute and instead name the file "ejava#bield.xml".

Regards
  mks

---------------------------------------------------------------------
To start a new topic, e-mail: users@tomcat.apache.org
To unsubscribe, e-mail: users-unsubscribe@tomcat.apache.org
For additional commands, e-mail: users-help@tomcat.apache.org


Mime
View raw message