How to configure SSL on JBoss EAP

Create Connector Create Keystores keytool -genkey -alias mykey -keyalg RSA -keysize 1024 -dname “CN=myserver.beasys.com, OU=Customer Support, O=BEA Systems Inc, L=Denver, ST=Colorado, C=US” -keypass password -keystore identity.jks -storepass password keytool -selfcert -v -alias mykey -keypass password -keystore identity.jks -storepass password -storetype jks keytool -export -v -alias mykey -file rootCA.der -keystore identity.jks

Continue reading »

Encrypting password in JBoss EAP

To encrypt password in Jboss using CLI, you can follow the steps below. This is particularly useful if you want to encrypt password for datasource.   1) export JBOSS_HOME=/pallavi/ 2) export CLASSPATH=/pallavi/jboss-eap-6.2/modules/system/layers/base/org/picketbox/main/picketbox-4.0.19.SP2-redhat-1.jar:/pallavi/modules/system/layers/base/org/jboss/logging/main/jboss-logging-3.1.2.GA-redhat-1.jar:$CLASSPATH 3) java org.picketbox.datasource.security.SecureIdentityLoginModule sa 4) Make changes in your configuration file(eg: standalone.xml) under the security tag as below

Continue reading »

Database authentication on JBoss EAP 5.0

Step 1 Create tables in the database and insert user, group and role information   CREATE TABLE USERS ( U_NAME VARCHAR(200) NOT NULL, U_PASSWORD VARCHAR(50) NOT NULL, U_DESCRIPTION VARCHAR(1000)) ; CREATE TABLE GROUPS ( G_NAME VARCHAR(200) NOT NULL, G_DESCRIPTION VARCHAR(1000) NULL) ; CREATE TABLE ROLES ( U_NAME VARCHAR(200) NOT NULL,

Continue reading »

Starting a specific JBOSS server profile and a specific ip-address

 A. Starting a specific JBOSS server profile : 1. Navigate to the path …\jboss-eap-5.1\jboss-as\server 2. The server folder has different profile. Create a duplicate copy of the default folder and rename it to server1. We can  customize this profile and start it. 3. To start server1 , navigate to the path …\jboss-eap-5.1\jboss-as\bin\ and open the command prompt. 4. Enter the command  run

Continue reading »

Installing JBoss EAP as a windows service

1. Copy …\jboss-ep-5.1\native\sbin to …\jboss-eap-5.1\jboss-as\bin 2.  Locate the cmd.exe file in the path  C:\Windows\System32\ and right click to Run as administrator. The following command prompt is displayed: 3.  Navigate to the path  …\jboss-eap-5.1\jboss-as\bin\ in the command prompt and execute the command service.bat install The service JBEAP5SVC -SERVER1 has been created. 4. We can start and

Continue reading »

Managing Password in JBOSS EAP

1. Navigate to …\jboss-eap-5.1\jboss-as\server\server1\conf\props . 2.  Open the jmx-console-roles.properties file and add roles as required.  I added the role saky , which I use to  login to jmx-console. Refer the sample file # A sample roles.properties file for use with the UsersRolesLoginModule admin=JBossAdmin,HttpInvoker saky=JBossAdmin,HttpInvoker 3. Similarly, Open the jmx-console-users.properties file and edit passwords for the users.  # A

Continue reading »

Starting the default JBOSS server

1. Navigate to the path …\jboss-eap-5.1\jboss-as\bin\ and open the command prompt. 2. Enter the command run.bat to start the JBOSS server Once, the command is executed the  default profile for  JBOSS server starts   3. To check the console, go to http://localhost:8080/admin-console 4. Enter the Username and Password (I have used Admin credentials to log in, we will

Continue reading »