See also Updating Cocoon page on Cocoon site – Vadim
We could develop this page as two parts, "changes" and "migration tips" and put it back into that page in the official documentation. The "updating" page appears to be somewhat incomplete.--StevenCummings
If anybody likes, they can write over or modify what I put here. I don't expect this to be definitive or exhaustive, but I thought I'd write about my experiences in migrating a couple of working applications that I have from 2.0.4 to 2.1-dev. Originally, I sought out to create "CreateMinimalWebapp2.1dev", but decided that I should create this instead. If this page gets far enough along, perhaps it will contribute points to that page.
I did my testing under Tomcat 4.1.24 and Jetty 4.2.9.
Main Migration Issues:
sunshine-login
action is now auth-login
sunshine-logout
action is now auth-logout
sunshine-auth
action is now auth-protect
sunshine
transformer is now session
http://cocoon.apache.org/sunshine/1.0
becomes http://apache.org/cocoon/session/1.0
"request:"
. Now you just have to surround that with braces as in "{request-param:username}"
. This is basically the standard usage of input modules now. The session manager probably doesn't check for the prefix anymore as this scheme can be used anywhere in the sitemap.org.apache.avalon.framework.logger.AbstractLoggable
is replaced by org.apache.avalon.framework.logger.AbstractLogEnabled
org.apache.avalon.excalibur.xml.Parser
is replaced by org.apache.excalibur.xml.sax.SAXParser
SAXParser
does not extend the Component
interface, that you must cast it as a Component
when issuing it to the release
method of your component manager. Of course you just use the new interface to cast the result of lookup.
Does anybody else have any points to make here? This is really just a very shallow starting point. I welcome all who undertook the 2.0.X to 2.1-dev upgrade process to make notes here and help to build a definitive document. It seems that the structure of cocoon itself and the build process (build.xml) have changed so radically that we should collect these points to help out newer cocoon users who want to give the experimental features a shot.
Also: