JBoss Enterprise Application Platform provides an extensive Java EE-based application server to which we can deploy and manage our applications. Often, this can be a simple as deploying a provided WAR or EAR file to our configured server. In this lab, we’ll specifically explore how to deploy a simple WAR file with the JBoss Management Console.
Learning Objectives
Successfully complete this lab by achieving the following learning objectives:
- Access the console and Download the WAR file.
- Download the provided
kitchensink.war
file, either from the GitHub link or via the server (it’s provided at/home/cloud_user/kitchensink.war
). - Access the console at
PUBLICIP:9990
, using theadmin
username andpinehead
password.
- Download the provided
- Deploy the Application
Click Start under Deployments.
Click the + (plus sign) to the upper right of the left menu, then select Upload Deployment.
Select the downloaded
kitchensink.war
file, then click Next.Provide the application with both a deployment name and a runtime name. This can be kept as a default if you are happy with the name of the
war
file. Click Finish, then view the deployment.Navigate to
PUBLICIP:8080/kitchensink
to confirm the application has been deployed. Note that we can also receive this URL from theContext Root
attribute in our deployment information.
- Disable/Undeploy the Application
Once you know the application is working, you can either disable it or undeploy it entirely. To do this from the console, you can either:
- Click Disable
- Remove it by selecting the arrow button next to the deployment name (
kitchensink.war
) and selecting Undeploy.
Notice how disabling it leaves it in the deployment list, but undeploying the application removes it entirely.