7.2 Form Tags WAR

We begin with a standard WAR deployment.

[Note]Note
The SpringSource dm Server supports the standard Java EE WAR packaging and deployment format as a first-class citizen, and there are many benefits to deploying a standard WAR file on the dm Server including, but not limited to: tooling support, runtime error diagnostics, FFDC (i.e., first failure data capture), etc. In addition, support for standard WAR deployment provides an easy on-ramp for trying out the SpringSource dm Server with existing web applications.

The following screen shot displays the directory structure of the Form Tags application using the standard WAR format. As you can see, there is no deviation from the standard structure and layout, and as you would expect, all of the web application's third-party dependencies (e.g., Spring. Commons Logging, etc.) are packaged as JARs in WEB-INF/lib.

To deploy this application, simply copy dist/formtags-war-1.0.0.*.war to the SERVER_HOME/pickup directory for hot deployment.

You should then see the dm Server produce console output similar to the following:

[Note]Note

The console output has been reformatted to fit this document.

[2008-05-13 13:19:30.972] fs-watcher
    <SPSC1000I> Creating web application '/formtags-war-1.0.0.RELEASE'.
[2008-05-13 13:19:31.045] async-delivery-thread-1
    <SPSC1001I> Starting web application '/formtags-war-1.0.0.RELEASE'.
[2008-05-13 13:19:31.697] fs-watcher
    <SPDE0010I> Deployment of 'formtags-war-1.0.0.RELEASE.war' version '0' completed.

Navigate to http://localhost:8080/ plus the web application context path, which in the above case is formtags-war-1.0.0.RELEASE. Thus navigating to http://localhost:8080/formtags-war-1.0.0.RELEASE should render the sample application's welcome page, as displayed in the screen shot below.

[Tip]Tip
For WARs, the default web context path is the name of the WAR file without the .war extension. You can optionally specify a context path using the Web-ContextPath bundle manifest header, which will be described in further detail later.