Christian,
add the "home" parameter to the Context. This is
explained in the the server.xml comments near the
Context entries. This seems to be required whenever you
use a directory as docbase which is not in webapps.
Dave
----- Original Message -----
From: "Christian Parpart" <[EMAIL PROTECTED]>
To: "Apache Tomcat (User) MailingList" <[EMAIL PROTECTED]>
Sent: Saturday, December 23, 2000 4:44 AM
Subject: How to access servlets without prefixes
> Hi all
>
> how can I access a servlet wich is
> mapped to any *.xml file without giving him
> any prefix like /mywebapp?
>
> <servlet>
> <servlet-name>XmlFilter</servlet-name>
> <servlet-class>myServlets.xmlFilter.XmlFilter</servlet-class>
> </servlet>
> <servlet-mapping>
> <servlet-name>XmlFilter</servlet-name>
> <url-pattern>*.xml</url-pattern>
> </servlet-mapping>
>
> This should be accessable from every sub directory on my host.
>
> <Host name="www.myhost.org">
> <Context path=""
> docBase="C:/path/to/htdocs"
> debug="0" reloadable="true" trusted="true" >
> </Context>
> </Host>
>
> This data is stored in $tomcat/conf/web.xml, because I thought
> these information are available for all hosts defined in server.xml.
>
> But it doesn't work. Why and how should I define it?
>
> Thanks in advance,
>
> Christian Parpart
> SurakWare
> [EMAIL PROTECTED]
> http://www.surakware.com