tomcat-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "James Cook" <jimc...@iname.com>
Subject Re: Context's default servlet not recognized in latest CVS
Date Wed, 28 Jun 2000 17:10:02 GMT
AFAIK, this has never worked in any release since 3.0. At least no release
that was ever available in the CVS repository.

I have worked around the problem by using "index.html" as the url-mapping
for my servlet. I then had to add a dummy index.html file to my docbase.

jim

----- Original Message -----
From: Timm, Sean <STimm@mailgo.com>
To: <tomcat-dev@jakarta.apache.org>
Sent: Wednesday, June 28, 2000 12:48 PM
Subject: Context's default servlet not recognized in latest CVS


> I've got a context defined as /cvsweb.  I've set up a default servlet in
my
> web.xml in the docBase/WEB-INF directory, but when I try and hit
> http://myserver/cvsweb, it is getting served up by the StaticInterceptor
> instead.  The only way I can get the servlet to serve up is by hitting
> http://myserver/cvsweb/servlet/myservlet.  I had this problem at one time,
> and it had been fixed, but it looks like it has resurfaced again (probably
> due to the DefaultServlet changes?)  Does anyone have any insight on this?
> I'll dig more if necessary...
>
> - Sean T.
>
> My web.xml is as follows:
>
> <?xml version="1.0" encoding="ISO-8859-1" ?>
> <!DOCTYPE web-app
>     PUBLIC "-//Sun Microsystems, Inc.//DTD Web Application 2.2//EN"
>     "http://java.sun.com/j2ee/dtds/web-app_2.2.dtd">
> <web-app>
>   <servlet>
>     <servlet-name>myservlet</servlet-name>
>     <servlet-class>com.company.servlet.myservlet</servlet-class>
>     <load-on-startup>-1</load-on-startup>
>   </servlet>
>
>   <servlet-mapping>
>     <servlet-name>myservlet</servlet-name>
>     <url-pattern>
>         /
>     </url-pattern>
>   </servlet-mapping>
> </web-app>
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: tomcat-dev-unsubscribe@jakarta.apache.org
> For additional commands, e-mail: tomcat-dev-help@jakarta.apache.org
>
>


Mime
View raw message