bon, voilà ce que j'ai fait depuis le début...
j'ai récupéré tomcat-4.1.18.exe
je l'ai installé (pas en tant que service) dans c:\serveur\tomcat4.1 (aucun espace)
j'ai mis
%TOMCAT_HOME%=c:\serveur\tomcat4.1
%CATALINA_HOME%=c:\serveur\tomcat4.1
ensuite j'ai crée une arborescence
%TOMCAT_HOME%\webapps\hello\WEB-INF\classes
j'ai mis Hello.class (une classe semblables à HelloWorld, rien de bien intéressant) dans le rep classes
web.xml (récupéré dans le répertoire ROOT\WEB-INF) dans le rep WEB-INF
Citation :
<?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>
<display-name>Welcome to Tomcat</display-name>
<description>
Welcome to Tomcat
</description>
</web-app>
|
dans server.xml, juste au dessus du context "examples", j'ai ajouté
Citation :
<Context path="/hello" docBase="hello" debug="9" reloadable="true">
<Logger className="org.apache.catalina.logger.FileLogger" prefix="localhost_hello_log." suffix=".txt" timestamp="true" /> </Context>
|
je lance tomcat
aucun message d'erreur
je test
http://localhost:8080/examples/servlet/HelloWorld
---> ça marche
http://localhost:8080/hello/servlet/Hello
--->
Citation :
Etat HTTP 404 - /hello/servlet/Hello
--------------------------------------------------------------------------------
type Rapport d''état
message /hello/servlet/Hello
description La ressource demandée (/hello/servlet/Hello) n'est pas disponible.
|
quand je regarde ce qui tourne avec http://localhost:8080/admin/list, j'ai ça
Citation :
OK - Applications listées pour l'hôte virtuel (virtual host) localhost
/admin:running:0:../server/webapps/admin
/webdav:running:0:C:\Serveur\Tomcat4.1\webapps\webdav
/examples:running:0:examples
/tomcat-docs:running:0:C:\Serveur\Tomcat4.1\webapps\tomcat-docs
/hello:running:0:hello
/:running:1:C:\Serveur\Tomcat4.1\webapps\ROOT
/manager:running:0:../server/webapps/manager
|
alors, où ai-je merdé ?
je sais vraiment plus quoi faire... 
Message édité par Predicator le 24-01-2003 à 10:07:53