Wednesday, 25 January 2017

However you have not yet added any users to be able to access the admin console

Hello everyone,

After successful installation and start of Jboss and making it available for remote access  I was trying to access the admin console and not able to access it. I was trying to access it remotely by http://hostname:port/console and it was showing me below message on login screen

However you have not yet added any users to be able to access the admin console





So yes after installation of Jboss application server you need to add the admin user to perform the administration activities. And only admin user can allow you to access the administration console for jboss.

There are two types of users Management User and Application User and for accessing administration console create a Management User using below steps.

Procedure


Go to the below location /<JBOSS_HOME>/bin and run the command ./add-user.sh

What type of user do you wish to add? [use enter for default or type a for option admin user]
 a) Management User (mgmt-users.properties)
 b) Application User (application-users.properties)
(a): a

Enter the details of the new user to add. [Type user dtails]
Realm (ManagementRealm) : ManagementRealm
Username : admin
Password : ******
Re-enter Password :******
The username 'admin' is easy to guess
Are you sure you want to add user 'admin' yes/no? yes
About to add user 'admin' for realm 'ManagementRealm'
Is this correct yes/no? yes
Added user 'admin' to file '/opt/Akhil/jboss-as-7.1.1.Final/standalone/configuration/mgmt-users.properties'
Added user 'admin' to file '/opt/Akhil/jboss-as-7.1.1.Final/domain/configuration/mgmt-users.properties'

Refer the below screenshot for reference.



Go and check the file  /<JBOSS_HOME>/domain/configuration/mgmt-users.properties



Now try to access the admin console





Hope this will help you. Kindly comment for your suggestion and quires.   

"Effort only fully releases its reward after a person refuses to quit.”

 Regards,

 Akhilesh B. Humbe

Friday, 20 January 2017

Not able to access the JBoss admin console remotely

Hello everyone,

After successful installation and start of Jboss Application server service I was trying to access the admin console and not able to access it. I was trying to access it remotely by http://hostname:port/console and it was showing blank screen and some errors.

To making your Jboss admin console available  for remote access you need to make some changes in standalone.xml

Procedure:


Go to the below location
/<JBOSS_HOME>/standalone/configuration/

Take a backup of the file standalone.xml

Open the file and search for the tab jboss.bind.address and make sure that jboss.bind.address value should be 0.0.0.0 , make the changes and save the file. You can refer the below screen shot



Restart the Jboss application services and try to access link
http://hostname:19990/console [port may different according to your configuration]




Hope this will help you. Kindly comment for your suggestion and quires.   

"Effort only fully releases its reward after a person refuses to quit.”

 Regards,

Thursday, 19 January 2017

How to Change Default Ports in JBoss Application Server ?

Hello everyone,

After successful installation of Jboss application server I was getting below error in the server logs. And it's the port conflict. Because already some services running on the port 8080 it was showing
 
Caused by: LifecycleException:  Protocol handler initialization failed: java.net.BindException: Address already in use /127.0.0.1:8080




To resolve this issue you need to change the default ports of the Jboss application server or else you can stop the processes on the ports which were configure on Jboss.

But as it always recommend that never use the default ports on any application server as good practice of avoiding security hazards/vulnerability issues. Here I am listing down the steps to change the default ports of Jboss standalone profile.  


Procedure:


Go to the below location
/<JBOSS_HOME>/standalone/configuration/

Take a backup of the file standalone.xml or after change you can find the original file at
/<JBOSS_HOME>/standalone/configuration/standalone_xml_history/standalone.initial.xml

Open the file and edit the ports in <socket-binding-group /> tab. You can refer the below screen shot



Restart the Jboss service and check if new ports are updated.




Hope this will help you. Kindly comment for your suggestion and quires.   

"Effort only fully releases its reward after a person refuses to quit.”

 Regards,

Installation of JBoss Application Server v7.1

Hello everyone,

Happy New year to all. Hope you all are doing well. Today We are installing JBoss application Server community edition v7.1 on a LINUX box. Community edition is an open source and free to use and if you want to support from RedHat you need to install JBoss Enterprise Application Platform (EAP) which we were already discussed before in  link.

Procedure:


Installing JBoss is an easy process and administration is same as other Middleware technologies and as an open source it is a mostly used application server.

Installing JBoss Application Server


As JBoss doesn’t install it's own java environment like weblogic jRocket and Websphere SDK, you need to install the compatible version of java as a prerequisites of JBoss installation.

You can down compatible .zip/.tar file or .rpm file from the oracle side and install it. In our case I have downloaded below file which is compatible JBoss 7.1
jdk-7u21-linux-i586.tar

Next step is to download the JBoss application server. You can download latest version of JBoss Application Server from http://jbossas.jboss.org/downloads/



We have downloaded the below  file
jboss-as-7.1.1.Final.zip

Install the java, to install the java you need to extract the jdk-7u21-linux-i586.tar file
tar -xvf  jdk-7u21-linux-i586.tar

Install JBoss, to install the JBoss you need to extract the jboss-as-7.1.1.Final.zip
unzip jboss-as-7.1.1.Final.zip

And here you have completed the installation of JBoss application server. This is the most simplest application server to install. Now lets see how to start the JBoss Application Server services in LINUX.

Starting  JBoss Services


To start the JBoss service goto the JBOSS_HOME/bin and execute the command ./standalone.sh. When I first time executed this command  I got a below error.

./standalone.sh: line 178: java: command not found



As I don’t have java installed as a rpm my JAVA_HOME is not set. And we have already discussed that JBoss required external java to run, so we need to set the JAVA_HOME before executing the start command. 
We can do that in multiple ways.

We can set it foe specific putty session by command
Export JAVA_HOME=/opt/jdk1.7.0_21

Or you can set it in standalone.conf as JAVA_HOME=/opt/jdk1.7.0_21. Here I have set it in standalone.conf so I don’t need to set it every time for every new putty session.

Now execute the command ./standalone.sh 


Access the admin console from below link

http://localhost:19990/console [port may change according to your configuration]




Hope this will help you. Kindly comment for your suggestion and quires.   

"Effort only fully releases its reward after a person refuses to quit.”

 Regards,

Popular Posts