Written by
  • email
  • twitter
  • linkedin
  • linkedin

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 :-)

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


<welcome-file-list>
  <welcome-file>index.html</welcome-file>
  <welcome-file>index.htm</welcome-file>
  <welcome-file>index.jsp</welcome-file>
</welcome-file-list>

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.

2 VOTIYes, Excellent!Yes, Excellent!
Ti è stato utile questo articolo?
From Tirasa's Blog
The place where we share what we do, learn and discover day by day.
Go to blog >