Skip to main content
Version: Deploy 23.1

Deploy an app on JBoss EAP or AS/WildFly

This tutorial describes how to deploy an application on JBoss EAP 6 or JBoss AS/WildFly 7.1+.

It assumes you have the JBoss Domain plugin installed.

Step 1 - Connect to your infrastructure

Connect Deploy to the host on which JBoss is running. Follow the instructions for the host's operating system and the connection protocol that you want Deploy to use. For more information, see :

Step 2 - Add your middleware

When Deploy can communicate with your host, it will scan for middleware containers and automatically add them to the Repository for you. For more information, see:

Add containers in a JBoss Domain

To add containers in a JBoss Domain:

  1. Hover over the host that you created, click Menu button, and select Discover > jbossdm > Domain.

note

If you do not see the jbossdm option in the menu, verify that the JBoss Domain plugin is installed.

  1. In the Name field, enter a name for the domain.

  2. In the Home field, enter the JBoss home directory. For example, /opt/jbossdm-6eap/.

  3. In the Administrative username and Administrative password fields, enter the user name and password used to log in to your JBoss administration.

  4. Click Next. A plan appears with the steps that Deploy will execute to discover the middleware on the host.

    JBoss EAP Domain discovery plan

  5. Click Execute. Deploy executes the plan. If the plan succeeds, the steps state will be DONE.

  6. Click Next to see the middleware containers that Deploy discovered. You can click each item to view its properties.

    JBoss EAP Domain discovered items

  7. Click Save. Deploy saves the items in the Repository.

Add a stand-alone JBoss server

To add a stand-alone JBoss server:

  1. Hover over the host that you created, click Menu button, and select Discover > jbossdm > StandaloneServer.

  2. In the Name field, enter a name for the server.

  3. In the Home field, enter the JBoss home directory. For example, /opt/jbossdm7/.

  4. In the Administrative username and Administrative password fields, enter the user name and password used to log in to JBoss Native Administration.

  5. Click Next. A plan appears with the steps that Deploy will execute to discover the middleware on the host.

    JBoss EAP Standalone discovery plan

  6. Click Execute. Deploy executes the plan. If the plan succeeds, the steps state will be DONE.

  7. Click Next to see the middleware containers that Deploy discovered. You can click each item to view its properties.

    JBoss EAP Standalone discovered items

  8. Click Save. Deploy saves the items in the Repository.

Step 3 - Create an environment

An environment is a grouping of infrastructure and middleware items such as hosts, servers, clusters, etc. An environment is used as the target of a deployment, enabling you to map deployables to members of the environment.

To create an environment where you can deploy a sample application, follow the procedure described in Create an environment in Deploy .

To deploy to a JBoss Domain, you must add a jbossdm.ServerGroup to the environment. To deploy to a stand-alone JBoss server, you must add the jbossdm.StandaloneServer to the environment.

Step 4 - Import the sample application

Deploy includes two versions of a sample application called PetClinic-ear, that is already packaged in the Deploy deployment package format (DAR).

To import the PetClinic-ear/1.0 sample application, follow the steps described in Import a package instructions.

Step 5 - Deploy the sample application

To deploy the sample application, follow the steps described in Deploy an application.

If the deployment succeeds, the state of the deployment plan is EXECUTED.

Successful deployment

If the deployment fails, click the failed step to see information about the failure. In some cases, you can correct the error and try again.

Failed deployment

Verify the deployment

To verify the deployment, go to http://IP:PORT/petclinic, where IP and PORT are the IP address and port of the server where the application was deployed.

Sample deployed PetClinic-ear application

Learn more

After you have connected Deploy to your middleware and deployed a sample application, you can start thinking about how to package and deploy your own applications with Deploy. To learn more, see:

Get help

To ask questions and connect with other users, visit our forums.