Maintenance

  • Home
  • Log in
  • « eXist - Signing jars and so forth
  • New cocoon »

New Cocoon build - update

Posted by gregster on 26 Mar 2007 in Announcements

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.

This entry was posted by Greg and filed under Announcements.

Maintenance

This blog is the location for all work involving software and hardware maintenance, updates, installs, etc., both routine and urgent.
  • Home
  • Recently
  • Archives
  • Categories

Search

Categories

  • All
  • Announcements
  • Hit by a bus
  • Labs
    • Activity log
    • Documentation
  • Notes
  • R & D
    • Activity log
    • Documentation
  • Servers
    • Activity log
    • Documentation
  • Tasks

All blogs

  • Academic
  • AdaptiveDB
  • Admin
  • Announcements
  • CanMys
  • Cascade
  • CGWP
  • ColDesp
  • Depts
  • DVPP
  • Endings
  • HCMC Blogs
  • Landscapes
  • LEMDO
  • Linguistics
  • Maint
  • LondonMap
  • Mariage
  • MoM
  • Moses
  • Pro-D
  • Projects
  • ScanCan
  • HumsSites
  • Wendat

This collection ©2026 by admin • Help • Multi-blog engine