tomcat-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Bill Barker" <>
Subject Re: windows setup query
Date Fri, 30 Apr 2004 06:05:24 GMT
Well, one problem is that the servlet-name is case sensitive (you have
'Welcome' in the servlet tag and 'welcome' in the servlet-mapping).

It also looks like you have included your context-path in the
servlet-mapping.  This is a no-no, but Tomcat 3 will let it quietly slide if
you do it.  Higher versions of Tomcat are not so forgiving.

"Charles Humble" <> wrote in message
> Am sorry to be asking this.  I have a new machine which I'm trying to set
> up.  I have a web app which was working fine under tomcat 3.  I've just
> moved over to version 5 (and also changed OS to Windows XP unfortunately)
> and I now get 404 not found errors for all of my servlets.  I tried
> up a very basic mapping
> <web-app>
>     <servlet>
>         <servlet-name>
>             Welcome
>         </servlet-name>
>         <servlet-class>
>             welcome
>         </servlet-class>
>     </servlet>
>     <servlet-mapping>
>         <servlet-name>
>             welcome
>         </servlet-name>
>         <url-pattern>
>             /twofish/*
>         </url-pattern>
>     </servlet-mapping>
> </web-app>
> but the welcome servlet is still not being found.  I also can't navigate
> it using http://localhost:8080/twofish/servlet/welcome.
> What do I need to do for Tomcat to see the twofish\WEB-INF\classes
> directory?
> Also if anyone knows of the top of their head what the class path needs to
> look like under Windows so I can compile servlets with javac I'd be
> grateful - although I thought the path was correct I can't import import
> javax.servlet.http.* currently.
> Thanks for your help,
> Charles

To unsubscribe, e-mail:
For additional commands, e-mail:

View raw message