tomcat-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Dharamshila Khandelwal <dharmshil...@gmail.com>
Subject Re: Servlet mapping doesn't work after upgrading from Tomcat 5 to 6
Date Tue, 08 Mar 2011 22:27:03 GMT
Thanks for your response Kolinko, I tried putting the servlet-mapping inside
servlet tag but it didn't work. I am attaching web.xml that I am using.

On Tue, Mar 8, 2011 at 5:11 PM, Konstantin Kolinko
<knst.kolinko@gmail.com>wrote:

> 2011/3/9 Dharamshila Khandelwal <dharmshila.k@gmail.com>:
> > Hi,
> >
> > I have the following servlet mapping in webapps/<webapp>/WEB-INF/web.xml
> >
> >  <servlet-mapping>
> >    <servlet-name>action</servlet-name>
> >    <url-pattern>*.do</url-pattern>
> >  </servlet-mapping>
> >
> > This mapping worked fine with Tomcat 5, but when I am running the
> > application with the same mapping, it is not able to load the servlet
> saying
> > that the requested servlet not found.
> >
> > Can anyone please help? Please let me know if you have any questions.
>
> Read the Servlet spec.
> You must have a <servlet> with that name. The <servlet-mapping> is
> only half of the picture.
>
> http://wiki.apache.org/tomcat/Specifications
>
> Best regards,
> Konstantin Kolinko
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: users-unsubscribe@tomcat.apache.org
> For additional commands, e-mail: users-help@tomcat.apache.org
>
>

Mime
View raw message