Home > Installation
Install Note for WebSphere 5.1
Warnings
- This chapter describes a quick installation example of EBX.Platform on IBM WebSphere 5.1 Application Server.
- It does not replace the documentation of this application server.
- It is not a general installation recommendation, since actual installation process is fixed by architecture choices (technical environment, applications mutualization, delivery process, company choices, etc.).
- The complete description of the components needed by EBX.Platform is given in chapter Components.
- In this document, we do not deploy an additional EBX.Platform module. For that, a good practice would be to rebuild an EAR with the EBX.Platform module
as a Web application at the same level as other EBX.Platform Web applications. In this case, the web application must declare
its class-path dependency in the standard manner specified by Java™ 2 Platform Enterprise Edition Specification, v1.4:
J2EE.8.2 Optional Package Support
(...)
A JAR format file (such as a .jar file, .war file, or .rar file) can reference a .jar file by naming the referenced .jar file in a Class-Path header in the referencing JAR file’s Manifest file. The referenced .jar file is named using a URL relative to the URL of the referencing JAR file. The Manifest file is named META-INF/MANIFEST.MF in the JAR file. The Class-Path entry in the Manifest file is of the form
Class-Path: list-of-jar-files-separated-by-spacesIn an "industrialized" process, we strongly recommend to develop a script that automatically builds the EAR, with the specific EBX.Platform module(s), the EBX.Platform Web applications and also all the shared libraries needed.
- In order to avoid unpredictable behavior, the minimal rule to follow is to
avoid any duplication of
ebx.jaror other libraries on the class-loading system.
Installation Example Overview
- Create EBX_HOME directory and unzip ebx_home.zip
- Install EBX.Platform library: Websphere Server Application - First steps, Environment, Shared Libraries
- Configure JVM arguments (Java system properties): Servers, Application servers, server1, Process Definition, Java Virtual Machine, Generic JVM arguments
- Deploy EBX.Platform application: Applications, Install New Application
Installation Example Detail
- Create a EBX_HOME directory, for example C:\EBX\home
- Create a EBX_LIB directory, for example C:\EBX\lib
- Create a EBX_EAR directory, for example C:\EBX\ear
- Unzip the file ebx_home.zip in EBX_HOME. In our example, we will then have the following files:
- Copy third-party library files to EBX_LIB directory. In our example, we will have:
- Copy the file EBX.software/webapps/ear-packaging/ebxPlatform.ear to EBX_EAR. In our example, we will have:
- Launch "Websphere Server Application - First Steps " console
- Start the server
- Launch the administration console and login
- Specify the EBX.Platform library:
- In the menu on the left, click on "Environment "
- Click on "Shared Libraries "
- In the "Shared Libraries " page, click on the button "New ". The "Shared Librarie > New " page is then displayed.
- In the field *Name, enter the library name. In our example, it is lib_of_ebx
- In the field *Classpath, enter the EBX_LIB path. In our example, it is C:\EBX\lib
- Click on the button "OK"
- Save modifications by clicking on "Save" in the "Messages" panel on top of the "Shared Libraries" page
- Click on the button "Save "
- In the menu on the left, click on "Servers"
- Click on "Application servers"
- In the "Application servers" page, click on the server name. In our example, the server name is server1.
- In the configuration page of "Application servers > server1", click on "Process Definition"
- Click on "Java Virtual Machine", which is a sub-menu of "Additional Properties"
- In the field "Generic JVM arguments", enter:
-Debx.home=C:\EBX\home -Debx.properties=C:\EBX\home\ebx.properties - Click on the button "OK", at the bottom of the page
- Save modifications by click on "Save" in the "Messages" panel at the top of the page, then click on the button "Save"
- In the menu on the left, click on "Applications"
- Click on "Install New Application"
- In the page "Preparing for the application installation", in the field "Local path", select ebxPlatform.ear file. In our example, it is C:\EBX\ear\ebxPlatform.ear
- Click on the button "Next" at the bottom of the page "Preparing for the application installation"
- Select "Default virtual host name for Web modules"
- Click on the button "Next"
- Click on the button "Continue"
- In the page "Install new Application, Step 1: Provide options to perform the installation", the field "Directory to install application" is the installation directory of EBX.Platform. In our example, it is "C:\EBX\ear"
- Click on the button "Next"
- In the page "Install new Application, Step 2: Map virtual hosts for web modules", click on the button "Next"
- In the page "Install new Application, Step 3: Map resource references to resources",
as we don't use JNDI resource in this example, input "
DefaultDatasource", then click on the button "Next" - In the page "Install new Application, Step 4: Map modules to application servers", select all modules: ebx.war, ebx-root-1.0.war, ebx-manager-1.0.war
- Click on the button "Next"
- Click on the button "Finish"
- The page "Installing… " is displayed. The message "Application EBX.Platform installed successfully" will be displayed at the bottom of the page
- In the menu on the left, click on "Applications"
- Click on "Enterprise Applications"
- In the page "Enterprise Applications", click on EBX.Platform
- In the page "Enterprise Applications > EBX.Platform", click on "Libraries", below "Additional Properties"
- Click on the button "Add"
- Select the library we added in step 10.4: lib_of_ebx
- Click on the button "OK"
- Save modifications by clicking on "Save" in the "Messages" panel at the top of the "Enterprise Applications" page
- Click on the button "Save"
- In the "Websphere Server Application - First steps" console, stop the server
- In the "Websphere Server Application - First steps", start the server
- Restart the administration console, in the menu on the left, click on "Applications"
- Click on "Enterprise Applications"
- In the page "Enterprise Applications", select EBX.Platform
- Click on the button "Start".
- Run EBX.Platform.
C:\EBX\home\schemas, a directory
C:\EBX\home\ebx.properties, a text file
C:\EBX.software\lib\activation.jar
C:\EBX.software\lib\mail.jar
C:\EBX.software\lib\hsqldb.jar
The exact description of these components is given in chapter Components. Obviously, if those components are already deployed on the class-loading system, they don't have to be duplicated.
C:\EBX\ear\ebxPlatform.ear
Here, ebx.home is the directory of EBX_HOME, ebx.properties is the configuration file of EBX. In our example, they are respectively C:\EBX\home and C:\EBX\home\ebx.properties
Run EBX.Manager Web application: http://localhost:9080/ebx/.
At first launch, EBX.Platform Wizard helps you to configure the default properties of your initial repository.
Note d'installation pour WebSphere 5.1
Avertissements
- Ce chapitre décrit un exemple d'installation rapide de EBX.Platform sur IBM WebSphere Application Server v5.1.
- Il ne remplace pas la documentation de ce serveur d'application.
- Ce n'est pas une recommandation générale d'installation, puisque le processus réel d'installation est basé sur des choix d'architecture (environnement technique, mutualisation des applications, procédures de livraison, choix d'entreprise, etc.).
- La description des composants requis et optionnels pour EBX.Platform est fournie dans le chapitre Composants.
- Dans cet exemple, nous ne déployons pas un module EBX.Platform tiers.
Pour cela, une bonne pratique est de construire un EAR qui inclut le module EBX.Platform
en tant qu'application Web au même niveau que les applications Web de EBX.
En ce cas, les fichiers
wardoivent déclarer leurs dépendances de la manière standard qui est spécifiée par le document "Java™ 2 Platform Enterprise Edition Specification, v1.4" :J2EE.8.2 Optional Package Support
(...)
A JAR format file (such as a .jar file, .war file, or .rar file) can reference a .jar file by naming the referenced .jar file in a Class-Path header in the referencing JAR file’s Manifest file. The referenced .jar file is named using a URL relative to the URL of the referencing JAR file. The Manifest file is named META-INF/MANIFEST.MF in the JAR file. The Class-Path entry in the Manifest file is of the form
Class-Path: list-of-jar-files-separated-by-spacesPour un processus "industrialisé", nous recommandons fortement de développer un script qui construit automatiquement l'EAR, en y incluant les modules EBX.Platform spécifiques, les applications Web EBX.Platform fournies ainsi que toutes les bibliothèques nécessaires.
- Afin d'éviter tout comportement imprévisible, la règle minimale à suivre est d'éviter toute duplication
du fichier
ebx.jarou de toute autre bibliothèque sur le système de class-loading du serveur d'application.
Résumé d'un exemple de procédure
- Créer le répertoire EBX_HOME et décompresser ebx_home.zip
- Installer la bibliothèque EBX.Platform: Websphere Server Application - Premiers pas, Environment, Shared Libraries
- Configurer les arguments JVM (Java system properties) : Servers, Application servers, server1, Process Definition, Java Virtual Machine, Generic JVM arguments
- Déployer l’application EBX.Platform :
Applications, Install New Application
Détail d'un exemple de procédure
- Créer un répertoire en tant que EBX_HOME, par exemple C:\EBX\home
- Créer un répertoire en tant que EBX_LIB, par exemple C:\EBX\lib
- Créer un répertoire en tant que EBX_EAR, par exemple C:\EBX\ear
- Décompresser le fichier ebx_home.zip vers EBX_HOME. Dans notre exemple, après la décompression, nous aurons les fichiers suivants :
- Copier les bibliothèques partagées dans le répertoire EBX_LIB. Dans notre exemple, nous aurons :
- Copier le fichier EBX.software/webapps/ear-packaging/ebxPlatform.ear vers le répertoire EBX_EAR. Dans notre exemple, nous aurons :
- Lancer la console "Websphere Server Application - Premiers pas"
- Démarrer le serveur
- Lancer la console d’administration et s’identifier
- Spécifier la bibliothèque EBX.Platform :
- Sur les menus de gauche, cliquer sur "Environment"
- Cliquer sur "Shared Libraries"
- Dans la page de "Shared Libraries", cliquer le bouton "New". La page "Shared Librarie > New" s’affiche.
- Dans le champ *Name, entrer le nom de libraire, par exemple lib_of_ebx
- Dans le champ *Classpath, entrer le chemin de EBX_LIB. Dans notre exemple, c'est C:\EBX\lib
- Cliquer sur le bouton "OK"
- Sauvegarder les modifications en cliquant sur "Save" du panel "Messages" situé en haut de la page "Shared Libraries"
- Cliquer sur le bouton "Save"
- Sur les menus de gauche, cliquer sur "Servers"
- Cliquer sur "Application servers"
- Dans la page "Application servers", cliquer le nom du serveur. Dans notre exemple, le nom du serveur est server1.
- Dans la page de Configuration de "Application servers > server1", cliquer "Process Definition"
- Cliquer sur "Java Virtual Machine", qui est un sous-menu de "Additional Properties"
- Dans le champ "Generic JVM arguments", entrer :
-Debx.home=C:\EBX\home -Debx.properties=C:\EBX\home\ebx.properties - Cliquer le bouton "OK", qui se situe en bas de la page
- Sauvegarder les modifications en cliquant "Save" du panel "Messages" situé en haut de la page, puis cliquer sur le bouton "Save".
- Sur les menus de gauche, cliquer sur "Applications"
- Cliquer sur "Install New Application"
- Dans la page "Preparing for the application installation", dans le champ "Local path", sélectionner le fichier ebxPlatform.ear. Dans notre exemple, c'est C:\EBX\ear\ebxPlatform.ear
- Cliquer sur le bouton "Next" en bas de la page "Preparing for the application installation"
- Sélectionner "Default virtual host name for Web modules"
- Cliquer sur le bouton "Next"
- Cliquer sur le bouton "Continue"
- Dans la page "Install new Application, Step 1 : Provide options to perform the installation", le champ "Directory to install application" est le répertoire d’installation d’EBX.Platform. Dans notre exemple, c'est "C:\EBX\ear"
- Cliquer sur le bouton "Next"
- Dans la page "Install new Application, Step 2 : Map modules to servers", cliquer sur le bouton "Next"
- Dans la page "Install new Application, Step 3 : Map resource references to resources",
comme nous n'utilisons pas de ressource JNDI dans cet exemple, saisir
DefaultDatasourceet cliquer sur le bouton "Next" - Dans la page "Install new Application, Step 4 : Map modules to application servers", sélectionner tous les modules : ebx.war, ebx-root-1.0.war, ebx-manager-1.0.war.
- Cliquer sur le bouton "Next "
- Cliquer sur le bouton "Finish "
- La page "Installing… " s’affiche. Le message "Application EBX.Platform installed successfully" s’affichera en bas de page
- Sur les menus de gauche, cliquer sur "Applications"
- Cliquer sur "Enterprise Applications"
- Dans la page "Enterprise Applications", cliquer sur EBX.Platform
- Dans la page "Enterprise Applications > EBX.Platform", cliquer sur "Libraries", qui est en-dessous de "Additional Properties"
- Cliquer sur le bouton "Add"
- Sélectionner la libraire que nous avons ajoutée en étape 14 : lib_of_ebx
- Cliquer sur le bouton "OK"
- Sauvegarder les modifications en cliquant sur "Save" du panel "Messages" situé en haut de la page "Enterprise Applications"
- Cliquer sur le bouton "Save"
- Dans la console "Websphere Server Application - Premiers pas", arrêter le serveur
- Dans la console "Websphere Server Application - Premiers pas", démarrer le serveur
- Relancer la console d’administration, sur les menus de gauche, cliquer "Applications"
- Cliquer sur "Enterprise Applications"
- Dans la page "Enterprise Applications", sélectionner EBX.Platform
- Cliquer sur le bouton "Start"
- Valider votre installation.
C:\EBX\home\schemas, un répertoire
C:\EBX\home\ebx.properties, un fichier texte
C:\EBX.software\lib\activation.jar
C:\EBX.software\lib\mail.jar
C:\EBX.software\lib\hsqldb.jar
Ces librairies tierces sont décrites de manière plus détaillée au chapitre Composants. Evidemment, elles ne sont pas à installer si elles sont déjà intégrées au système de class-loading du serveur.
C:\EBX\ear\ebxPlatform.ear
Ici, ebx.home est le répertoire de EBX_HOME, ebx.properties est le fichier de configuration d’EBX. Dans notre exemple, ils sont respectivement : C:\EBX\home et C:\EBX\home\ebx.properties
Lancez l'application Web EBX.Manager : http://localhost:9080/ebx/.
Au premier lancement, EBX.Platform fournit un assistant permettant de configurer un référentiel de démarrage.
Home > Installation