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
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
- Online
- 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
- After running this bat file, your server gets started see below screenshot for “Server Started” message
- 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
- 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”
- Now your war deployed on the JBoss AS, but it isn’t yet activated. So activate clicking “Enable” and “confirm” on the dialog box
- 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
- After running this bat file, your server gets started and also your war gets deployed see below screenshot for “Server Started” and “Deployment” message
- 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 !!