cocoon-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Reinhard Pötz <>
Subject Re: cocoon3 block deployment
Date Tue, 10 Nov 2009 13:48:39 GMT
Jos Snellings wrote:
> Hi,
> When trying to deploy a cocoon-3 block to Tomcat, it does not seem to
> find it: 
> java.lang.RuntimeException: There is no block 'YourBlockName' deployed.
> The available blocks are {}.
> I must say that the documentation on this issue is a little bit terse...
> (
>>>From what I understand: 
> - pack block in a .jar file
> - add a line to the manifest file META-INF/MANIFEST.MF :
>   Cocoon-Block-Name: YourBlockName
>   (yes it ends with a newline)
> - place .jar in lib directory of webapp
> Can anybody shed some light on this issue, please?

In order to use a Cocoon *block*, you also have to install the
BlockDeploymentServletContextListener in your web.xml:


If the block provides servlet-services, you have to use the
DispatcherServlet of the servlet-service-framework which collects and
mounts all servlets that are registered as Spring beans.

  <description>Cocoon blocks dispatcher</description>


And of course you have to properly setup Spring:

Declare Spring context listener which sets up the Spring Application
Context containing all Cocoon components (and user defined beans as

Declare Spring request listener which sets up the required
RequestAttributes to support Springs and Cocoon custom bean scopes
like the request scope or the session scope.

Does this answer your question?

Reinhard Pötz                           Managing Director, {Indoqa} GmbH

Member of the Apache Software Foundation
Apache Cocoon Committer, PMC member        

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

View raw message