tomcat-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Jann VanOver <Jann.VanO...@loudeye.com>
Subject RE: web.xml
Date Tue, 28 Aug 2001 19:40:45 GMT
You made the changes and restarted Tomcat?  It all LOOKS good ... 

-----Original Message-----
From: Ruben Domene [mailto:rdomene@svalero.es]
Sent: Tuesday, August 28, 2001 12:25 PM
To: tomcat-user@jakarta.apache.org
Subject: RE: web.xml


I have done the changes, but i can´t execute the servlet. have i to modify
some file moreover?.
My directories structure is the next:
	./webapps/ROOT/WEB-INF
	   |--classes/org/stevengould/javaworld/RequestDetails.class

Thank you for your help.




-----Mensaje original-----
De: Jann VanOver [mailto:Jann.VanOver@loudeye.com]
Enviado el: martes, 28 de agosto de 2001 20:26
Para: 'tomcat-user@jakarta.apache.org'
Asunto: RE: web.xml


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:rdomene@svalero.es]
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.

Mime
View raw message