You are viewing a plain text version of this content. The canonical link for it is here.
Posted to users@tomcat.apache.org by Alan Cooper <al...@lumison.net> on 2007/01/29 10:43:15 UTC
Tomcat not reading context path directive
HI there,
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).
The servlet is served, just not from the desired context. I am setting
the context up in /etc/tomcat5/Catalina/localhost/bield.xml.
My xml file looks like:
<!--
Context configuration file for the Bield Web App
$Id: bield.xml,v 1.3 2007/01/26 10:03:34 remm Exp $
-->
<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?
---------------------------------------------------------------------
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
Re: Tomcat not reading context path directive
Posted by Markus Schönhaber <ma...@schoenhaber.de>.
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