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
- In the example directory, build the example with Maven.
cd $EXAMPLE_HOME mvn clean package
- Copy the example into your JBoss Enterprise Application Platform instance.
cp target/jboss-springmvc-webapp.war $EAP_HOME/standalone/deployments
- Run the JBoss Enterprise Application Platform instance.
$EAP_HOME/bin/standalone.sh
- 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
- In the view, right-click the Spring Archetype project and click →. The window opens.
- From the list, select a JBoss Enterprise Application Platform 6 instance.
- Click .
- After the example is deployed, you can accessed it at http://localhost:8080/jboss-springmvc-webapp.