tomcat-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "X V Jay" <xv...@coolgoose.com>
Subject Can't run servlets
Date Thu, 06 Nov 2003 07:04:13 GMT
Hi,
I am a newbie, I have been unable to run a servlet. These are the steps 
I took...

1. I wrote a small test servlet.
2. I created a 'test' directory under webapps. 
3. Created WEB-INF in 'test' and put the testweb.class in classes dir.
4. Created a web.xml in WEB-INF

<?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>abcd</servlet-name>
<servlet-class>testweb</servlet-class>
</servlet>
</web-app>

5. Tried to run the servlet form http://localhost:8080/test/servlet/abcd

Error displayed: The requested resource (/test/servlet/abcd) is not 
available.

Is there anything which I have missed or done something wrong ?
Please help me.
Thank you

OS: XP Professional
Tomcat version: 4.1.27

---------------------------------------------------------------------
To unsubscribe, e-mail: tomcat-user-unsubscribe@jakarta.apache.org
For additional commands, e-mail: tomcat-user-help@jakarta.apache.org


Mime
View raw message