6.5. Running the Spring Archetype Project

Use the following procedures to run the Spring Archetype project from the command line interface and Red Hat JBoss Developer Studio respectively.

Procedure 6.3. Run the Example from the Command Line

  1. In the example directory, build the example with Maven.
    cd $EXAMPLE_HOME
    mvn clean package
    
  2. Copy the example into your JBoss Enterprise Application Platform instance.
    cp target/jboss-springmvc-webapp.war $EAP_HOME/standalone/deployments
    
  3. Run the JBoss Enterprise Application Platform instance.
    $EAP_HOME/bin/standalone.sh
    
  4. After you have deployed the example, you can access it at http://localhost:8080/jboss-springmvc-webapp.

Procedure 6.4. Run the example from JBoss Developer Studio

  1. In the Project Explorer view, right-click the Spring Archetype project and click Run AsRun on Server. The Run on Server window opens.
  2. From the Select the server type list, select a JBoss Enterprise Application Platform 6 instance.
  3. Click Finish.
  4. After the example is deployed, you can accessed it at http://localhost:8080/jboss-springmvc-webapp.