You are viewing a plain text version of this content. The canonical link for it is here.
Posted to users@tomcat.apache.org by Jordan <jo...@home.com> on 2001/10/11 05:10:28 UTC

Problems with Tomcat 4.0 and Cocoon 1.8.2

Hi All,
    I'm only posting this to this list because I just upgraded from Tomcat
3.2 to Tomcat 4.0, and I haven't changed anything to do with Cocoon.
Alright, that's a lie, I've been working on this problem for quite some time
and have reinstalled Cocoon just to make sure I didn't have anything bad in
my previous setup.

    So, here's the problem. I cannot read the cocoon.properties file, so
Cocoon will not work. In the web.xml file for the cocoon web application I
have
  <init-param>
   <param-name>properties</param-name>
   <param-value>WEB-INF/cocoon.properties</param-value>
  </init-param>

I have also tried pretty much every single value for param-value that would
lead to the cocoon.properties file, which is in the WEB-INF directory, the
same place as the web.xml is. I have tried the full path name, and every
subset of that. Whenever I try to bring up an xml file however, I get

Unable to open resource: WEB-INF/cocoon.properties
java.io.FileNotFoundException
 at
org.apache.naming.resources.DirContextURLConnection.getInputStream(Unknown
Source)
 at org.apache.cocoon.Cocoon.init(Cocoon.java:131)
 at org.apache.catalina.core.StandardWrapper.load(Unknown Source)
 at org.apache.catalina.core.StandardWrapper.allocate(Unknown Source)
 at org.apache.catalina.core.StandardWrapperValve.invoke(Unknown Source)
...

Although with any value other than WEB-INF/cocoon.properties, I get:
Unable to open resource: cocoon.properties
java.lang.NullPointerException
 at org.apache.cocoon.Cocoon.init(Cocoon.java:131)
 at org.apache.catalina.core.StandardWrapper.load(Unknown Source)
 at org.apache.catalina.core.StandardWrapper.allocate(Unknown Source)
 at org.apache.catalina.core.StandardWrapperValve.invoke(Unknown Source)
 at org.apache.catalina.core.StandardPipeline.invokeNext(Unknown Source)
 at org.apache.catalina.core.StandardPipeline.invoke(Unknown Source)
 at org.apache.catalina.core.ContainerBase.invoke(Unknown Source)
...

Note the NullPointerException as opposed to the FileNotFoundException. So I
believe that the WEB-INF/cocoon.properties value is correct, as it gives a
different response from every other value.

I have been pulling my hair out trying to figure out what is going on. I had
no problem setting up Cocoon with Tomcat 3.2. I'm posting this in the hopes
that someone has some idea what could be going on. Here's the part in my
server.xml for the cocoon web-app.
        <Context path="/cocoon" docBase="cocoon" debug="0" reloadable="true"
>
When I go to the /cocoon directory, I get the directory listing and it seems
to be working fine, it's only when I ask it to parse an xml file does it go
whacky.

Thanks in advance,
Jordan Frank
jordanf@home.com