You are viewing a plain text version of this content. The canonical link for it is here.
Posted to users@cocoon.apache.org by Anthony Kalm <ak...@uen.org> on 2000/05/19 17:25:29 UTC
cocoon.properties question
Well, I've read several different opinions on where to put the
cocoon.properties file and when I move it around to the various
"suggested" places I get different Java exceptions thrown each time. So
my question is:
In Chp 9 of Brett McLaughlin's book Java and XML he suggests putting the
cocoon.properties in the /build/tomcat/conf directory and adding the
following code to the web.xml file also contained in the
/build/tomcat/conf directory :
<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>
/fs_path/build/tomcat/conf/cocoon.properties
</param-value>
</init-param>
</servlet>
<servlet-mapping>
<servlet-name>
org.apache.cocoon.Cocoon
</servlet-name>
<url-pattern>
*.xml
</url-pattern>
</servlet-mapping>
One suggestion is to put the URI path instead of the file system path in
the web.xml file. Is this correct? If so what does a properly
formatted URI path look like (sorry, kind of new to this)?
Thanks for any suggestions.