2010-08-02

CruiseControl with Maven2 & SVN on Ubuntu

CruiseControl is a great tool to automate builds; I use SVN and Maven2, so these are the steps I took to get it working. Anywhere you see HOSTNAME, replace it with the hostname of the machine on which CruiseControl is running; anywhere you see PROJECT1, replace it with the name of a Maven2 project.
  1. Download the binary distribution from the CruiseControl download page.
  2. Extract it to /opt. This creates the install directory, /opt/cruisecontrol-VERSION, which I'll call INSTALL.
  3. Add a new user under which CruiseControl will be run; pick whatever username you want, and keep it in mind.
    sudo adduser ccmaster

2010-01-25

GWT with RPCs on Tomcat 6

The Tomcat Security Manager has bitten me again.
I'm liking GWT development with the Eclipse plugin. I ran through the StockWatcher tutorial, added RPCs and it was working great in hosted mode, but when I deployed it on Tomcat 6 on Ubuntu 9.04, RPCs failed with the following:
The call failed on the server; see server log for details

2010-01-18

New GWT Projects in Eclipse

I had a bit of trouble getting a GWT project setup in Eclipse so that I could use a generated Ant build.xml for creating war packages but also utilize the fancy GWT Eclipse plugin features. The New Web Application Project wizard sets up the GWT project and creates some handy starter app code, but there's no option within the Google context menu to simply create a war. You can deploy directly to Google App Engine which is pretty cool, but I prefer to be able to deploy and run my webapps from my own server so that I know they can be deployed on any Tomcat installation.