Versions Compared

Key

  • This line was added.
  • This line was removed.
  • Formatting was changed.
Comment: Add filter for org.apache.commons.lang.

...

The plan configures a security realm hudson-realm as well as /hudson as a context for hudson.war. The plan filters out org.apache.commons.lang. package that comes with Apache Commons Lang 2.0 in Geronimo 2.0.2. As of Hudson 1.160 Apache Commons Lang 2.1 is required and already included in the war.

Code Block
xml
xml
borderStylesolid
titlehudson-geronimo-webplan.xml
<?xml version="1.0" encoding="UTF-8"?>
<web-app xmlns="http://geronimo.apache.org/xml/ns/j2ee/web-2.0">
  <environment xmlns="http://geronimo.apache.org/xml/ns/deployment-1.2">
    <moduleId>
      <groupId>hudson</groupId>
      <artifactId>hudson</artifactId>
      <version>1.153<166</version>
      <type>war</type>
    </moduleId>
    <dependencies>
      <dependency>
        <groupId>org.apache.geronimo.configs</groupId>
        <artifactId>j2ee-security</artifactId>
        <type>car</type>
      </dependency>
    </dependencies>
    <hidden-classes>
      <filter>org.apache.commons.lang.</filter>
    </hidden-classes>
  </environment>

  <context-root>/hudson</context-root>

  <security-realm-name>hudson-realm</security-realm-name>
  <security>
    <default-principal realm-name="hudson-realm">
      <principal name="anonymous" class="org.apache.geronimo.security.realm.providers.GeronimoUserPrincipal" />
    </default-principal>
    <role-mappings>
      <role role-name="admin">
        <realm realm-name="hudson-realm">
          <principal name="AdminGroup" class="org.apache.geronimo.security.realm.providers.GeronimoGroupPrincipal" />
        </realm>
        <principal name="system" class="org.apache.geronimo.security.realm.providers.GeronimoUserPrincipal" />
      </role>
    </role-mappings>
  </security>
</web-app>

Starting Geronimo

Type it in on the command lineRun Geronimo with ./bin/geronimo.sh run -vv command.

No Format
jlaskowski@dev /cygdrive/c/geronimo-jetty6-jee5-2.0.2
$ ./bin/geronimo.sh run -vv
Using GERONIMO_BASE:   c:\geronimo-jetty6-jee5-2.0.2
Using GERONIMO_HOME:   c:\geronimo-jetty6-jee5-2.0.2
Using GERONIMO_TMPDIR: c:\geronimo-jetty6-jee5-2.0.2\var\temp
Using JRE_HOME:        c:\apps\java5\jre
...
Geronimo startup complete

...

No Format
jlaskowski@dev /cygdrive/c/geronimo-jetty6-jee5-2.0.2
$ ./bin/deploy.sh -u system -p manager deploy hudson.war hudson-geronimo-plan.xml
Using GERONIMO_BASE:   c:\geronimo-jetty6-jee5-2.0.2
Using GERONIMO_HOME:   c:\geronimo-jetty6-jee5-2.0.2
Using GERONIMO_TMPDIR: c:\geronimo-jetty6-jee5-2.0.2\var\temp
Using JRE_HOME:        c:\apps\java5\jre
    Deployed hudson/hudson/1.153166/war @ /hudson

The Geronimo console shows deployment progress as follows:

No Format
hudson home directory: C:\Documents and Settings\jlaskowski\.hudson
20072008-1101-0805 0818:5323:1208 hudson.TcpSlaveAgentListener <init>
INFO: JNLP slave agent listener started on TCP port 34481545
20072008-1101-0805 0818:5323:1209 hudson.model.Hudson load
INFO: Took 31890 ms to load
18:23:13,515 INFO  [StaticWebApplicationContext] Refreshing org.springframework.web.context.support.StaticWebApplicationContext@2eec5a: 
display name [Root WebApplicationContext]; startup date [Sat Jan 05 18:23:13 CET 2008]; root of context hierarchy
18:23:13,515 INFO  [StaticWebApplicationContext] Bean factory for application context [org.springframework.web.context.support.StaticWebApplicationContext@2eec5a]: 
org.springframework.beans.factory.support.DefaultListableBeanFactory@12333fb
18:23:13,546 INFO  [DefaultListableBeanFactory] Pre-instantiating singletons in org.springframework.beans.factory.support.DefaultListableBeanFactory@12333fb: 
defining beans [filter,legacy]; root of factory hierarchy

Running the webapp

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

...