Hi,
We installed Cocoon 2 under woody this afternoon. We encoutered .. several troubles. So this is our "report" :)
- www-data group : it's a good idea to use a user which is in the www-data group because all the tomcat files are only readable for this group.
- install j2sdk1.3 : with the blackdown packages - install cocoon2
* I haven't understand the /usr/share/doc/cocoon2/README.Debian directly .. the cocoon2-examples is necessary to try the url http://localhost:8081/cocoon2/ :)
- install cocoon2-examples
To be more clear (I hope), we'll write COCOON_HOME for /var/lib/tomcat/webapps/cocoon2.
* The javax.xml.transform.TransformerConfigurationException class from xalan isn't found .. because apt-get didn't install the libxalan2-java. The COCOON_HOME/WEB-INF/lib/xalan2.jar link is broken.
- install libxalan2-java
* Coocon could find the org.apache.xerces.jaxp.SAXParserFactoryImpl class from xerces .. because xerces.jar isn't in the classpath.
- add a link to /usr/share/java/xerces.jar into COCOON_HOME/WEB-INF/lib
* Cocoon throws an exception about the database. It can't read the file ${install.war}/cocoon/WEB-INF/db/cocoondb.properties.
- modify the /usr/share/tomcat/conf/tomcat.policy to be able to read the COCOON_HOME directory (we don't know if it's really important).
- modify the COCOON_HOME/cocoon.xconf and COCOON_HOME/docs/samples/xsp/esql.xsp to remplace the install.war variable with the full name and correct cocoon/ into cocoon2/. It's "bad" but it's work.
* the "next not found" class is
org.apache.fop.messaging.MessageListener. But the lib-fop-java package
exists but is not available (?). We use directly
the http://ftp.fr.debian.org/debian/pool/contrib/f/fop/libfop-java_0.20.3-1_all.deb.
- install libfop-java_0.20.3-1_all.deb - install liblogkit-java
* the avalon Loggable class isn't found
- install libavalon-framework-java and add a link to /usr/share/java/avalon-framework.jar into COCOON_HOME/WEB-INF/lib
Now the major part of the examples works .. but we still have few problems :
* there is no X display in the server, so we need to install the libpja-java and patch the tomcat script like we have already done on an other server. It doesn't seem to be possible to modify the JVM options and the classpath simply with the /etc/default/tomcat. * the logkit.jar is installed twice : with cocoon2-examples and liblogkit-java .. but the two jars aren't compatible. * there still have exceptions in some examples ...
We hope that we hadn't make to many mistakes :) and that our notes could be usefull.
Alban & Stephane