The name of the servlet class is TestingServlet.class
Here are the contants of my web.xml file for this servlet.
<?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>Testing</servlet-name>
<servlet-class>TestingServlet</servlet-class>
</servlet>
</web-app>
-----Original Message-----
From: Shapira, Yoav [mailto:[EMAIL PROTECTED]
Sent: Tuesday, March 02, 2004 11:48 AM
To: Tomcat Users List
Subject: RE: Deploying a simple servlet
Hi,
If your servlet class name is com.yourcompany.YourServlet, add the
following to your web.xml:
<servlet>
<servlet-name>YourServlet</servlet-name>
<servlet-class>com.yourcompany.YourServlet</servlet-class>
</servlet>
<servlet-mapping>
<servlet-name>YourServlet</servlet-name>
<url-pattern>/servlet/Testing</url-pattern>
</servlet-mapping>
Make sure the compiled servlet class is under the appropriate directory
of your app's WEB-INF/classes directory or packaged in a jar in
WEB-INF/lib. Restart tomcat. If your app is named MyApp, you will be
able to access your servlet at
http://yourhost:yourport/MyApp/servlet/Testing
Yoav Shapira
Millennium ChemInformatics
>-----Original Message-----
>From: Leydhershnayder, Leon A. [mailto:[EMAIL PROTECTED]
>Sent: Tuesday, March 02, 2004 11:45 AM
>To: [EMAIL PROTECTED]
>Subject: Deploying a simple servlet
>
>I'm new to tomcat and am trying to run a very simple hello world type
of
>servlet. I've configured the web.xml to mimic a similar servlet in
tomcat
>examples. Still while all the example servlets from tomcat work mine
fails
>to run.
>
>I receive the following message:
>
>HTTP Status 404 - /MyApp/servlet/Testing
>
>I would greatly appreciate any advice.
>
>
>---------------------------------------------------------------------
>To unsubscribe, e-mail: [EMAIL PROTECTED]
>For additional commands, e-mail: [EMAIL PROTECTED]
This e-mail, including any attachments, is a confidential business
communication, and may contain information that is confidential, proprietary
and/or privileged. This e-mail is intended only for the individual(s) to
whom it is addressed, and may not be saved, copied, printed, disclosed or
used by anyone else. If you are not the(an) intended recipient, please
immediately delete this e-mail from your computer system and notify the
sender. Thank you.
---------------------------------------------------------------------
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]