Getting Started - Geronimo

Using WADI with Jetty in Geronimo

To enable WADI for your webapplication, create a Geronimo web descriptor file called

WEB-INF/geronimo-web.xml
in your war and include the following contents:

	  <web-app xmlns="http://geronimo.apache.org/xml/ns/j2ee/web/jetty-1.0"
	  configId="YOUR-CONFIG-ID">

	  <context-root>/YOUR-CONTEXT</context-root>
	  <context-priority-classloader>false</context-priority-classloader>
	  <session-manager>org.codehaus.wadi.jetty5.JettyManager</session-manager>
	  </web-app>
        

A full description of each element of this descriptor can be found at the Geronimo "Deployment" wiki entry. In summary, you should replace:

  • YOUR-CONFIG-ID with a unique identifier for your webapp. It is preferred that this formed by concatenating the "/" separated elements of your organization's domain name and the name of your webapp eg
    com/acme/Foo
  • YOUR-CONTEXT with the path at which you want your webapp to be available

The line highlighted in red above is the line which will configure WADI for your webapplication, so you should include it as-is in your geronimo-web.xml file

Now, follow the instructions at Geronimo "Deployment" to deploy your WADI-enabled webapplication in Geronimo.

TODO - a full list of dependencies for WEB-INF/lib or as <dependency> entries in geronimo-web.xml