Tuesday, December 31, 2013

Create Multiple Instance or Multiple Windows Service for Jboss Application Server 7.1.1 Final


Consideration:
1.       Create Two Windows Service
2.       Deployment of Two different applications in one Jboss App Server.
3.       Run one application on windows service 1 and Run Second  application windows service 2

As per my previous post we are able to create one Windows service, now I am trying to create two or multiple windows services.
When trying to create multiple services be careful for following points.
1.       Create two separate  bat files like serviceAS1.bat , serviceAS2.bat , serviceAS3.bat .. etc 
2.       Create two separate deployment directories inside C:\jboss-as-7.1.1.Final\
3.       Name of services name should be different like
     For Service 1 
set SVCNAME=JBOSSASONE
set SVCDISP= JBOSSASONE
set SVCDESC=JBoss Application Server 7.1.1 Final GA/Platform: Windows x64 ONE

 For Service 2 

set SVCNAME=JBOSSASTWO
set SVCDISP= JBOSSASTWO
set SVCDESC=JBoss Application Server 7.1.1 Final GA/Platform: Windows x64 TWO

4.       Give separate name to all the log entries in service.bat file e.g
For Service 1 -> run1.log, shutdow1.log
For Service 2 -> run2.log, shutdown2.log
5.       Remove all lock entry in start service and stop service code from service.bat file. (We can keep as it ) 

I have created below 2 different service.bat files, refer below file

ServiceAS1.bat


@echo off
REM JBoss, the OpenSource webOS
REM
REM Distributable under LGPL license.
REM See terms of license at gnu.org.
REM
REM -------------------------------------------------------------------------
REM JBoss Service Script for Windows
REM -------------------------------------------------------------------------


@if not "%ECHO%" == "" echo %ECHO%
@if "%OS%" == "Windows_NT" setlocal
set DIRNAME=%CD%

REM
REM VERSION, VERSION_MAJOR and VERSION_MINOR are populated
REM during the build with ant filter.
REM
set SVCNAME=JBOSSASONE
set SVCDISP=JBOSSASONE
set SVCDESC=JBoss Application Server 7.1.1 Final GA/Platform: Windows x64 ONE
set NOPAUSE=Y

REM Suppress killing service on logoff event
set JAVA_OPTS=-Xrs -Xms1024M -Xmx1024M

REM Figure out the running mode

if /I "%1" == "install"   goto cmdInstall
if /I "%1" == "uninstall" goto cmdUninstall
if /I "%1" == "start"     goto cmdStart
if /I "%1" == "stop"      goto cmdStop
if /I "%1" == "restart"   goto cmdRestart
if /I "%1" == "signal"    goto cmdSignal
echo Usage: service install^|uninstall^|start^|stop^|restart^|signal
goto cmdEnd

REM jbosssvc retun values
REM ERR_RET_USAGE           1
REM ERR_RET_VERSION         2
REM ERR_RET_INSTALL         3
REM ERR_RET_REMOVE          4
REM ERR_RET_PARAMS          5
REM ERR_RET_MODE            6

:errExplain
if errorlevel 1 echo Invalid command line parameters
if errorlevel 2 echo Failed installing %SVCDISP%
if errorlevel 4 echo Failed removing %SVCDISP%
if errorlevel 6 echo Unknown service mode for %SVCDISP%
goto cmdEnd

:cmdInstall
jbosssvc.exe -imwdc %SVCNAME% "%DIRNAME%" "%SVCDISP%" "%SVCDESC%" serviceAS1.bat
if not errorlevel 0 goto errExplain
echo Service %SVCDISP% installed
goto cmdEnd

:cmdUninstall
jbosssvc.exe -u %SVCNAME%
if not errorlevel 0 goto errExplain
echo Service %SVCDISP% removed
goto cmdEnd

:cmdStart
REM Executed on service start
del .r.lock 2>&1 | findstr /C:"being used" > nul
if not errorlevel 1 (
  echo Could not continue. Locking file already in use.
  goto cmdEnd
)

jbosssvc.exe -p 1 "Starting %SVCDISP%" > run1.log
call standalone.bat  -Djboss.home.dir=C:/jboss-as-7.1.1.Final 
 -Djboss.server.base.dir=standalone1 --server-config=standalone1.xml  >> run1.log 2>&1
jbosssvc.exe -p 1 "Shutdown %SVCDISP% service" >> run1.log

goto cmdEnd

:cmdStop
REM Executed on service stop

jbosssvc.exe -p 1 "Shutting down %SVCDISP%" > shutdown1.log
call jboss-cli.bat --connect controller=127.0.0.1:9999 command=:shutdown >> shutdown1.log 2>&1
jbosssvc.exe -p 1 "Shutdown %SVCDISP% service" >> shutdown1.log

goto cmdEnd

:cmdRestart
REM Executed manually from command line
REM Note: We can only stop and start

jbosssvc.exe -p 1 "Shutting down %SVCDISP%" >> shutdown1.log
call jboss-cli.bat --connect controller=127.0.0.1:9999 command=:shutdown >> shutdown1.log 2>&1

:waitRun
REM Delete lock file
del .r.lock > nul 2>&1
REM Wait one second if lock file exist
jbosssvc.exe -s 1
if exist ".r.lock" goto waitRun
echo Y > .r.lock
jbosssvc.exe -p 1 "Restarting %SVCDISP%" >> run1.log
call standalone.bat -Djboss.home.dir=C:/jboss-as-7.1.1.Final -Djboss.server.base.dir=standalone1 --server-config=standalone1.xml  >> run1.log 2>&1
jbosssvc.exe -p 1 "Shutdown %SVCDISP% service" >> run1.log
del .r.lock
goto cmdEnd

:cmdSignal
REM Send signal to the service.
REM Requires jbosssch.dll to be loaded in JVM
@if not ""%2"" == """" goto execSignal
echo Missing signal parameter.
echo Usage: service signal [0...9]
goto cmdEnd
:execSignal
jbosssvc.exe -k%2 %SVCNAME%
goto cmdEnd

:cmdEnd
  



Standalone1.xml  configuration  for  run first  Application on http port

<subsystem xmlns="urn:jboss:domain:web:1.1" default-virtual-server="default-host" native="false">
            <connector name="http" protocol="HTTP/1.1" scheme="http" socket-binding="http"/>
            <virtual-server name="default-host" enable-welcome-root="true">
                <alias name="localhost"/>
                <alias name="example.com"/>
            </virtual-server>
        </subsystem>

<interfaces>
        <interface name="management">
            <inet-address value="${jboss.bind.address.management:127.0.0.1}"/>
        </interface>
        <interface name="public">
            <inet-address value="${jboss.bind.address:127.0.0.1}"/>
        </interface>
        <interface name="unsecure">
            <inet-address value="${jboss.bind.address.unsecure:127.0.0.1}"/>
        </interface>
    </interfaces>

<socket-binding-group name="standard-sockets" default-interface="public"
port-offset="${jboss.socket.binding.port-offset:0}">
        <socket-binding name="management-native" interface="management" port="${jboss.management.native.port:9999}"/>
        <socket-binding name="management-http" interface="management" port="${jboss.management.http.port:9990}"/>
        <socket-binding name="management-https" interface="management" port="${jboss.management.https.port:9443}"/>
        <socket-binding name="ajp" port="8009"/>
        <socket-binding name="http" port="8081"/>
        <socket-binding name="https" port="8443"/>
        <socket-binding name="osgi-http" interface="management" port="8090"/>
        <socket-binding name="remoting" port="4447"/>
        <socket-binding name="txn-recovery-environment" port="4712"/>
        <socket-binding name="txn-status-manager" port="4713"/>
        <outbound-socket-binding name="mail-smtp">
            <remote-destination host="localhost" port="25"/>
        </outbound-socket-binding>
    </socket-binding-group>






ServiceAS2.bat


@echo off
REM JBoss, the OpenSource webOS
REM
REM Distributable under LGPL license.
REM See terms of license at gnu.org.
REM
REM -------------------------------------------------------------------------
REM JBoss Service Script for Windows
REM -------------------------------------------------------------------------


@if not "%ECHO%" == "" echo %ECHO%
@if "%OS%" == "Windows_NT" setlocal
set DIRNAME=%CD%

REM
REM VERSION, VERSION_MAJOR and VERSION_MINOR are populated
REM during the build with ant filter.
REM
set SVCNAME=JBOSSASTWO
set SVCDISP=JBOSSASTWO
set SVCDESC=JBoss Application Server 7.1.1 Final GA/Platform: Windows x64 TWO
set NOPAUSE=Y

REM Suppress killing service on logoff event
set JAVA_OPTS=-Xrs -Xms1024M -Xmx1024M

REM Figure out the running mode

if /I "%1" == "install"   goto cmdInstall
if /I "%1" == "uninstall" goto cmdUninstall
if /I "%1" == "start"     goto cmdStart
if /I "%1" == "stop"      goto cmdStop
if /I "%1" == "restart"   goto cmdRestart
if /I "%1" == "signal"    goto cmdSignal
echo Usage: service install^|uninstall^|start^|stop^|restart^|signal
goto cmdEnd

REM jbosssvc retun values
REM ERR_RET_USAGE           1
REM ERR_RET_VERSION         2
REM ERR_RET_INSTALL         3
REM ERR_RET_REMOVE          4
REM ERR_RET_PARAMS          5
REM ERR_RET_MODE            6

:errExplain
if errorlevel 1 echo Invalid command line parameters
if errorlevel 2 echo Failed installing %SVCDISP%
if errorlevel 4 echo Failed removing %SVCDISP%
if errorlevel 6 echo Unknown service mode for %SVCDISP%
goto cmdEnd

:cmdInstall
jbosssvc.exe -imwdc %SVCNAME% "%DIRNAME%" "%SVCDISP%" "%SVCDESC%" serviceAS2.bat
if not errorlevel 0 goto errExplain
echo Service %SVCDISP% installed
goto cmdEnd

:cmdUninstall
jbosssvc.exe -u %SVCNAME%
if not errorlevel 0 goto errExplain
echo Service %SVCDISP% removed
goto cmdEnd

:cmdStart
REM Executed on service start
del .r.lock 2>&1 | findstr /C:"being used" > nul
if not errorlevel 1 (
  echo Could not continue. Locking file already in use.
  goto cmdEnd
)

jbosssvc.exe -p 1 "Starting %SVCDISP%" > run2.log
call standalone.bat  -Djboss.home.dir=C:/jboss-as-7.1.1.Final
 -Djboss.server.base.dir=standalone2  --server-config=standalone2.xml  >> run2.log 2>&1
jbosssvc.exe -p 1 "Shutdown %SVCDISP% service" >> run2.log

goto cmdEnd

:cmdStop
REM Executed on service stop

jbosssvc.exe -p 1 "Shutting down %SVCDISP%" > shutdown2.log
call jboss-cli.bat --connect controller=127.0.0.1:19999 command=:shutdown >> shutdown2.log 2>&1
jbosssvc.exe -p 1 "Shutdown %SVCDISP% service" >> shutdown2.log

goto cmdEnd

:cmdRestart
REM Executed manually from command line
REM Note: We can only stop and start

jbosssvc.exe -p 1 "Shutting down %SVCDISP%" >> shutdown1.log
call jboss-cli.bat --connect controller=127.0.0.1:19999 command=:shutdown >> shutdown2.log 2>&1

:waitRun
REM Delete lock file
del .r.lock > nul 2>&1
REM Wait one second if lock file exist
jbosssvc.exe -s 1
if exist ".r.lock" goto waitRun
echo Y > .r.lock
jbosssvc.exe -p 1 "Restarting %SVCDISP%" >> run2.log
call standalone.bat -Djboss.home.dir=C:/jboss-as-7.1.1.Final 
-Djboss.server.base.dir=standalone2  -config=standalone2.xml  >> run2.log  2>&1
jbosssvc.exe -p 1 "Shutdown %SVCDISP% service" >> run2.log
del .r.lock
goto cmdEnd

:cmdSignal
REM Send signal to the service.
REM Requires jbosssch.dll to be loaded in JVM
@if not ""%2"" == """" goto execSignal
echo Missing signal parameter.
echo Usage: service signal [0...9]
goto cmdEnd
:execSignal
jbosssvc.exe -k%2 %SVCNAME%
goto cmdEnd

:cmdEnd




Configuration  of Standalone2.xml to  run second Application on http port

<subsystem xmlns="urn:jboss:domain:web:1.1" default-virtual-server="default-host" native="false">
       
<connector name="http" protocol="HTTP/1.1" scheme="http" socket-binding="http"/>

            <virtual-server name="default-host" enable-welcome-root="true">
                <alias name="localhost"/>
                <alias name="example.com"/>
            </virtual-server>
        </subsystem>

<interfaces>
        <interface name="management">
            <inet-address value="${jboss.bind.address.management:127.0.0.1}"/>
        </interface>
        <interface name="public">
            <inet-address value="${jboss.bind.address:127.0.0.1}"/>
        </interface>
        <interface name="unsecure">
            <inet-address value="${jboss.bind.address.unsecure:127.0.0.1}"/>
        </interface>
    </interfaces>

<socket-binding-group name="standard-sockets" default-interface="public"
port-offset="${jboss.socket.binding.port-offset:10000}">
        <socket-binding name="management-native" interface="management" port="${jboss.management.native.port:9999}"/>
        <socket-binding name="management-http" interface="management" port="${jboss.management.http.port:9990}"/>
        <socket-binding name="management-https" interface="management" port="${jboss.management.https.port:9443}"/>
        <socket-binding name="ajp" port="8009"/>
        <socket-binding name="http" port="8081"/>
        <socket-binding name="https" port="8443"/>
        <socket-binding name="osgi-http" interface="management" port="8090"/>
        <socket-binding name="remoting" port="4447"/>
        <socket-binding name="txn-recovery-environment" port="4712"/>
        <socket-binding name="txn-status-manager" port="4713"/>
        <outbound-socket-binding name="mail-smtp">
            <remote-destination host="localhost" port="25"/>
        </outbound-socket-binding>
    </socket-binding-group>






Installation of Windows Services


C:\jboss-as-7.1.1.Final\bin>serviceAS1.bat install
Installed  JBOSSASONE
Service JBOSSASONE installed



C:\jboss-as-7.1.1.Final\bin>serviceAS2.bat install
Installed  JBOSSASTWO
Service JBOSSASTWO installed


Consider for Windows 7 
1)      Open Windows Management console using run. Click on start button, in Run or search text box type service. Now on the top we are able to service option. Click on in. Or Also we can access service in Windows Management console by using task manager.
2)      After  windows management console search our service in it  and change the startup type Manual to Automatic which would make sure that whenever you start/bootup your system the JBoss AS 7 services starts up automatically.
3)      Click on start service, status will change to started.
4)      To stop the service we have to click  on stop link in Windows Management Console
5)      We can stop service using command like
C:\jboss-as-7.1.1.Final\bin>serviceAS1.bat stop
C:\jboss-as-7.1.1.Final\bin>serviceAS2.bat stop
6)      r if the server not shutdown or stopped properly through service then we can execute below command from command prompt to stop the service.


C:\jboss-as-7.1.1.Final\bin> jboss-cli.bat --connect controller=127.0.0.1:9999 command=:shutdown;

You will get output like as follows

Shutting down JBOSSASONE [2013-12-26 17:18:26]
{"outcome" => "success"}
Shutdown JBOSSASONE service [2013-12-26 17:18:28]





C:\jboss-as-7.1.1.Final\bin> jboss-cli.bat --connect controller=127.0.0.1:19999 command=:shutdown;

You will get output like as follows

Shutting down JBOSSASTWO [2013-12-26 17:20:26]
{"outcome" => "success"}
Shutdown JBOSSASTWO service [2013-12-26 17:20:28]




URLs for two Applications
Considering above services are in running state. How to access these two applications
First Application:
Second Application
Because we have configured standalone2.xml
<socket-binding-group name="standard-sockets" default-interface="public"
port-offset="${jboss.socket.binding.port-offset:10000}">

portoffset is 10000 + localhost http port 8081  = 18081



Configure Second application to HTTPS port
If we want run second application on https port then we need to configure standalone2.xml
In https connector as mentioned in my previous post for configuring http using keytool or
If we have the trusted key provided by certification authority then we can configure in connector in standlone2.xml file.
Run the application on https port




Friday, December 27, 2013

Errors on Start or Stop the Service of Jboss7.1.1 Final Application Server


Below error comes when we try to stop the Jboss  Service from winodows console
Error Message :
Jboss Application server 7.1.1 service on Local Computer started and then stopped. Some Services stop automatically if they are not in use by other services or programs.


Ans :
Above Error comes because of the shutdown command used in service.bat is not correct. The shutdown command is not executed correctly, so after this error jboss server instance is in running state.
So We need to shutdown the  Jboss server first.
Use below command to shutdown server
C:\jboss-as-7.1.1.Final\bin> jboss-cli.bat --connect controller=127.0.0.1:9999 command=:shutdown;
You will get output like as follows
Shutting down JBOSSASONE [2013-12-26 17:18:26]
{"outcome" => "success"}
Shutdown JBOSSASONE service [2013-12-26 17:18:28]

If  above command executed successfully then uninstall service  using below command
C:\jboss-as-7.1.1.Final\bin>service.bat uninstall
Then open service.bat and check line number 84 and 94 update these line number with below change
call jboss-cli.bat --connect controller=127.0.0.1:9999 command=:shutdown >> shutdown.log 2>&1

Then install new service and verify service  start and stop functions

JBOSS 7.1.1 Final Run as Windows Service


Run as Single Service
We can create Windows Service for Run JBOSS 7.1.1 Final
Please follow below step to create Windows Service
1)      To create  windows service we need  below files
·         jbosssvc.exe
·         jbossweb.x64.exe
·         jbosswebw.x64
·         service.bat

2)      But Above files not present in In C:\jboss-as-7.1.1.Final\bin directory.
3)      So We need to download these files from below link

Please select downloads as per your operating system , I am using Windows 7 is 64 bit OS
So I have downloaded below bundles

binaries 2.0.10-windows x64
jboss-native 2.0.10 zip bundles
1.5M
2011-08-10
LGPL

Unzip this bundle it will shows
C:\jboss-native-2.0.10-windows-x64-ssl\
\bin
\licenses
4)      Copy all files and folder from bin directory of C:\jboss-native-2.0.10-windows-x64-ssl\ bin\
To C:\jboss-as-7.1.1.Final\bin
So all above 4 files and 1 native folder now available in C:\jboss-as-7.1.1.Final\bin
5)      Run.bat and shutdown.bat not present in C:\jboss-as-7.1.1.Final\bin so

Instead of Run.bat - > use
standalone.bat 
Instead of shutdown.bat -> use
jboss-cli.bat

6)      We need to update Service.bat file , instead of that create copy of service.bat  we call it
serviceAS.bat.
We need to modify the serviceAS.bat file as per our requirement

7)      Open ServiceAS.bat got line number 20, 21 ,22 update  these lines.

set SVCNAME=JBOSSASONE
set SVCDISP= JBOSSASONE
set SVCDESC=JBoss Application Server 7.1.1 Final GA/Platform: Windows x64

8)      Go to line number 26 and change the line as per below options
set JAVA_OPTS=-Xrs  -Xms1024M  -Xmx1024M

9)      Go to line number 55  and make change as per below code , serviceAS.bat need update instead of service.bat

jbosssvc.exe  -imwdc  %SVCNAME% "%DIRNAME%" "%SVCDISP%" "%SVCDESC%" serviceAS.bat                                 

10)   Now   Go to line number  75 and 104 , update these line as per below

call standalone.bat  < .r.lock >> run.log 2>&1

As per above mentioned, we are using standalone.bat instead of run.bat

11)   In Jboss Application server 7.1.1 Final bin folder there no any shutdown.bat present.
So instead of shutdown.bat use jboss-cli.bat 
Go to line number 84 and 94, Update as per below


call jboss-cli.bat --connect controller=127.0.0.1:9999 command=:shutdown >> shutdown.log 2>&1



 Even we can execute above command manually from command prompt to stop the service like

C:\jboss-as-7.1.1.Final\bin> jboss-cli.bat --connect controller=127.0.0.1:9999 command=:shutdown;

You will get output like as follows

Shutting down JBOSSASONE [2013-12-26 17:18:26]
{"outcome" => "success"}
Shutdown JBOSSASONE service [2013-12-26 17:18:28]


I have considered default local host controller 127.0.0.1 and 9999 is default management command.

Now we have completed all the changes in serviceAS.bat file

Installation as a Windows Service
After all the changes done in serviceAS.bat now we can install the windows service as per below command


C:\jboss-as-7.1.1.Final\bin>serviceAS.bat install
Installed  JBOSSASONE
Service JBOSSASONE installed


Starting Windows Service

We are using Windows 7 
1)  Open Windows Management console using run.
Click on start button, in Run or search text box type service.
Now on the top we are able to service option. Click on in.
Or we can access by using task manager also.


2)      After  windows management console search our service in it  and change the startup type Manual to Automatic which would make sure that whenever you start/bootup your system the JBoss AS 7 services starts up automatically. C
3)      Click on start service, status will change to started.
4)      To stop the service we have to click  on stop link in Windows Management Console
5)      We can stop service using command like
C:\jboss-as-7.1.1.Final\bin>serviceAS.bat stop
6)      Or if the server not shutdown or stopped properly through service then we can execute below command from command prompt to stop the service.


C:\jboss-as-7.1.1.Final\bin> jboss-cli.bat --connect controller=127.0.0.1:9999 command=:shutdown;

You will get output like as follows

Shutting down JBOSSASONE [2013-12-26 17:18:26]
{"outcome" => "success"}
Shutdown JBOSSASONE service [2013-12-26 17:18:28]





Thursday, December 5, 2013

SSL Configuration in JBOSS 7.0. Application Server


Creating SSL Certificate using JAVA keytool
Step 1:
            Consider Windows 7 as Operating system.
             Run Command prompt as administrator              
             Go to Java Home directory like
             C:\Program Files (x86)\Java\jdk1.7.0_09\bin
 Step2:
Run the following command to create trusted certificate on
 C:\Program Files (x86)\Java\jdk1.7.0_09\bin
1)keytool  -genkey  -keystore   server.keystore -storepass  rmi+ssl  -keypass  mypass  -keyalg  RSA -alias  server   -validity 3650  -dname "cn=Server SSL example,ou=admin test,dc=jboss,dc=org"
2) keytool -export -alias  server    –keystore   server .keystore  -rfc  -file  public.cert
3) keytool -import -alias server   -file  public.cert  –storetype  JKS  -keystore  server.truststore
     It will ask for password, please provide  mypass   as  a password       
Step 3:
  After running all this command, all file like , server.keystore, public.cert , server.truststore will generate in this path C:\Program Files (x86)\Java\jdk1.7.0_09\bin   
Need copy all these file to C:\jboss-as-7.1.1.Final\standalone\configuration directory

Step 4:
Open standalone.xml which is using to run the JBOSS server  
Copy below code to standlone.xml
<subsystem xmlns="urn:jboss:domain:web:1.1" default-virtual-server="default-host" native="false">
            <connector name="http" protocol="HTTP/1.1" scheme="http" socket-binding="http" redirect-port="8443"/>
            <connector name="https" protocol="HTTP/1.1" scheme="https" socket-binding="https" secure="true">
                <ssl name="ssl" key-alias="Illustrator" password="mypass" certificate-key-file="${jboss.server.config.dir}\server .keystore" protocol="TLSv1" verify-client="true"/>
            </connector>
            <virtual-server name="default-host" enable-welcome-root="true">
                <alias name="localhost"/>
                <alias name="example.com"/>
            </virtual-server>
        </subsystem>

Remember in subsystem tag mention native=”false” otherwise we need remove tomcat native libs from module folder
C:\jboss-as-7.1.1.Final\modules\org\jboss\as\web\main\lib\win-i686\ tcnative-1.dll
Step5:
Make above changes save the file and restart the application.
Consider using IE 8, 9 browsers  

Step6:
Use below steps used to install created certificate to browser

In the Internet Options dialog, click Content, then click Certificates. Click Importand follow the steps in the Certificate Import wizard.


For Internet Explorer 8 and 9
1.      Navigate to the Gateway home using an HTTPS URL.
2.      At the prompt There is a problem with this website's security certificate, click Continue to this website (not recommended).
3.      Click Internet Options on the Tools menu.
4.      On the Security tab, click Trusted sites and then click Sites.
5.      Confirm that the URL matches the URL you entered and click Add, and then click Close.
6.      Close Internet Options.
7.      Refresh the web page.
8.      At the prompt There is a problem with this website's security certificate, choose Continue to this website (not recommended).
9.      Click Certificate Error in the address bar and click View certificates.
10.  Click Install Certificate, and then click Next in the Certificate Import Wizard.
11.  Select Place all certificates in the following store.
12.  Click Browse, click Trusted Root Certification Authorities, and click OK.
13.  Click Next in the wizard until you reach the last screen, and then click Finish. If you get a Security Warning message box, click Yes.
14.  Click OK.
15.  On the Tools menu, click Internet Options.
16.  On the Security tab, click Trusted sites and then click Sites.
17.  Select the URL you added and click Remove, and then click Close.
18.  Restart Internet Explorer.

The web site's certificate as well as any WebSocket URL will now work in Internet Explorer.



You can check configuration on below link

Ref :
http://docs.jboss.org/jbossweb/7.0.x/ssl-howto.html#Edit the JBoss Web Configuration File