cocoon-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Jeff Ramsdale" <>
Subject Trouble integrating a servlet
Date Wed, 10 Sep 2003 19:16:54 GMT
I'm following the instructions at and I receive a
Resource not found error:

org.apache.cocoon.ResourceNotFoundException: Could not get resource
file:/F:/Cocoon/webapp/Amazon/AmazonServlet doesn't exist.

My servlet spits out HTML that I mean to convert to XHTML to send through my

Here's my pipeline snippet from my Amazon subsitemap:

      <map:pipeline match="AmazonService">
        <map:generate src="AmazonServlet" type="html" />
        <map:serialize />

Here's my web.xml snippet:

        <!-- name used to refer to servlet -->
        <!-- fully-specified class name of servlet -->

        <!-- the URL path at which the servlet is mounted -->

The error shows that my page request is properly mapped to the
AmazonServlet. I've dropped the .jar into my cocoon-home/WEB-INF/lib. The
servlet is not part of a package for this simple example, hence the simple
servlet-class. Of course I've restarted Jetty before testing.

Question... The error shows that Cocoon is looking for the AmazonServlet in
a particular directory. I do have a copy of the class there, but it's also
packaged in a .jar in the lib directory. The Wiki page says it should be
looking for the file in the .jar, so why the error message?

Any hints? Thanks!


To unsubscribe, e-mail:
For additional commands, e-mail:

View raw message