Création d'un WebSphere Liberty Core.

1. Avant-propos
1.1. Présentation
1.2. Introduction
2. Passeport Advantage
2.1. Package à choisir
2.2. Connaitre le nom du package d'un fichier ZIP
2.3. Installer le package dans la REPOSITORY
2.4. Vérification du package dans la REPOSITORY
3. Installation de Liberty Core
3.1. Création des répertoires ou filesystem
3.2. Prise d'information avant l'installation du produit
3.3. Installation de WebSphere Liberty Core
3.4. Installation du JDK
3.5. Vérification de l'installation
4. Configuration d'un Liberty Core
4.1. Modification du fichier serveur.xml
5. Installation d'une application
5.1. Installation du war DevWorkSample.war

1. Avant-propos


1.1 - Présentation.


+------------------------------+                                               +--------------------------------------+ 
| Serveur REPOSITORY           |                                               | Serveur WebSphere Liberty v8.5.5.1   | 
| Hostname : saturn            |---(Création d'un serveur Liberty Core )   --->| Hostname : arecibo                   | 
| Os : Linux 2.6.32            |                                               | Os : Linux                           | 
|                              |                                               | WLP : arecibo                        | 
|                              |                                               |                                      | 
+------------------------------+                                               +--------------------------------------+ 

1.2 - Introduction


Nous allons réaliser une installation d'un WebSphere Liberty Core version 8.5.5 en fixe pack 1.

2. Passeport Advantage


Il est nécessaire d'avoir un compte sur Passeport Advantage pour télécharger les binaires.
L'url ci-dessous est amenée à changer.
Passport Advantage

2.1 - Package à choisir


Dans les menus d'IBM selectionné "IBM WebSphere Application Server Liberty Core" accepté les conditions.
Selectionné la plateforme "Linux for System x 86Series" accepté les conditions.
Pour connaitre les packages à télécharger, vous pouvez regarder la documentation suivante "How to download WebSphere Application Server Version 8.5 from Passport Advantage Online"
Exemple pour une version linux :

IBM WebSphere Application Server - Liberty Core V8.5.5 for Multiplatform Multilingual (Installed using the IBM Installation Manager) : CIK2VML.zip (une fois téléchargé WAS_Liberty_Core_V8.5.5.zip)

IBM WebSphere Application Server Liberty Core V8.5.5 Supplements (1 of 3) for Multiplatform Multilingual : CIK2YML.zip (une fois téléchargé WAS_Liberty_Core_V8.5.5_SUPPL_1_OF_3.zip)
IBM WebSphere Application Server Liberty Core V8.5.5 Supplements (2 of 3) for Multiplatform Multilingual : CIK2ZML.zip (une fois téléchargé WAS_Liberty_Core_V8.5.5_SUPPL_2_OF_3.zip)
IBM WebSphere Application Server Liberty Core V8.5.5 Supplements (3 of 3) for Multiplatform Multilingual : CIK30ML.zip (une fois téléchargé WAS_Liberty_Core_V8.5.5_SUPPL_3_OF_3.zip)

IBM WebSphere SDK Java Technology Edition V7.0 (1 of 2) (for WebSphere Application Server Liberty Core V8.5.5) Multiplatform Multilingual : CIN22ML.zip (une fois téléchargé SDK_JAVA_TE_V7.0_1OF2_WASLC_V8.5.5.zip)
IBM WebSphere SDK Java Technology Edition V7.0 (2 of 2) (for WebSphere Application Server Liberty Core V8.5.5) Multiplatform Multilingual : CIN23ML.zip (une fois téléchargé SDK_JAVA_TE_V7.0_2OF2_WASLC_V8.5.5.zip)

2.2. Connaitre le nom du package d'un fichier ZIP


Nous allons prendre comme exemple CIN22ML.zip (une fois téléchargé SDK_JAVA_TE_V7.0_1OF2_WASLC_V8.5.5.zip)
Déposer le fichier zip dans le répertoire "/apps/tmpwas/toto".
[saturn@root:/apps/tmpwas/toto:] ls -lrt
total 2014800
-rw-r-----    1 root     system   1031566304 Sep  4 17:39 SDK_JAVA_TE_V7.0_1OF2_WASLC_V8.5.5.zip
[saturn@root:/apps/tmpwas/toto:]
Puis dé-zipper le fichier dans le même répertoire.
unzip SDK_JAVA_TE_V7.0_1OF2_WASLC_V8.5.5.zip
[saturn@root:/apps/tmpwas/toto:] unzip SDK_JAVA_TE_V7.0_1OF2_WASLC_V8.5.5.zip
Archive:  SDK_JAVA_TE_V7.0_1OF2_WASLC_V8.5.5.zip
   creating: disk1/
   creating: disk1/ad/
   creating: disk1/ad/atoc/
   creating: disk1/ad/atoc/nq/
   creating: disk1/ad/files/
   creating: disk1/ad/native/
   creating: disk1/ad/plugins/
   creating: disk1/md/
   creating: disk1/md/Offerings/
   creating: disk1/md/atoc/
   creating: disk1/toc/
   creating: readme/
   creating: readme/de/
   creating: readme/en/
   creating: readme/es/
   creating: readme/fr/
   creating: readme/ja/
   creating: readme/ko/
   creating: readme/pt/
   creating: readme/pt/BR/
   creating: readme/zh/
   creating: readme/zh/CN/
   creating: readme/zh/TW/
  inflating: disk1/ad/atoc/atoc.xml
  inflating: disk1/ad/atoc/nq/eclipse_plugin.xml
  inflating: disk1/ad/atoc/nq/native_file.xml
  inflating: disk1/ad/atoc/nq/native_zip.xml
  inflating: disk1/ad/files/file000001
  inflating: disk1/ad/files/toc.xml
  inflating: disk1/ad/native/file000001
  inflating: disk1/ad/native/file000002
  inflating: disk1/ad/native/file000003
  inflating: disk1/ad/native/file000004
  inflating: disk1/ad/native/file000005
  inflating: disk1/ad/native/file000006
  inflating: disk1/ad/native/file000007
  inflating: disk1/ad/native/file000008
  inflating: disk1/ad/native/file000009
  inflating: disk1/ad/native/file000010
  inflating: disk1/ad/native/file000011
  inflating: disk1/ad/native/file000012
  inflating: disk1/ad/native/file000013
  inflating: disk1/ad/native/file000014
  inflating: disk1/ad/native/file000015
  inflating: disk1/ad/native/file000016
  inflating: disk1/ad/native/file000017
  inflating: disk1/ad/native/toc.xml
  inflating: disk1/ad/plugins/file000001
  inflating: disk1/ad/plugins/file000002
  inflating: disk1/ad/plugins/file000003
  inflating: disk1/ad/plugins/toc.xml
  inflating: disk1/ad/repository.config
  inflating: disk1/diskTag.inf
  inflating: disk1/md/Offerings/com.ibm.websphere.liberty.IBMJAVA.v70_7.0.4001.20130510_2103.jar
  inflating: disk1/md/Offerings/com.ibm.websphere.liberty.IBMJAVA.v70_7.0.4001.20130510_2103_SE.jar
  inflating: disk1/md/Offerings/toc.xml
  inflating: disk1/md/atoc/atoc.xml
  inflating: disk1/md/repository.config
  inflating: disk1/md/repository.xml
  inflating: disk1/toc/datoc.xml
  inflating: readme/de/readme_de.html
  inflating: readme/de/swg_info_common.css
  inflating: readme/de/wasstyle_nlv.css
  inflating: readme/en/readme_en.html
  inflating: readme/en/swg_info_common.css
  inflating: readme/en/wasstyle_nlv.css
  inflating: readme/es/readme_es.html
  inflating: readme/es/swg_info_common.css
  inflating: readme/es/wasstyle_nlv.css
  inflating: readme/fr/readme_fr.html
  inflating: readme/fr/swg_info_common.css
  inflating: readme/fr/wasstyle_nlv.css
  inflating: readme/ja/readme_ja.html
  inflating: readme/ja/swg_info_common.css
  inflating: readme/ja/wasstyle_nlv.css
  inflating: readme/ko/readme_ko.html
  inflating: readme/ko/swg_info_common.css
  inflating: readme/ko/wasstyle_nlv.css
  inflating: readme/pt/BR/readme_pt_BR.html
  inflating: readme/pt/BR/swg_info_common.css
  inflating: readme/pt/BR/wasstyle_nlv.css
  inflating: readme/readme.html
  inflating: readme/swg_info_common.css
  inflating: readme/wasstyle_nlv.css
  inflating: readme/zh/CN/readme_zh_CN.html
  inflating: readme/zh/CN/swg_info_common.css
  inflating: readme/zh/CN/wasstyle_nlv.css
  inflating: readme/zh/TW/readme_zh_TW.html
  inflating: readme/zh/TW/swg_info_common.css
  inflating: readme/zh/TW/wasstyle_nlv.css
  inflating: repository.config
[saturn@root:/apps/tmpwas/toto:] 
Puis nous allons scanner le repository du package.
/install/WEB/PU/PUCL listAvailablePackages -repositories /apps/tmpwas/toto/
[saturn@root:/apps/tmpwas/toto:] /install/WEB/PU/PUCL listAvailablePackages -repositories /apps/tmpwas/toto/
com.ibm.websphere.liberty.IBMJAVA.v70_7.0.4001.20130510_2103
[saturn@root:/apps/tmpwas/toto:]
Puis nous allons scanner le repository du package.
/install/WEB/PU/PUCL listAvailablePackages -repositories /apps/tmpwas/toto/
[saturn@root:/apps/tmpwas/toto:] /install/WEB/PU/PUCL listAvailablePackages -repositories /apps/tmpwas/toto/
com.ibm.websphere.liberty.IBMJAVA.v70_7.0.4001.20130510_2103
[saturn@root:/apps/tmpwas/toto:]

2.3 - Installer le package dans la REPOSITORY


Pour installer le package dans le repository suivez les commandes suivantes.
/install/WEB/PU/PUCL copy com.ibm.websphere.liberty.IBMJAVA.v70_7.0.4001.20130510_2103 -repositories /apps/tmpwas/toto -target /install/WEB/IM/REPOSITORY -platform os=linux -sP -acceptLicense

[saturn@root:/apps/tmpwas/toto:] /install/WEB/PU/PUCL copy com.ibm.websphere.liberty.IBMJAVA.v70_7.0.4001.20130510_2103 -repositories /apps/tmpwas/toto -target /install/WEB/IM/REPOSITORY -platform os=linux -sP -acceptLicense                                     <
Opening repositories.
Preparing copy operation.
Copying 1 offerings or offering updates.
                 25%                50%                75%                100%
------------------|------------------|------------------|------------------|
............................................................................
The operation completed successfully.
[saturn@root:/apps/tmpwas/toto:]

2.4 - Vérification du package dans la REPOSITORY


Après avoir installé le package dans le repository vérifier son existence avec la commande suivante.
/install/WEB/PU/PUCL listAvailablePackages -repositories /install/WEB/IM/REPOSITORY | grep com.ibm.websphere.liberty.IBMJAVA.v70_7.0.4001.20130510_2103

[saturn@root:/apps/tmpwas/toto:] /install/WEB/PU/PUCL listAvailablePackages -repositories /install/WEB/IM/REPOSITORY | grep com.ibm.websphere.liberty.IBMJAVA.v70_7.0.4001.20130510_2103
com.ibm.websphere.liberty.IBMJAVA.v70_7.0.4001.20130510_2103
[saturn@root:/apps/tmpwas/toto:]

3. Installation de Liberty Core


Dans l'exemple suivant nous allons installer le produit Liberty Core sur le serveur "arecibo" .
Pour se faire nous allons devoir réaliser les étape suivante :

3.1 - Création des LVs sur le serveur.


Sur Aix : crfs -v jfs -g lv_wlc -a size=2000M -m /apps/WebSphere85/LibertyCore
Sur Linux : lvcreate -L2000 -n lv_wlc vg_apps

root@arecibo:/# lvcreate -L2000 -n lv_wlc vg_apps
  Logical volume "lv_wlc" created
root@arecibo:/#

Puis vérifier sa création.

root@arecibo:/# lvscan
  ACTIVE            '/dev/vg_apps/lv_tmpInstall' [11.72 GB] inherit
  ACTIVE            '/dev/vg_apps/lv_p85nodei2' [768.00 MB] inherit
  ACTIVE            '/dev/vg_apps/lv_iscope95' [100.00 MB] inherit
  ACTIVE            '/dev/vg_apps/lv_iscope95logs' [152.00 MB] inherit
  ACTIVE            '/dev/vg_apps/lv_iscope955' [100.00 MB] inherit
  ACTIVE            '/dev/vg_apps/lv_iscope955logs' [152.00 MB] inherit
  ACTIVE            '/dev/vg_apps/lv_dt56' [100.00 MB] inherit
  ACTIVE            '/dev/vg_apps/lv_zs6_adm' [152.00 MB] inherit
  ACTIVE            '/dev/vg_apps/lv_zs6_ct' [400.00 MB] inherit
  ACTIVE            '/dev/vg_apps/lv_zs6_logs' [400.00 MB] inherit
  ACTIVE            '/dev/vg_apps/lv_zs6_phpapp' [100.00 MB] inherit
  ACTIVE            '/dev/vg_apps/lv_zs6_rtmp' [1.98 GB] inherit
  ACTIVE            '/dev/vg_apps/lv_zs6_db' [1.02 GB] inherit
  ACTIVE            '/dev/vg_apps/lv_ws8S' [4.50 GB] inherit
  ACTIVE            '/dev/vg_apps/lv_svn' [4.00 GB] inherit
  ACTIVE            '/dev/vg_apps/lv_was85' [4.50 GB] inherit
  ACTIVE            '/dev/vg_apps/lv_plg85' [1.00 GB] inherit
  ACTIVE            '/dev/vg_apps/lv_ihs85' [1.00 GB] inherit
  ACTIVE            '/dev/vg_apps/lv_core' [512.00 MB] inherit
  ACTIVE            '/dev/vg_apps/lv_p85dmgr' [768.00 MB] inherit
  ACTIVE            '/dev/vg_apps/lv_p85dl' [256.00 MB] inherit
  ACTIVE            '/dev/vg_apps/lv_p85wstmp' [512.00 MB] inherit
  ACTIVE            '/dev/vg_apps/lv_p85node' [768.00 MB] inherit
  ACTIVE            '/dev/vg_apps/lv_p85nl' [256.00 MB] inherit
  ACTIVE            '/dev/vg_apps/lv_p85tmp' [256.00 MB] inherit
  ACTIVE            '/dev/vg_apps/lv_im' [552.00 MB] inherit
  ACTIVE            '/dev/vg_apps/lv_imadl' [200.00 MB] inherit
  ACTIVE            '/dev/vg_apps/lv_ims' [3.42 GB] inherit
  ACTIVE            '/dev/vg_apps/lv_wlc' [1.95 GB] inherit
  ACTIVE            '/dev/rootvg/root' [2.00 GB] inherit
  ACTIVE            '/dev/rootvg/apps' [8.81 GB] inherit
  ACTIVE            '/dev/rootvg/deploy' [192.00 MB] inherit
  ACTIVE            '/dev/rootvg/sys' [2.00 GB] inherit
  ACTIVE            '/dev/rootvg/back' [3.00 GB] inherit
  ACTIVE            '/dev/rootvg/home' [1.00 GB] inherit
  ACTIVE            '/dev/rootvg/var' [2.00 GB] inherit
  ACTIVE            '/dev/rootvg/crash' [4.09 GB] inherit
  ACTIVE            '/dev/rootvg/tmp' [2.00 GB] inherit
  ACTIVE            '/dev/rootvg/usr' [3.00 GB] inherit
  ACTIVE            '/dev/rootvg/swap' [4.00 GB] inherit
  ACTIVE            '/dev/rootvg/lv_ILMT' [416.00 MB] inherit
  ACTIVE            '/dev/rootvg/lv_OMNI' [256.00 MB] inherit
  ACTIVE            '/dev/rootvg/lv_nimsoft' [128.00 MB] inherit
  ACTIVE            '/dev/rootvg/lv_scm' [512.00 MB] inherit
root@arecibo:/#

Ensuite nous allons créer le FS.

root@arecibo:/# mkfs.ext3 /dev/vg_apps/lv_wlc
mke2fs 1.39 (29-May-2006)
Filesystem label=
OS type: Linux
Block size=4096 (log=2)
Fragment size=4096 (log=2)
256000 inodes, 512000 blocks
25600 blocks (5.00%) reserved for the super user
First data block=0
Maximum filesystem blocks=524288000
16 block groups
32768 blocks per group, 32768 fragments per group
16000 inodes per group
Superblock backups stored on blocks:
        32768, 98304, 163840, 229376, 294912

Writing inode tables: done
Creating journal (8192 blocks): done
Writing superblocks and filesystem accounting information: done

This filesystem will be automatically checked every 38 mounts or
180 days, whichever comes first.  Use tune2fs -c or -i to override.
root@arecibo:/#

Puis crééer le point de montage (répertoire)

root@arecibo:/# mkdir -p /apps/WebSphere85/LibertyCore
root@arecibo:/# ls -l /apps/WebSphere85/LibertyCore
total 0
root@arecibo:/#

Puis faire le montage du FS

root@arecibo:/# mount /dev/vg_apps/lv_wlc /apps/WebSphere85/LibertyCore
root@arecibo:/# df -k /apps/WebSphere85/LibertyCore
Filesystem           1K-blocks      Used Available Use% Mounted on
/dev/mapper/vg_apps-lv_wlc
                       2015824     35808   1877616   2% /apps/WebSphere85/LibertyCore
root@arecibo:/#

ATTENTION !!! supprimer le lost+found, sinom aucun package ne s'installera.

3.2 - Prise d'information avant l'installation du produit


Pour lancer l'installation du produit lancé les commandes suivantes :
Vérifier les packages installés, /apps/IBMIM/IM/eclipse/tools/imcl listInstalledPackages

root@arecibo:/# /apps/IBMIM/IM/eclipse/tools/imcl listInstalledPackages
com.ibm.cic.agent_1.7.3000.20140521_1925
com.ibm.websphere.IBMJAVA.v70_7.0.5000.20131010_1516
com.ibm.websphere.ND.v85_8.5.5001.20131018_2242
com.ibm.websphere.IHS.v85_8.5.5001.20131018_2242
com.ibm.websphere.PLG.v85_8.5.5001.20131018_2242
root@arecibo:/#

Vérifier les packages disponible sur le repository à partir de votre serveur.
root@arecibo:/#/apps/IBMIM/IM/eclipse/tools/imcl listAvailablePackages -long -repositories http://saturn:8080/IMRepo/

root@arecibo:/# /apps/IBMIM/IM/eclipse/tools/imcl listAvailablePackages  -long -repositories http://saturn:8080/IMRepo/
http://saturn:8080/IMRepo/ : com.ibm.cic.agent_1.7.0.20130828_2012 : IBM▒ Installation Manager : 1.7.0
http://saturn:8080/IMRepo/ : com.ibm.cic.agent_1.7.3000.20140521_1925 : IBM▒ Installation Manager : 1.7.3
http://saturn:8080/IMRepo/ : com.ibm.websphere.BASE.v80_8.0.0.20110503_0200 : IBM WebSphere Application Server : 8.0.0.0
http://saturn:8080/IMRepo/ : com.ibm.websphere.BASE.v80_8.0.2.20111202_1708 : IBM WebSphere Application Server : 8.0.0.2
http://saturn:8080/IMRepo/ : com.ibm.websphere.BASE.v80_8.0.3.20120320_0536 : IBM WebSphere Application Server : 8.0.0.3
http://saturn:8080/IMRepo/ : com.ibm.websphere.BASE.v80_8.0.5.20121022_1902 : IBM WebSphere Application Server : 8.0.0.5
http://saturn:8080/IMRepo/ : com.ibm.websphere.BASE.v80_8.0.9.20140530_2152 : IBM WebSphere Application Server : 8.0.0.9
http://saturn:8080/IMRepo/ : com.ibm.websphere.BASE.v85_8.5.5000.20130514_1044 : IBM WebSphere Application Server : 8.5.5.0
http://saturn:8080/IMRepo/ : com.ibm.websphere.BASE.v85_8.5.5001.20131018_2242 : IBM WebSphere Application Server : 8.5.5.1
http://saturn:8080/IMRepo/ : com.ibm.websphere.BASE.v85_8.5.5002.20140408_1947 : IBM WebSphere Application Server : 8.5.5.2
http://saturn:8080/IMRepo/ : com.ibm.websphere.IBMJAVA.v70_7.0.4001.20130510_2103 : IBM WebSphere SDK Java Technology Edition (Optional) : 7.0.4.1
http://saturn:8080/IMRepo/ : com.ibm.websphere.IBMJAVA.v70_7.0.5000.20131010_1516 : IBM WebSphere SDK Java Technology Edition (Optional) : 7.0.5.0
http://saturn:8080/IMRepo/ : com.ibm.websphere.IBMJAVA.v70_7.0.6001.20140324_2202 : IBM WebSphere SDK Java Technology Edition (Optional) : 7.0.6.1
http://saturn:8080/IMRepo/ : com.ibm.websphere.IHS.v80_8.0.0.20110503_0200 : IBM HTTP Server for WebSphere Application Server : 8.0.0.0
http://saturn:8080/IMRepo/ : com.ibm.websphere.IHS.v80_8.0.2.20111202_1708 : IBM HTTP Server for WebSphere Application Server : 8.0.0.2
http://saturn:8080/IMRepo/ : com.ibm.websphere.IHS.v80_8.0.3.20120320_0536 : IBM HTTP Server for WebSphere Application Server : 8.0.0.3
http://saturn:8080/IMRepo/ : com.ibm.websphere.IHS.v80_8.0.5.20121022_1902 : IBM HTTP Server for WebSphere Application Server : 8.0.0.5
http://saturn:8080/IMRepo/ : com.ibm.websphere.IHS.v80_8.0.9.20140530_2152 : IBM HTTP Server for WebSphere Application Server : 8.0.0.9
http://saturn:8080/IMRepo/ : com.ibm.websphere.IHS.v85_8.5.0.20120501_1108 : IBM HTTP Server for WebSphere Application Server : 8.5.0.0
http://saturn:8080/IMRepo/ : com.ibm.websphere.IHS.v85_8.5.2.20130327_1831 : IBM HTTP Server for WebSphere Application Server : 8.5.0.2
http://saturn:8080/IMRepo/ : com.ibm.websphere.IHS.v85_8.5.5000.20130514_1044 : IBM HTTP Server for WebSphere Application Server : 8.5.5.0
http://saturn:8080/IMRepo/ : com.ibm.websphere.IHS.v85_8.5.5001.20131018_2242 : IBM HTTP Server for WebSphere Application Server : 8.5.5.1
http://saturn:8080/IMRepo/ : com.ibm.websphere.IHS.v85_8.5.5002.20140408_1947 : IBM HTTP Server for WebSphere Application Server : 8.5.5.2
http://saturn:8080/IMRepo/ : com.ibm.websphere.ND.v80_8.0.0.20110503_0200 : IBM WebSphere Application Server Network Deployment : 8.0.0.0
http://saturn:8080/IMRepo/ : com.ibm.websphere.ND.v80_8.0.2.20111202_1708 : IBM WebSphere Application Server Network Deployment : 8.0.0.2
http://saturn:8080/IMRepo/ : com.ibm.websphere.ND.v80_8.0.3.20120320_0536 : IBM WebSphere Application Server Network Deployment : 8.0.0.3
http://saturn:8080/IMRepo/ : com.ibm.websphere.ND.v80_8.0.5.20121022_1902 : IBM WebSphere Application Server Network Deployment : 8.0.0.5
http://saturn:8080/IMRepo/ : com.ibm.websphere.ND.v80_8.0.9.20140530_2152 : IBM WebSphere Application Server Network Deployment : 8.0.0.9
http://saturn:8080/IMRepo/ : com.ibm.websphere.ND.v85_8.5.0.20120501_1108 : IBM WebSphere Application Server Network Deployment : 8.5.0.0
http://saturn:8080/IMRepo/ : com.ibm.websphere.ND.v85_8.5.2.20130327_1831 : IBM WebSphere Application Server Network Deployment : 8.5.0.2
http://saturn:8080/IMRepo/ : com.ibm.websphere.ND.v85_8.5.5000.20130514_1044 : IBM WebSphere Application Server Network Deployment : 8.5.5.0
http://saturn:8080/IMRepo/ : com.ibm.websphere.ND.v85_8.5.5001.20131018_2242 : IBM WebSphere Application Server Network Deployment : 8.5.5.1
http://saturn:8080/IMRepo/ : com.ibm.websphere.ND.v85_8.5.5002.20140408_1947 : IBM WebSphere Application Server Network Deployment : 8.5.5.2
http://saturn:8080/IMRepo/ : com.ibm.websphere.PLG.v80_8.0.0.20110503_0200 : Web Server Plug-ins for IBM WebSphere Application Server : 8.0.0.0
http://saturn:8080/IMRepo/ : com.ibm.websphere.PLG.v80_8.0.2.20111202_1708 : Web Server Plug-ins for IBM WebSphere Application Server : 8.0.0.2
http://saturn:8080/IMRepo/ : com.ibm.websphere.PLG.v80_8.0.3.20120320_0536 : Web Server Plug-ins for IBM WebSphere Application Server : 8.0.0.3
http://saturn:8080/IMRepo/ : com.ibm.websphere.PLG.v80_8.0.5.20121022_1902 : Web Server Plug-ins for IBM WebSphere Application Server : 8.0.0.5
http://saturn:8080/IMRepo/ : com.ibm.websphere.PLG.v80_8.0.9.20140530_2152 : Web Server Plug-ins for IBM WebSphere Application Server : 8.0.0.9
http://saturn:8080/IMRepo/ : com.ibm.websphere.PLG.v85_8.5.0.20120501_1108 : Web Server Plug-ins for IBM WebSphere Application Server : 8.5.0.0
http://saturn:8080/IMRepo/ : com.ibm.websphere.PLG.v85_8.5.2.20130327_1831 : Web Server Plug-ins for IBM WebSphere Application Server : 8.5.0.2
http://saturn:8080/IMRepo/ : com.ibm.websphere.PLG.v85_8.5.5000.20130514_1044 : Web Server Plug-ins for IBM WebSphere Application Server : 8.5.5.0
http://saturn:8080/IMRepo/ : com.ibm.websphere.PLG.v85_8.5.5001.20131018_2242 : Web Server Plug-ins for IBM WebSphere Application Server : 8.5.5.1
http://saturn:8080/IMRepo/ : com.ibm.websphere.PLG.v85_8.5.5002.20140408_1947 : Web Server Plug-ins for IBM WebSphere Application Server : 8.5.5.2
http://saturn:8080/IMRepo/ : com.ibm.websphere.liberty.IBMJAVA.v70_7.0.4001.20130510_2103 : IBM WebSphere SDK Java Technology Edition Version 7.0 for Liberty : 7.0.4.1
http://saturn:8080/IMRepo/ : com.ibm.websphere.liberty.IBMJAVA.v70_7.0.5000.20131010_1516 : IBM WebSphere SDK Java Technology Edition Version 7.0 for Liberty : 7.0.5.0
http://saturn:8080/IMRepo/ : com.ibm.websphere.liberty.IBMJAVA.v70_7.0.6001.20140324_2202 : IBM WebSphere SDK Java Technology Edition Version 7.0 for Liberty : 7.0.6.1
http://saturn:8080/IMRepo/ : com.ibm.websphere.liberty.v85_8.5.5000.20130514_1313 : IBM WebSphere Application Server Liberty Core : 8.5.5.0
http://saturn:8080/IMRepo/ : com.ibm.websphere.liberty.v85_8.5.5001.20131019_0136 : IBM WebSphere Application Server Liberty Core : 8.5.5.1
http://saturn:8080/IMRepo/ : com.ibm.websphere.liberty.v85_8.5.5002.20140408_2239 : IBM WebSphere Application Server Liberty Core : 8.5.5.2
root@arecibo:/#


3.3 - Installation de WebSphere Liberty Core


L'option "-sP" correspond à la barre de progression.
/apps/IBMIM/IM/eclipse/tools/imcl install com.ibm.websphere.liberty.v85_8.5.5002.20140408_2239 -installationDirectory /apps/WebSphere85/LibertyCore -sharedResourcesDirectory /apps/IBMIM/IMShared -repositories "http://saturn:8080/IMRepo/" -acceptLicense -sP

root@arecibo:/# /apps/IBMIM/IM/eclipse/tools/imcl install com.ibm.websphere.liberty.v85_8.5.5002.20140408_2239 -installationDirectory /apps/WebSphere85/LibertyCore -sharedResourcesDirectory /apps/IBMIM/IMShared -repositories "http://saturn:8080/IMRepo/" -acceptLicense -sP
00:01.05 WARNING [main] com.ibm.cic.agent.core.internal.commands.PreferenceCommand execute
  CRIMA1014W The location for the shared resources directory cannot be modified: old /opt/IBM/IMShared; new /apps/IBMIM/IMShared.
  Installation Manager cannot write to the shared resources directory.
  Create a directory for the shared resources directory or choose an existing directory that has write permissions.
                 25%                50%                75%                100%
------------------|------------------|------------------|------------------|
............................................................................
Installed com.ibm.websphere.liberty.v85_8.5.5002.20140408_2239 to the /apps/WebSphere85/LibertyCore directory.
root@arecibo:/#

3.4 - Installation du JDK


/apps/IBMIM/IM/eclipse/tools/imcl install com.ibm.websphere.liberty.IBMJAVA.v70_7.0.6001.20140324_2202 -installationDirectory /apps/WebSphere85/LibertyCore -sharedResourcesDirectory /apps/IBMIM/IMShared -repositories "http://saturn:8080/IMRepo/" -acceptLicense -sP

root@arecibo:/# /apps/IBMIM/IM/eclipse/tools/imcl install com.ibm.websphere.liberty.IBMJAVA.v70_7.0.6001.20140324_2202 -installationDirectory /apps/WebSphere85/LibertyCore -sharedResourcesDirectory /apps/IBMIM/IMShared -repositories "http://saturn:8080/IMRepo/" -acceptLicense -sP
00:01.07 WARNING [main] com.ibm.cic.agent.core.internal.commands.PreferenceCommand execute
  CRIMA1014W The location for the shared resources directory cannot be modified: old /opt/IBM/IMShared; new /apps/IBMIM/IMShared.
  Installation Manager cannot write to the shared resources directory.
  Create a directory for the shared resources directory or choose an existing directory that has write permissions.
                 25%                50%                75%                100%
------------------|------------------|------------------|------------------|
............................................................................
Installed com.ibm.websphere.liberty.IBMJAVA.v70_7.0.6001.20140324_2202 to the /apps/WebSphere85/LibertyCore directory.
root@arecibo:/#


3.5 - Vérification de l'installation



root@arecibo:/# cd /apps/WebSphere85/LibertyCore
root@arecibo:/apps/WebSphere85/LibertyCore# ls -lrt
total 64
-rw-r--r-- 1 root root 11336 Apr  8 22:39 README.TXT
-rw-r--r-- 1 root root   379 Apr  8 22:39 Copyright.txt
drwxr-xr-x 4 root root  4096 Sep  5 11:21 usr
drwxr-xr-x 3 root root  4096 Sep  5 11:21 templates
drwxr-xr-x 2 root root  4096 Sep  5 11:21 lafiles
drwxr-xr-x 5 root root  4096 Sep  5 11:21 dev
drwxr-xr-x 3 root root  4096 Sep  5 11:21 clients
drwxr-xr-x 9 root root 20480 Sep  5 11:21 lib
drwxr-xr-x 3 root root  4096 Sep  5 11:21 bin
drwxr-xr-x 4 root root  4096 Sep  5 11:35 java
root@arecibo:/apps/WebSphere85/LibertyCore#

On va faire un petit "chown -Rf wlc:web".
Et hop on lance notre serveur Liberty Core.

root@arecibo:/apps# chown -Rf wlc:web WebSphere85
root@arecibo:/apps# chmod 755 WebSphere85
root@arecibo:/apps/WebSphere85/LibertyCore/bin# su - was85
wlc@arecibo:/home/was85$ cd /apps/WebSphere85/LibertyCore/
wlc@arecibo:/apps/WebSphere85/LibertyCore/bin$ export JAVA_HOME=/apps/WebSphere85/LibertyCore/java/java_1.7_64
wlc@arecibo:/apps/WebSphere85/LibertyCore/bin$ export PATH=${JAVA_HOME}/bin:$PATH
wlc@arecibo:/apps/WebSphere85/LibertyCore/bin$ ./server create wlptest
Server wlptest created.
wlc@arecibo:/apps/WebSphere85/LibertyCore/bin$ ./server start wlptest
Starting server wlptest.
Server wlptest started with process ID 31455.
wlc@arecibo:/apps/WebSphere85/LibertyCore/bin$

Pour vérifier les Features Packs de Liberty Core.

was85@arecibo:/apps/WebSphere85/LibertyCore/bin$ ./productInfo featureInfo
appSecurity-1.0 [1.1.0]
appSecurity-2.0 [1.0.0]
beanValidation-1.0 [1.0.0]
blueprint-1.0 [1.0.0]
cdi-1.0 [1.0.0]
collectiveMember-1.0 [1.0.0]
concurrent-1.0 [1.0.0]
distributedMap-1.0 [1.0.0]
ejbLite-3.1 [1.0.0]
jaxrs-1.1 [1.0.0]
jdbc-4.0 [1.0.0]
jndi-1.0 [1.0.0]
jpa-2.0 [1.0.0]
jsf-2.0 [1.0.0]
json-1.0 [1.0.0]
jsp-2.2 [1.0.0]
ldapRegistry-3.0 [1.0.0]
localConnector-1.0 [1.0.0]
managedBeans-1.0 [1.0.0]
monitor-1.0 [1.0.0]
oauth-2.0 [1.0.0]
osgi.jpa-1.0 [1.0.0]
osgiConsole-1.0 [1.0.0]
restConnector-1.0 [1.0.0]
serverStatus-1.0 [1.0.0]
servlet-3.0 [1.0.0]
sessionDatabase-1.0 [1.0.0]
ssl-1.0 [1.0.0]
timedOperations-1.0 [1.0.0]
wab-1.0 [1.0.0]
webCache-1.0 [1.0.0]
webProfile-6.0 [6.0.0]
was85@arecibo:/apps/WebSphere85/LibertyCore/bin$

4. Configuration d'un Liberty Core


Dans l'exemple suivant nous allons configurer un serveur Liberty Core sur le serveur "arecibo" .
Pour se faire nous allons devoir réaliser les étape suivante :

4.1 - Modification du fichier serveur.xml


Dans le répertoire /apps/WebSphere85/LibertyCore/usr/servers/wlptest du serveur arecibo modifié le fichier serveur.xml
vi server.xml
<server description="new server" >

    <!-- Enable features -->
    <featureManager>
        <feature>jsp-2.2</feature>
    </featureManager>

    <httpEndpoint
        id="defaultHttpEndpoint"
        host="arecibo"
        httpPort="9080"
        httpsPort="9443" />

</server>

Re-démarré le serveur "wlptest" à l'aide des commandes ./server stop wlptest puis ./server start wlptest

was85@arecibo:/apps/WebSphere85/LibertyCore/bin$ ./server stop wlptest
Stopping server wlptest.
Server wlptest stopped.
was85@arecibo:/apps/WebSphere85/LibertyCore/bin$ ./server start wlptest
Starting server wlptest.
Server wlptest started with process ID 5353.
was85@arecibo:/apps/WebSphere85/LibertyCore/bin$


Vous obtenez le résultat suivant :

5. Installation d'une application


Dans l'exemple suivant nous allons installer une application sur un serveur Liberty Core sur le serveur "arecibo" .
Pour se faire nous allons déployer une application test fournie par IBM :

5.1 - Installation du war DevWorkSample.war


Dans le répertoire /apps/WebSphere85/LibertyCore/usr/servers/wlptest/apps du serveur arecibo copier le fichier DevWorkSample.war
Puis modifié le fichier server.xml en ajoutant les balises "application" ci-dessous :
vi server.xml
<server description="new server" >

    <!-- Enable features -->
    <featureManager>
        <feature>jsp-2.2</feature>
    </featureManager>

    <httpEndpoint
        id="defaultHttpEndpoint"
        host="arecibo"
        httpPort="9080"
        httpsPort="9443" />
        
  <application id="DevworkSample" location="DevWorkSample.war" name="DevworkSample" type="war">
        <classloader>
            <privateLibrary name="UnShared">
                <fileset dir="C:\example\notshared" includes="policy.jar"/>
            </privateLibrary>
            <commonLibrary name="Shared">
                <fileset dir="C:\sharedjars" includes="shared.jar"/>
            </commonLibrary>
        </classloader>
</application>
        

</server>

Re-démarré le serveur "wlptest" à l'aide des commandes ./server stop wlptest puis ./server start wlptest

was85@arecibo:/apps/WebSphere85/LibertyCore/bin$ ./server stop wlptest
Stopping server wlptest.
Server wlptest stopped.
was85@arecibo:/apps/WebSphere85/LibertyCore/bin$ ./server start wlptest
Starting server wlptest.
Server wlptest started with process ID 5353.
was85@arecibo:/apps/WebSphere85/LibertyCore/bin$


Vous obtenez le résultat suivant :


com.ibm.jsse2.xxx au lieu de com.ibm.websphere.xxx
fichier xml
sample wlc
Exemple de war