You are viewing a plain text version of this content. The canonical link for it is here.
Posted to users@tomcat.apache.org by Christian Parpart <tr...@gmx.de> on 2000/12/17 05:12:23 UTC

can't locate path of properties file, what's wrong.

Hi

I installed Cocoon-1.8.1-dev on Tomcat/4.0-m5 (standalone mode) and
recognized that everything I do, Cocoon is unable to locate its 
cocoon.properties.

My configuration is as below:

[conf/web.xml]
------------------------------
  ...
  <!-- The XML page compiler and execution servlet -->
  <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>
  ...
  <servlet-mapping>
    <servlet-name>org.apache.cocoon.Cocoon</servlet-name>
    <url-pattern>*.xml</url-pattern>
  </servlet-mapping>
  ...
------------------------------

Cocoon works fine, unless I put it into an webapp, but then I 
can only access .xml file by an sub directory like /cocoon
and deeper.
But I want to have cocoon served .xml files even if they are 
in any other sub directory (e.g. /index.xml, /about/project.xml).

What's wrong and what can I do???

Regards,
Christian Parpart <ma...@surakware.com>
SurakWare
http://www.surakware.com