According to your web.xml, your servlet class
(org.stevengould.javaworld.RequestDetails) is in a package so that package
hierarchy must be reflected in the directories:
    ./WEB-INF
      | -- classes/org/stevengould/javaworld/RequestDetails.class


-----Original Message-----
From: Ruben Domene [mailto:[EMAIL PROTECTED]]
Sent: Tuesday, August 28, 2001 11:07 AM
To: tomcat
Subject: web.xml


Hi, i try to execute a servlet but i can�t.
I have the nexts directorys:
        ./WEB-INF
           |--classes

In the WEB-INF directory it is the web.xml file with:

<?xml version="1.0" encoding="ISO-8859-1"?>

<!DOCTYPE web-app
    PUBLIC "-//Sun Microsystems, Inc.//DTD Web Application 2.2//EN"
    "http://java.sun.com/j2ee/dtds/web-app_2_2.dtd";>

<web-app>
<servlet>
        <servlet-name>RequestDetails</servlet-name>

<servlet-class>org.stevengould.javaworld.RequestDetails</servlet-class>
</servlet>

<servlet-mapping>
        <servlet-name>RequestDetails</servlet-name>
        <url-pattern>SampleServlet</url-pattern>
</servlet-mapping>
</web-app>

In the classes directory i have the class RequestDetails.java and
RequestDetails.class

When i try "http://server:8080/SampleServlet"; my console shows: "2001-08-28
09:54:17 - Ctx(  ): 404 R(  + SampleServlet + null) null".

What am i doing bad????
Thank you.

Reply via email to