Roller + Derby + OS X + Tomcat 5.5 + Java 5.0
December 28th, 2005 by HenJust spent an interesting couple of hours getting a development version of Roller up and running on OS X. The process went something like:
- Check Roller out of SVN. Run ‘ant all’.
- Download Derby. Play with its network demo a bit, then leave the server part turned on.
- Download Squirrel SQL Client. Point it to the derbyclient.jar and connect.
- cat the createdb.sql script in the build/roller/WEB-INF/dbscripts/derby/ directory into the ij tool.
- Download Tomcat 5.5.x. Try to run, discover that I’m on Java 1.4.
- Find the Apple 5.0-rc3 release. Download and install.
- Set the JAVA_HOME manually to the 5.0 version and hack the PATH as I don’t want to push the whole machine onto 5.0 quite yet (or at least not while Java programs (Squirrel, Derby) are still open).
- Turn on Tomcat. Goto localhost:8080 in Safari.
- Copy build/roller in svn checkout to webapps/roller in Tomcat.
- Copy roller.xml file from production blog, try to run, everything blows up.
- Add derbyclient.jar to Tomcat common/lib.
- Spend far too long trying to figure out what’s wrong, before reading the install instructons and realising I’d forgotten that Tomcat 5.5.x changed the way database stuff is handled. Modify roller.xml.
- Start, crash, grab common-dbcp, collections and pool. Restart, crash. Modify webapps/roller/WEB-INF/classes/hibernate.cfg.xml to use the Derby dialect.
- Start. Works. Blog test crap.
Fun

December 29th, 2005 at 9:54 am
Tomcat 5.5 will run on JDK 1.4: grab the JDK 1.4 compatibility package download from http://tomcat.apache.org/download-55.cgi#5.5.12. It’s essentially just one JAR that goes into Tomcat’s lib.
December 31st, 2005 at 11:05 pm
Am I the only one who thinks the combination of Roller + Derby is just damn funny?