20 Mar 2012

Apache fun: Cocoon 2.1.X and Tomcat 7

Written by ilgrosso

Will you ever think to deploy a webapp based on the most diffuse and popular Apache Cocoon version (2.1) onto the most recent Apache Tomcat?

Well, despite of the fact that the former reached its widest spread when the the latter's major version was 3, 4 or 5 at most, it is actually possible. Only, completely undocumented :-)

Pretty easy, after all: just remove or comment this


at the end of $CATALINA_HOME/conf/web.xml

This will let Cocoon handle all user requests ending by '/', restoring Cocoon's default sitemap behaviour.

A nice side-effect of running Cocoon 2.1.X with a recent JDK and latest Tomcat is that you can safely forget all that endorsed crap.


« Return