In Tomcat 3.2.2 (I know that's the version I'm running - I think its the version of
the source that I checked) the preference for
servlet/webApp is hardwired into the code that generates the automatic config files.
It takes no notice of anything in the server.xml file (which I think is at least a
little unfriendly)
To have the behaviour you requested you'll have to edit those (or actually the files
you derived from those when you first set up
Tomcat) In the case sited for PWS under Win98 it looks like you would have to modify
the file derived from
%TOMCAT_HOME%\conf\uriworkermap.properties-auto
HTH
BTW In my example below it looks like Tomcat is serving my static content. :-(
> -----Original Message-----
> From: Brett Knights [mailto:[EMAIL PROTECTED]]
> Sent: Friday, April 06, 2001 10:16 AM
> To: '[EMAIL PROTECTED]'
> Subject: RE: simple question for servlet-configuration of tomcat
>
>
> > What I have to do (in the configuration files) when I want
> to start my
> > servlets with the URL:
> >
> > http://localhost/servlet/TestServlet
> >
> > and not with a WEPAPP-Directory like
> > http://localhost/example/servlet/TestServlet
> >
> > Which settings I have to do in the configuration-files and in which
> > directory I have to put my Servlets ?
> >
> > >You just have to declare a context like this:
> > > <Context path="" docBase="/path/to/myapp" debug="0"
> > reloadable="false" >
> > > </Context>
>
>
> I don't think this is necessarily correct in all circumstances.
>
> Try as I might I can't get any of the automatically generated
> files to reflect that I want to access my servlets at
> /webapp/servletalias
> rather than at /webapp/servlet/servletalias
>
> I did succeed in making this work with tomcat and apache by
> editing my tomcat.conf file as follows:
>
> Alias /webApp "C:/ApacheGroup/Tomcat/webapps/webApp "
> <Directory "C:/ApacheGroup/Tomcat/webapps/webApp ">
> Options Indexes FollowSymLinks
> </Directory>
> ApJServMount /webApp /webApp
>