JBoss Application Server 7 Deployment process

Step 1: Download JBoss Application Server 7.1.1.Final from JBoss site

Step 2: Unzip the ZIP file and keep it in some suitable place like say “D:\jboss-as-7.1.1.Final

In the above location, you should see the below folder structure

1_jboss_folder_structure
Note: Since JBoss AS 7 comes as portable, no separate installation required

Step 3: Confirm above steps, which means you have JBoss AS in your working environment

Deployment Process

There are two ways to deploy war/ear file into Jboss AS 7

  1. Online
  2. Offline

Let understand each one detail

Online

    • Open command prompt and change the directory to “D:\jboss-as-7.1.1.Final\bin”
    • Run standalone bat file i.e.; standalone.bat

2_jboss_cmd_prompt

    • After running this bat file, your server gets started see below screenshot for “Server Started” message

3_jboss_server_started_successfully

    • Enter the URL to open JBoss admin console http://localhost:9990/console/App.html
    • Enter username and password say for example admin/admin123
    • After successful attempt, you will see below admin console screen

4_jboss_main_console_screen

    • Click “Add Content” and browse through the war/ear file created for your application to be deployed and click “Next”
    • In Step 2, click “Save”

5_jboss_after_war_deployment

    • Now your war deployed on the JBoss AS, but it isn’t yet activated. So activate clicking “Enable” and “confirm” on the dialog box

6_jboss_enable_application_deployed

  • Your application’s war file deployed successfully
  • Click “Remove” to un-deploy the application from server
  • There is “logout” button at the right-bottom corner to log out

Offline

In offline mode, you have to copy the war file into the deployment folder and needs to start the server from command prompt. Let us understand it step-by-step

    • Copy(ctrl+c) the war file from application target folder
    • Paste (ctrl+v) it into the location “D:\jboss-as-7.1.1.Final\standalone\deployments”
    • Open command prompt and change the directory to “D:\jboss-as-7.1.1.Final\bin”
    • Run standalone bat file i.e.; standalone.bat

2_jboss_cmd_prompt

    • After running this bat file, your server gets started and also your war gets deployed see below screenshot for “Server Started” and “Deployment” message

7_jboss_enable_application_deployed_offline

  • That’s it !!
  • Browse through this location “D:\jboss-as-7.1.1.Final\standalone\log” to get the logs which has two log files namely boot and server

Happy Coding !!
Happy Learning !!

Update JBoss Application Server 7.1.1.Final with latest RestEasy distribution
RestEasy: JAX-RS web service using @PathParam annotation + JBoss AS7