Ah yes, the whole "can't do automatic configuration of servlet mapping" issue.

You should only have to write about your mapped servlets in one place, the 
web.xml file in the WEB-INF directory within a given context.

The -auto files should account for the servlet mappings you wrote there, 
but alas, that does not happen right now.

My question has been and still is, will this ever be implemented?  I posted 
on this issue many times before and noone in the know has responded to 
this.  It seems like a pretty needed feature.  Why no comment on it????

If the answer is "no, we won't do that", at least that is better than not 
getting an answer on this issue.  BTW, I hope the answer is "yes, soon"!

later,

Jake

At 05:12 PM 10/20/2000 +0200, you wrote:
>The servletmapping is not taken into account when generating the auto-conf
>files.
>rename the file, edit it to your needs and include that one in your
>httpd.conf
>
>Reagards,
>Andreas
>
> > -----Original Message-----
> > From: Martin W. Smith [mailto:[EMAIL PROTECTED]]
> > Sent: Friday, October 20, 2000 4:03 PM
> > To: [EMAIL PROTECTED]
> > Subject: servlet-mapping question
> >
> >
> > I have installed a servlet in a webapp directory named metis.  I can
> > run the servlet with the URL:
> >
> > http://myplace.no/metis/servlet/XlnWebServlet/pub/models/training.kmv
> >
> > ...but I want to use this instead:
> >
> > http://myplace.computas.no/metis/repository/pub/models/training.kmv
> >
> > In the web.xml file, I added this after the servlet element for
> > XlnWebServlet:
> >
> >     <servlet-mapping>
> >         <servlet-name>
> >             XlnWebServlet
> >         </servlet-name>
> >         <url-pattern>
> >             /repository/*
> >         </url-pattern>
> >     </servlet-mapping>
> >
> > ...but it doesn't work.  The problem is the tomcat-apache.conf file
> > that is automatically generated.  It contains this:
> >
> > Alias /metis C:\opt\tomcat\webapps\metis
> > <Directory "C:\opt\tomcat\webapps\metis">
> >     Options Indexes FollowSymLinks
> > </Directory>
> > ApJServMount /metis/servlet /metis
> > <Location /metis/WEB-INF/ >
> >     AllowOverride None
> >     deny from all
> > </Location>
> >
> > If I change the ApJServMount to:
> >
> > ApJServMount /metis /metis
> >
> > ...then the URL I want to use works.  The problem with this is that
> > tomcat
> > generates tomcat-apache.conf automatically, which is nice, but it
> > always wants to put /metis/servlet there instead of just /metis.  Is
> > there a reason for appending "servlet" there?  I don't want that word
> > to appear in the URLs.  Can I configure the way tomcat generates the
> > apache-tomcat file so that it does not append /servlet ?
> >
> > Also, I am running this on Windows 2000.  Hopefully, eXcelon will
> > support linux next year.  Until then, since tomcat must be started
> > before Apache, does anyone know how to tell Windows 2000 to start
> > tomcat before Apache?
> >
> > martin
> >
> > --
> > Martin Smith             email: [EMAIL PROTECTED]
> > Vollsveien 9               tel. : +47 6783 1202
> > P.O. Box 482
> > 1327 Lysaker, Norway
> >

Reply via email to