Scritto da
  • 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.

0 VOTINot rated yetNot rated yet
Ti è stato utile questo articolo?
Dal Blog di Tirasa
Quello che facciamo, studiamo e pensiamo tutti i giorni lo condividiamo qui.
Vai al blog >