tomcat-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Jacob Kjome <>
Subject Re: kept getting HTTP Status 404 - please help. thanx.
Date Sun, 02 Feb 2003 06:03:17 GMT

Are you accessing it like this?....


If so, note that the "/servlet/*" mapping is for the invoker servlet which 
is commented out (by default) in Tomcat conf/web.xml.  Uncomment the 
mapping for the invoker servlet and you will be able to access your servlet.

BTW, you should always put your servlet in an actual package if you haven't 
already.  Something like com.mycompany.MyServlet instead of placing your 
classes in the root of WEB-INF/classes which is the default package.  You 
can't import the default package.


At 09:07 PM 2/1/2003 -0800, you wrote:
>Ijust installed tomcat 4.1.18 today.
>everything seems fine. i can see this page
>http://localhost:8080/index.jsp. and i run those
>Servlet Examples,  it showed up, everyting is good.
>then i wrote a servlet page myself, and try to run it.
>it told me cannot find it, I got  http status 404
>error.  I am sure my coding is rite. cuz I download
>htem directly from web site.
>after i compile the .java file, I put it .class file
>into WEB-INF/classes folder. I followed hte
>instruction step by step.
>I check thousands time, still have no clue whts wrong.
>if u have any ideas please help me out.
>                                john.
>Do you Yahoo!?
>Yahoo! Mail Plus - Powerful. Affordable. Sign up now.
>To unsubscribe, e-mail:
>For additional commands, e-mail:

  • Unnamed multipart/alternative (inline, None, 0 bytes)
View raw message