je viens de faire le test avec un tomcat 4.1.12, et c'est ok !
dans conf/server.xml (cf grep � la fin)
j'ai fait une appli toto.war (qui doit �tre extraite avant le d�marrage
de tomcat), contenant un index.html (et index.jsp)

Voila la trace de mes manip pour info

[fred@calvin tomcat]$ ls
bin/     conf/    logs/       RELEASE-NOTES-4.1.txt  RUNNING.txt  shared/  webapps/
common/  LICENSE  README.txt  RELEASE-PLAN-4.1.txt   server/      temp/    work/

[fred@calvin tomcat]$ jar tvf webapps/toto.war 
     0 Wed Oct 30 14:42:28 CET 2002 META-INF/
    68 Wed Oct 30 14:42:28 CET 2002 META-INF/MANIFEST.MF
     0 Wed Oct 30 14:41:22 CET 2002 toto/
     0 Wed Oct 30 14:40:32 CET 2002 toto/WEB-INF/
   307 Wed Oct 30 14:42:04 CET 2002 toto/WEB-INF/web.xml
   501 Wed Oct 30 14:41:36 CET 2002 toto/index.html
   670 Wed Oct 30 14:41:02 CET 2002 toto/index.jsp

[fred@calvin tomcat]$ cd bin
[fred@calvin bin]$ sh catalina.sh start
Using CATALINA_BASE:   /opt/server-full/tomcat
Using CATALINA_HOME:   /opt/server-full/tomcat
Using CATALINA_TMPDIR: /opt/server-full/tomcat/temp
Using JAVA_HOME:       /opt/j2sdk1.4.1

[fred@calvin bin]$ galeon http://localhost:8080
Message: Galeon already running, using existing process

[fred@calvin bin]$ sh catalina.sh stop 
Using CATALINA_BASE:   /opt/server-full/tomcat
Using CATALINA_HOME:   /opt/server-full/tomcat
Using CATALINA_TMPDIR: /opt/server-full/tomcat/temp
Using JAVA_HOME:       /opt/j2sdk1.4.1



[fred@calvin bin]$ grep "<Context path" ../conf/server.xml
        <Context path="" docBase="toto" debug="0"/>
        <Context path="/examples" docBase="examples" debug="0"


en esp�rant que �a t'aidera...

-- 
Fr�d�ric Laurent
http://www.opikanoba.org


On Wed, 30 Oct 2002 11:54:23 +0100
"FRADET" <[EMAIL PROTECTED]> wrote:

> 
> Bonjour
> 
> -----Message d'origine-----
> De�: Fr�d�ric Laurent [mailto:fl@;opikanoba.org] 
> Envoy�: mercredi 30 octobre 2002 11:13
> ��: [EMAIL PROTECTED]
> Objet�: Re: Contexte par d�faut
> 
> salut
> 
> il faut d�finir le contexte par d�faut dans le fichier de conf
> server.xml
> en d�clarant path=""
> 
> <Context path="" docBase="/mon_contexte">...
> 
> cf http://jakarta.apache.org/tomcat/tomcat-4.1-doc/config/context.html
> (voir path et docBase)
> 
> J'avais d�j� essay� avec Tomcat 4.02 et 4.1.12. J'ai r�essay� � nouveau
> et �a ne marche pas !
> 

Répondre à