Hi Ludovic! I think you've answered yourself, but let's get ahead with it:

Ludovic Maitre wrote:

> I think that i haven't good understand how work tomcat because i was
> thinking that the web.xml
> file provided in the /conf directory was for declaring the servlets
> loaded at startup (Jasper), the mime type and the mappings used by the
> whole application tomcat.

Nope, there's no longer a "whole application", there are just several
contexts.

> Are you sure that the /conf/web.xml file isn't used by tomcat ?

Yes.

> By the way in tomcat 3.1 i would be able to declare the cocoon servlet
> and is mapping (.xml -> cocoon) in the web web.xml file and with tomcat
> 3.2 it seems not to work. Has somebody notice the same problem ? And it
> is possible to specify the location and the name of this file ('cause i
> want to locate web.xml near my apache configuration) ?

Yes, the problem is that conf/web-xml does not work any longer. Use the one
inside WEB-INF.

> Here are the lines i have added to /conf/web.xml (and this don't work on
> 3.2 but work on 3.1) :

Sure, add the same lines to WEB-INF/web.xml and it will work OK on 3.2.1.

Saludos,

Alex.

>
>
> <!-- Cocoon : xml,xsl... -->
>     <servlet>
>         <servlet-name>
>             cocoon
>         </servlet-name>
>         <servlet-class>
>             org.apache.cocoon.Cocoon
>         </servlet-class>
>         <init-param>
>             <param-name>properties</param-name>
>             <param-value>cocoon.properties</param-value>
>         </init-param>
>         <load-on-startup>
>             -2147483646
>         </load-on-startup>
>     </servlet>
>
>     <servlet-mapping>
>         <servlet-name>
>             cocoon
>         </servlet-name>
>         <url-pattern>
>             *.xml
>         </url-pattern>
>     </servlet-mapping>
>
>     <welcome-file-list>
> ...
>         <welcome-file>
>             index.xml
>         </welcome-file>
> ...
>     </welcome-file-list>
>
> --
>  [EMAIL PROTECTED]
>
>  INRIA - 2004 route des lucioles - BP 93    Tel: (33/0) 4 92 38 50 41
>  06902   SOPHIA-ANTIPOLIS cedex (France)    Fax: (33/0) 4 92 38 76 02
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: [EMAIL PROTECTED]
> For additional commands, email: [EMAIL PROTECTED]


---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, email: [EMAIL PROTECTED]

Reply via email to