Monday, November 26, 2012

Setting Up JBoss

Hello There,

Hope everyone is doing great, me too.!!

Been in new assignment from few days, so thought could give some work for my brain.. to refurbish my JBoss ideas..!!

Started with JBoss Installation and Starting Up..!!

You will find this very simple though, thought of sharing with you in case if you find this challenging.;)

Step 1. Download JBoss Package (.zip) file from

I downloaded : as it is latest.

Step 2 : Copy the file to desired location and Unzip it.

Step 3 : Installation is Completed.

Step 4 : To Sample Start up, go to Unzipped JBoss Directory and Open the Gates of bin Directory.

Step 5 : Copy the PATH till here and navigate to bin directory from Command Prompt ( => Start-> Run-> CMD) by command cd <PATH to bin directory)

Step 6 : Once in bin directory, execute standalone.bat or in case if you do not have Windows Box.

Step 7 : Hold On..!!, You Should Have JAVA Installed Before You Introduce Yourself with JBoss.

Step 8 : After you execute standalone.bat file, your eyes will witness following output.

Microsoft Windows [Version 6.1.7601]
Copyright (c) 2009 Microsoft Corporation.  All rights reserved.

C:\Users\shailesh.dyade>cd C:\SandBox\AppServers\jboss-as-7.1.1.Final\bin


Calling "C:\SandBox\AppServers\jboss-as-7.1.1.Final\bin\standalone.conf.bat"

  JBoss Bootstrap Environment

  JBOSS_HOME: C:\SandBox\AppServers\jboss-as-7.1.1.Final

  JAVA: C:\Program Files\Java\jdk1.7.0_09\bin\java

  JAVA_OPTS: -XX:+TieredCompilation -Xms64M -Xmx51

2M -XX:MaxPermSize=256M -Dsun.rmi.dgc.client.gcInterval=3600000
rver.gcInterval=3600000 -Dorg.jboss.resolver.war
ning=true -Djboss.modules.system.pkgs=org.jboss.byteman -Djboss.server.default.c


15:09:26,732 INFO  [org.jboss.modules] JBoss Modules version 1.1.1.GA

15:09:30,059 INFO  [org.jboss.msc] JBoss MSC version 1.0.2.GA
15:09:30,139 INFO  [] JBAS015899: JBoss AS 7.1.1.Final "Brontes" sta
15:09:45,406 INFO  [org.xnio] XNIO Version 3.0.3.GA
15:09:45,406 INFO  [] JBAS015888: Creating http management se
rvice using socket-binding (management-http)
15:09:45,440 INFO  [org.xnio.nio] XNIO NIO Implementation Version 3.0.3.GA
15:09:45,546 INFO  [org.jboss.remoting] JBoss Remoting version 3.2.3.GA
15:09:45,658 INFO  [] JBAS016200: Activating ConfigAdmin
15:09:45,665 INFO  [] JBAS010280: Activating I
nfinispan subsystem.
15:09:45,674 INFO  [] JBAS011940: Activating OSGi Subsystem
15:09:45,676 INFO  [] JBAS011800: Activating Naming Subsystem

15:09:45,693 INFO  [] JBAS013101: Activating Security Subsy

15:09:45,694 INFO  [] JBAS015537: Activating WebServices
15:09:45,733 INFO  [] JBAS011502: Removing bootstrap log han
15:09:45,844 INFO  [] (MSC service thread 1-4) JBAS013100:
Current PicketBox version=4.0.7.Final
15:09:45,880 INFO  [] (MSC service thread 1-7) JBAS010408:
 Starting JCA Subsystem (JBoss IronJacamar 1.0.9.Final)
15:09:47,481 INFO  [] (MSC service thread 1-6) JBAS011802: St
arting Naming Service
15:09:47,485 INFO  [] (MSC service thread 1-6) JBAS01
5400: Bound mail session [java:jboss/mail/Default]
15:09:48,981 INFO  [org.apache.coyote.http11.Http11Protocol] (MSC service thread
 1-3) Starting Coyote HTTP/1.1 on http--
15:09:49,160 INFO  [] (ServerServic
e Thread Pool -- 39) JBAS010403: Deploying JDBC-compliant driver class org.h2.Dr
iver (version 1.3)
15:09:49,699 INFO  [] (MSC service
thread 1-7) JBAS010400: Bound data source [java:jboss/datasources/ExampleDS]
15:09:51,878 INFO  [] (MSC se
rvice thread 1-5) JBoss Web Services - Stack CXF Server 4.0.2.GA
15:09:53,160 INFO  [] (MSC service thread
1-5) JBAS015012: Started FileSystemDeploymentService for directory C:\SandBox\Ap
15:09:53,199 INFO  [] (MSC service thread 1-4) JBAS017100:
Listening on /
15:09:53,199 INFO  [] (MSC service thread 1-2) JBAS017100:
Listening on /
15:09:53,810 INFO  [] (Controller Boot Thread) JBAS015951: Admin con
sole listening on
15:09:53,813 INFO  [] (Controller Boot Thread) JBAS015874: JBoss AS
7.1.1.Final "Brontes" started in 30795ms - Started 133 of 208 services (74 servi
ces are passive or on-demand)

Step 9 : As it says, Admin console Listening on go to this URL on your browser, do not try to click this URL right away, you have not installed the JBoss yet.!!

Here you can see the console of JBoss Application Server, which says to add user first then you will be able to see the complete console.

And to Add user we need to execute the add-user.bat script in bin directory, lets try that..!!

After you add, there will be a link to refresh the configuration - you got to click that.


What type of user do you wish to add?
 a) Management User (
 b) Application User (

(a): a

Enter the details of the new user to add.
Realm (ManagementRealm) :
Username : shailesh
Password :
Re-enter Password :
About to add user 'shailesh' for realm 'ManagementRealm'
Is this correct yes/no? yes
Added user 'shailesh' to file 'C:\SandBox\AppServers\jboss-as-7.1.1.Final\standa
Added user 'shailesh' to file 'C:\SandBox\AppServers\jboss-as-7.1.1.Final\domain
Press any key to continue . . .

Enter your username and password created in above step, you can make your machine to remember the same till you brainwash him.

Once you login, you will be able to see the page, little familiar from last versions I have worked but very much different in looks, RedHat has changed the Application Server in whole, time to explore it..

Try dropping an application in the deployment folder of standalone profile and try to access.

Its your homework too, explore the same, do it and share your ideas here, you are very welcome to post comments, feedback's about the post and suggestions are very much welcome.

I will end the session here now, and will come back with more goodies of tips and technologies with all that tricks very soon in blog pages.

Take Care, 
Shailesh Dyade.

No comments: