Menu

Saturday 15 April 2017

Method 3: JBOSS Server- Application Deployment using Command Line Interface(CLI).


Step 1: start the JBOSS using script OR Run standalone.sh file from JBOSS bin Directory
        cd /JBOSS/jboss-eap-7.0/bin { In my case }


Screenshot 1:





Step 2:  Run this script line from /JBOSS/jboss-eap-7.0/bin Directory.
         to do the Deployment of Calendar Application.


./jboss-cli.sh -c controller=192.168.0.22:9990 --user=jboss --password=jboss123 --command="deploy /JBOSS/WAR_APP/Calendar.war"

 Where,
        deploy is for .war file deployment with proper path ,

 
 Screenshot 2:    




Step 3: Run this script line from /JBOSS/jboss-eap-7/bin Directory

        to check the deployment status.

  ./jboss-cli.sh -c controller=192.168.0.22:9990 --user=jboss --password=jboss123 --command="deployment-info"


  Screenshot 3:






Step 4; check the application from Console.

Screenshot 4:





Step 5: Check the deployed application from Console.  [ at Default Port - 8080]

           http://192.168.0.12:8080/Calendar 


Where,
Calendar is Application Context root.

Screenshot 5:




Step 6: Run this script line from /JBOSS/jboss-eap-7/bin Directory

        to undeploy the same application.

./jboss-cli.sh -c controller=192.168.0.22:9990 --user=jboss --password=jboss123 --command="undeploy Calendar.war"
     
Screenshot 6:




Step 7: Run this script line from /JBOSS/jboss-eap-7/bin Directory
        to check the deployment status.

  ./jboss-cli.sh -c controller=192.168.0.22:9990 --user=jboss --password=jboss123 --command="deployment-info"


Screenshot 7:



Method 2: JBOSS Server- Application Deployment using Web Console Management.




Step 1: Step 1: start the JBOSS using script OR Run standalone.sh file from JBOSS bin Directory
        cd /JBOSS/jboss-eap-7.0/bin { In my case }


Screenshot 1:



Step 2: Login to console :

Screenshot 2:






Step 3: Click on Deployments and then Add

Screenshot 3:



Step 4: Select on Upload a new deployment --> NEXT

Screenshot 4:







Step 5: Click on Choose File , browse for deployment .war file --> NEXT.

Screenshot 5:




Step 6: Check the Name and Runtime Name.

        Enable : YES /No.

Where,

Enable  YES --> Specifies Application Automatically started After Deployment.

Screenshot 6:



Screenshot 7:








Step 7: Check the deployed application from Console.  [ at Default Port - 8080]

           http://192.168.0.12:8080/Calendar

Where,
Calendar is Application Context root.

Screenshot 8:



--------------------------------------------------------------------------------------------------------------

For next method,

Use this link: http://www.middlewarebox.com/

















JBOSS Server- Application Deployment Methods -

Method 1: JBOSS Server- Application Deployment using file system ( Drag and Drop Method ).



Methods


***********************



 Method 1 :
 JBOSS Server- Application Deployment  using file system



 Method 2 : JBOSS Server- Application Deployment using Web Console Management.



 Method 3 : JBOSS Server- Application Deployment using Command Line Interface(CLI).




------------------------------------------------------------------------------------------------------------------



Method 1: JBOSS Server- Application Deployment  using file system ( Drag and Drop Method ).


Step 1: start the JBOSS using script OR Run standalone.sh file from JBOSS bin Directory
        cd /JBOSS/jboss-eap-7.0/bin { In my case }

Screenshot 1:





Step 2: copy the .war file OR use this command  from .war file location:

    cp -pr Calendar.war /JBOSS/jboss-eap-7.0/standalone/deployments


OR

 Use WinSCP.


Screenshot 2:






Step 3: In this /JBOSS/jboss-eap-7.0/standalone/deployments folder .war  file
        automatically get deployed in some time , if JBOSS App server is already started.

for eg:  Calendar.war.deployed
                 Calendar.war

Screenshot 3:



Step 4: Check the deployed application from Console.  [ at Default Port - 8080]

           http://192.168.0.12:8080/Calendar

Where,
Calendar is Application Context root.

Screenshot 4:




Step 5: you can also verify deployments from JBOSS App server.

Screenshot 5:




---------------------------------------------------------------------------------------------

For next Method :
Use this link :http://www.middlewarebox.com/


Friday 14 April 2017

How to Configure IHS (Httpd.conf ) with WAS 8.5 for Port :443 (https://) and install certificates.




Step 1: Go to Installed IHS , conf directory,


Step 2:  open httpd.conf in edit mode.


Screenshot 1:





Step 3: Add lines:

------------------------------------------------------------------------


LoadModule ibm_ssl_module modules/mod_ibm_ssl.so
Listen 0.0.0.0:443
#IPv6 support:
Listen [::]:443
<VirtualHost *:443>
SSLEnable
ServerName  *.middlewarebox.com
SSLProtocolDisable SSLv2
KeyFile  F:\IBM_INSTALL\IBMIHS\SSL\testkey.kdb
SSLStashFile  F:\IBM_INSTALL\IBMIHS\SSL\testkey.sth
</VirtualHost>
SSLDisable



LoadModule was_ap22_module  F:\IBM_INSTALL\IBMIHS\WebSphere\Plugins\bin\32bits\mod_was_ap22_http.dll

WebSpherePluginConfig  F:\IBM_INSTALL\IBMIHS\WebSphere\Plugins\config\New_webserver\plugin-cfg.xml

--------------------------------------------------------------------------------


where,
keyfile is for created .kdb location - certificates
SSLStashFile is for password.
LoadModule was_ap22_module
             F:\IBM_INSTALL\...\Plugins\bin\32bits\mod_was_ap22_http.dll     ( dll is for Wiindows )


LoadModule ibm_ssl_module modules/mod_ibm_ssl.so       ( .so is for UNIX ).

LoadModule was_ap22_module

       /IBMWAS/IHS/WebSphere/bin/64bits/mod_was_ap22_http.so  ( .so is for UNIX ).




also check

ServerName middlewarebox:443

Screenshot 2:






Step 4: edit hosts file  and add certificates common name to hosts

in windows go to  location  C:\Windows\System32\drivers\etc

Screenshot 3:




Step 4: restart the Web server :

Step 5: Check from browser using DNS name , provided in certificates and hosts file.

Screenshot 4:



Screenshot 5:




Step 6: Check the certificate Information { in my case i have created Self -sign Certificates }

Screenshot 6:




------------------------------------------------------------------------------------------------------------

IMP NOTE :

If  you want to configure at port  :443 only.

put # comment at all the lines of  port :80


#Listen 0.0.0.0:80
#Listen [::]:80
#ServerName localhost:80


the Application will work at port :443 only.

------------------------------------------------------------------------------------------------------------


Reference Doc : https://www-01.ibm.com/




How to Configure IHS (Httpd.conf ) with WAS 8.5 for Port 80 (http://)


Step 1: Go to Installed IHS , conf directory,

Screenshot 1:



Step 2:  open http.conf in edit mode.


Step 3: Add two lines:


LoadModule was_ap22_module   F:\IBM_INSTALL\IBMIHS\WebSphere\Plugins\bin\32bits\mod_was_ap22_http.dll


WebSpherePluginConfig       F:\IBM_INSTALL\IBMIHS\WebSphere\Plugins\config\New_webserver\plugin-cfg.xml





Where,

     LoadModule is  for add module from Plugins\bin\ directory.

 WebSpherePluginConfig is for propogated plugins location.


LoadModule was_ap22_module
             F:\IBM_INSTALL\...\Plugins\bin\32bits\mod_was_ap22_http.dll     ( dll is for Wiindows )


LoadModule was_ap22_module 
/IBMWAS/IHS/WebSphere/bin/64bits/mod_was_ap22_http.so       ( .so is for UNIX ).




Reference link : https://www.ibm.com/


Screenshot 2:






Step 4: check listen Port is 80:   and  ServerName middlewarebox:80

Screenshot 3:




Step 4: Restart the IHS from services.


Screenshot 4:



Step 5: Check from Browser,

 http://[IP - Address]:80

Screenshot 5:



Step 6: check  using  default application .

http://[Ip- address or server Name]/snoop

OR

http://[ip-address]:80/snoop


Screenshot 6:






---------------------------------------------------

Next ,


How to Configure IHS (Httpd.conf ) for Port :443 (https://) and install certificates.

Use this Link : http://www.middlewarebox.com//how-to-configure-ihs-httpdconf






How to generate and propagate Plug-ins from Console.



Step 1: Login to WAS Console .


Step 2: Click on web server.

Screenshot :1




Step 3: Click on Generate Plug-in

Screenshot :2



Screenshot :3



Step 4: Click on Propagate Plug-in , always check the generate and propogate location.

check  whether the Appserver plug-ins is successfully copied to Plugins\config\webserver

Screenshot :3




-----------------------------------------------------------

Next ,

How to Configure IHS (Httpd.conf ) with WAS 8.5 for Port 80.  (http://)
Use this link : http://www.middlewarebox.com/2017/04/how-to-configure-ihs-httpdconf-for-port.html

How to Create Web Server in WAS 8.5


Step 1: Login to IBM WAS Console.

Screenshot 1:




Step 2: go to the web server.

Screenshot 2:




Step 3: Click on New.

Screenshot 3:




Step 4: Provide details and click Next,

ServerName: New_webserverr
Type:IBM HTTP Server
Hostname: 192.168.0.12
Platform: Windows

Screenshot :4




Step 5: Select IHS and click Next.

Screenshot :5





Step 6: Provide details and click Next,

Port :80
Web Server Location:
Service Name:
plug-in location:
Application Mapping: All
Admin server Port:8008 (default)
Username:
Password:
Confirm Password:

Screenshot :6




Screenshot :7





Step 7: Click on Finish.

Screenshot :8





Step 8: Click on review  and Save.

Screenshot :9



Screenshot :10




Step 9: Now we have created New  Web Server and Status is Stopped.


Screenshot :11



Step 10: Start The IHS from services --

Screenshot :12





Step 11: Refresh the status from Console , its Started

Screenshot :13







Next Step ,

How  to generate and propagate Plug-ins from Console. 

Use this link : http://www.middlewarebox.com/2017/04/how-to-generate-and-propagate-plug-ins.html