Reinhard Pötz wrote:
Hugh Sparks wrote:
Many thanks to Reinhard Pötz!
To make this work with the current trunk, a few simple changes are
needed:
pom.xml: Add a dependency for cocoon-servlet-service-components
<parent>
<groupId>org.apache.cocoon</groupId>
<artifactId>cocoon-core-modules</artifactId>
<version>6-SNAPSHOT</version>
</parent>
<dependency>
<groupId>org.apache.cocoon</groupId>
<artifactId>cocoon-core</artifactId>
</dependency>
<dependency>
<groupId>org.apache.cocoon</groupId>
<artifactId>cocoon-template-impl</artifactId>
</dependency>
<dependency>
<groupId>org.apache.cocoon</groupId>
<artifactId>cocoon-servlet-service-components</artifactId>
</dependency>
web.xml: Add a listener for BlockDeploymentServletContextListener
<listener>
<description>Declare a context listener that installs all
blocks.</description>
<listener-class>org.apache.cocoon.blockdeployment.BlockDeploymentServletContextListener</listener-class>
</listener>
I don't understand why these components should be required if they
aren't used, but this gets the webapp going without errors.
If you're right, this has to be fixed before the next release of Cocoon
2.2.
I've fixed this in trunk (hopefully without introducing any other
incompatibilities). Now you can use the lastest snapshot dependencies:
<dependencies>
<dependency>
<groupId>org.apache.cocoon</groupId>
<artifactId>cocoon-core</artifactId>
<version>2.2.1-SNAPSHOT</version>
</dependency>
<dependency>
<groupId>org.apache.cocoon</groupId>
<artifactId>cocoon-template-impl</artifactId>
<version>1.2.0-SNAPSHOT</version>
</dependency>
<dependency>
<groupId>javax.servlet</groupId>
<artifactId>servlet-api</artifactId>
<version>2.4</version>
<scope>provided</scope>
</dependency>
</dependencies>
Can you test it again please?
--
Reinhard Pötz Managing Director, {Indoqa} GmbH
http://www.indoqa.com/en/people/reinhard.poetz/
Member of the Apache Software Foundation
Apache Cocoon Committer, PMC member [EMAIL PROTECTED]
________________________________________________________________________
---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]