I had the same problem yesterday and other Tomcatters helped me out.
Add this web.xml to your application WEB-INF directory.
<?xml version="1.0" encoding="ISO-8859-1"?>
<!DOCTYPE web-app
PUBLIC "-//Sun Microsystems, Inc.//DTD Web Application 2.3//EN"
"http://java.sun.com/dtd/web-app_2_3.dtd">
<web-app>
<servlet>
<servlet-name>YourServlet</servlet-name>
<servlet-class>path.to.your.clss.files.YourServlet</servlet-class>
</servlet>
<servlet-mapping>
<servlet-name>YourServlet</servlet-name>
<url-pattern>/YourServlet</url-pattern>
</servlet-mapping>
</web-app>
This should work, also check this out:
http://jakarta.apache.org/tomcat/faq/misc.html#invoker
Yi
-----Original Message-----
From: R. J. [mailto:[EMAIL PROTECTED]
Sent: Tuesday, July 01, 2003 1:22 PM
To: [EMAIL PROTECTED]
Subject: servlets fail on me
I just downloaded Tomcat Windows 4.1.24 version. After
I did all the configure, added application in Context
tag of server.xml, I wrote a very simple HelloWorld
servlet, compiled it, and restarted the Tomcat. It
keeps giving me the error page like this:<p>
<b>type</b> Status report<P>
<b>message</b> /apress/servlet/apress.Hello<p>
<b>description</b> The requested resource
(/apress/servlet/apress.Hello) is not available.
I don't have the problem if I try one of these servlet
examples from Tomcat examples application. I don't
have any problem of using my own JSP or JavaBean,
either. I don't have the problem before with earlier
Tomcat version. Only the direct call servlets this
time.<P>
I'd really appreciate if anyone would give me some
hints and advice. Thanks.
__________________________________
Do you Yahoo!?
SBC Yahoo! DSL - Now only $29.95 per month!
http://sbc.yahoo.com
---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]
---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]