If you want to build the template block, you have to build Cocoon with JDK 1.4+. Make sure to enable the block in your local.blocks.properties file before building.