You are viewing a plain text version of this content. The canonical link for it is here.
Posted to users@cocoon.apache.org by Fabrice SOLLAMI <fa...@marketschemer.com> on 2000/09/06 16:05:18 UTC

RE: [Cocoon Users] Re: COCOON.PROPERTIES

Thanks a lot.



-----Message d'origine-----
De : cocoon-users-admin@lists.real-time.com
[mailto:cocoon-users-admin@lists.real-time.com]De la part de Berin
Loritsch
Envoye : mercredi 6 septembre 2000 15:35
A : cocoon-users@xml.apache.org
Objet : [Cocoon Users] Re: COCOON.PROPERTIES


Fabrice SOLLAMI wrote:
>
> Hello,
>
> It appears that in the web.xml xe have to specify that :
>          <servlet>
>           <servlet-name>org.apache.cocoon.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>
>          </servlet>
>
> But in this case as soon as you want to process xml/xsl you have to put a
> copy of the cocoon.properties in the same folder.
>
> SO is their a way to set an absolute path to the cocoon.properties file
such
> asd:\tomcat\conf\cocoon.properties.

This is a *feature* of Servlet 2.2 for completely pluggable webapps.  Any
properties files and such must be relative _within_ the its context.  In
other words, the path
<param-value>../../conf/cocoon.properties</param-value>
should NOT work (because you are leaving your context).  Cocoon, respecting
this feature, only allows absolute paths if you are using a pre-Servlet 2.2
engine.  You do have the option to allow you to place the properties in a
non-readable folder like this:

<param-value>WEB-INF/cocoon.properties</param-value>

All will be well with the world, except for one thing: not all servlet
vendors
are equal and there are at least one or two that don't allow anything other
than your web.xml, /classes, and /lib files or directories within that
particular directory.

---------------------------------------------------------------------
To unsubscribe, e-mail: cocoon-users-unsubscribe@xml.apache.org
For additional commands, e-mail: cocoon-users-help@xml.apache.org

_______________________________________________
cocoon-users mailing list
cocoon-users@lists.real-time.com
https://mailman.real-time.com/mailman/listinfo/cocoon-users