Are you accessing it like this?....
http://localhost:8080/servlet/MyServlet
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.
Jake
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. thanx. john. __________________________________________________ Do you Yahoo!? Yahoo! Mail Plus - Powerful. Affordable. Sign up now. http://mailplus.yahoo.com --------------------------------------------------------------------- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]