HomeIndex > Apache Geronimo v3.0 Samples > Running Hudson on Geronimo v3.0

This short document is about the steps to deploy Hudson onto Apache Geronimo v3.0. Hudson is a easy-to-use integration system. You can go and read the details on its web site. No need to duplicate their stuff here.

The plan

The plan configures a security realm hudson-realm as well as /hudson as a context for hudson.war.

hudson-realm.xml

It appears that Hudson uses a customized version of Apache JEXL made specifically for itself, so filtering the package from the web classloader is required. Note that <hidden-classes/> tag is not supported in Geronimo 3.0 any more, you can use <import-package>!org.apache.commons.lang.*</import-package> to keep org.apache.common.lang.* package in Geronimo server repository from loading into the classloader.

hudson-geronimo-plan.xml

The plan filters out org.apache.commons package that comes with Apache Commons Lang 2.5 in Geronimo 3.0. As of Hudson 2.0.0, Apache Commons Lang 2.4 is required and is already included in the war file.

Starting Geronimo

Run Geronimo with ./bin/geronimo.sh run -vv command.

jeffchi@jeffchi-laptop:~/Geronimo/3.0$ ./bin/startup
Using GERONIMO_HOME:   /home/jeffchi/Geronimo/3.0
Using GERONIMO_TMPDIR: var/temp
Using JRE_HOME:        /opt/sun/jdk6_22/jre
Using GERONIMO_OUT:    /home/jeffchi/Geronimo/3.0/var/log/geronimo.out

Geronimo started in background. PID: 13075

Deploying hudson-realm

jeffchi@jeffchi-laptop:~/Geronimo/3.0
$ ./bin/deploy.sh -u system -p manager deploy hudson-realm.xml
Using GERONIMO_HOME:   /home/jeffchi/Geronimo/3.0
Using GERONIMO_TMPDIR: var/temp
Using JRE_HOME:        /opt/sun/jdk6_22/jre
    Deployed console.realm/hudson-realm/1.0/car 

Deploying hudson.war

Download hudson.war from its releases web page.

You can deploy hudson.war from the web console of Geronimo, but there's another way to do the same - executing deploy command from the command line interface.

jeffchi@jeffchi-laptop:~/Geronimo/3.0
$ ./bin/deploy.sh -u system -p manager deploy hudson.war hudson-geronimo-plan.xml
Using GERONIMO_HOME:   /home/jeffchi/Geronimo/3.0
Using GERONIMO_TMPDIR: var/temp
Using JRE_HOME:        /opt/sun/jdk6_22/jre
    Deployed hudson/hudson/2.0.0/war @ /hudson

Running the webapp

Point the browser of your choice to http://localhost:8080/hudson. You should see hudson's welcome page.