New Cocoon build - update
The successful build didn't work with the mariage webapp due to some missing libs. The error referred to TextGenerator. Some digging reveals that it (TextGenerator) relies on the chaperon block. After adjusting the build to include chaperon I ran it again.
When the build is run under Java 1.6 it fails with a reference to the database block [<block-compile dir="src/blocks/databases" package="org/apache/cocoon" name="databases"/>]; the build works under Java 1.5.
The failed 1.6 build fails with this error:
cocoon-block-databases-compile:
Created dir: /home/gregster/workspace/cocoon-src/cocoon-2.1.10/build/cocoon/blocks/databases/mocks
Compiling 6 source files to /home/gregster/workspace/cocoon-src/cocoon-2.1.10/build/cocoon/blocks/databases/mocks
Compiling 45 source files to /home/gregster/workspace/cocoon-src/cocoon-2.1.10/build/cocoon/blocks/databases/dest
/home/gregster/workspace/cocoon-src/cocoon-2.1.10/src/blocks/databases/java/org/apache/cocoon/databases/ibatis/ExcaliburDataSourceFactory.java:82: org.apache.cocoon.databases.ibatis.ExcaliburDataSourceFactory.DataSourceWrapper is not abstract and does not override abstract method isWrapperFor(java.lang.Class<?>) in java.sql.Wrapper
protected static final class DataSourceWrapper implements DataSource {
The error is the result of a jvm issue in the file src/blocks/databases/java/org/apache/cocoon/databases/ibatis/ExcaliburDataSourceFactory.java. The problem has been fixed in the development snapshot by adding the following lines to the .java file:
/**
* Required by JDK1.6.
*/
public Object unwrap(Class iface) throws SQLException {
return null;
}
/**
* Required by JDK1.6.
*/
public boolean isWrapperFor(Class iface) throws SQLException {
return false;
}
I added those lines and the build is successful under Java 1.6. Huzzah!
Now to try the mariage app.