Home
MANUEL INSTALLATION de supLeger et subLegerWebJSF V1.0
Contents
1. Install_ supLegerJSF odt Auteur JL Pasturel 23 26 Superviseur L ger Installation Avril 2006 work Executables containing this object code plus portions of the Library will still fall under Section 6 Otherwise if the work is a derivative of the Library you may distribute the object code for the work under the terms of Section 6 Any executables containing that work also fall under Section 6 whether or not they are linked directly with the Library itself 6 As an exception to the Sections above you may also combine or link a work that uses the Library with the Library to produce a work containing portions of the Library and distribute that work under terms of your choice provided that the terms permit modification of the work for the customer s own use and reverse engineering for debugging such modifications You must give prominent notice with each copy of the work that the Library is used in it and that the Library and its use are covered by this License You must supply a copy of this License If the work during execution displays copyright notices you must include the d If distribution of the work is made by offering access to copy from a designated place offer equivalent access to copy the above specified materials from the same place e Verify that the user has already received a copy of these materials or that you have already sent this user a copy For an executable the required
2. base de Tomcat 5 Servlet 2 4 JSP 2 0 devrait aussi faire l affaire Il n y a pas d utilisation d EJB 4 4Utilisation d une version ant rieure de Postgres 7 4 par exemple Je fournis deux scripts de cr ations de base 7 4 situ s sous lt server_root gt super backupdatase lancer dans l ordre sous compte DBA postgres connect templatel createEssai74 sql populate74 sql Sur quelques tests r alis s il n est pas priori n cessaire de changer de version de de driver JDBC celui de la version 8 semble convenir 4 5 Joindre l auteur Pour tout probl me ou tout bug vous pouvez me joindre l adresse e mail jean louis pasturel na fr Install supLegerJSF odt Auteur JL Pasturel 20 26 Superviseur L ger Installation Avril 2006 SANNEXE Licence LGPL GNU LESSER GENERAL PUBLIC LICENSE Version 2 1 February 1999 Copyright C 1991 1999 Free Software Foundation Inc 59 Temple Place Suite 330 Boston MA 02111 1307 USA Everyone is permitted to copy and distribute verbatim copies of this license document but changing it is not allowed source code If you link other code with the library you must provide complete object files to the recipients so that they can relink them with the library after making changes to the library and recompiling it And you must show them these terms so they know their rights We protect your rights with a two step method 1 we copyright This is t
3. En cas d chec de la connexion il faut arr ter et relancer le service 9 Ces actions sont accessibles depuis les menus programmes Postgres de Windows 3 2Cr ation de la base Lancer une commande console Windows Se positionner sous le r pertoire c opt supLeger backupdatabase Lancer la commande de connexion la base psql U postgres template1 Servir le mot de passe Sous le prompt psql lancer i createEssai sql La base se cr e Puis lancer le script de population de la base pour int grer des exemples de requ tes que l on pourra ensuite utiliser dans les agents de supLeger i populate sql 3 3Lancement du serveur de collecte des donn es Depuis l exploreur de fichier ou en ouvrant une console Windows lancer C opt supLeger super lanceServeurThread bat Pour unix Rendre exc cutable le fichier lanceServeurThread ksh chmod 755 opt supLeger super lanceServeurThread ksh puis lancer opt supLeger super lanceServeurThread ksh On peut lancer en background et ou nohup V rifier que la console n affiche pas d erreur 3 4Lancement de l agent sur les serveurs superviser Depuis l exploreur de fichier ou en ouvrant une console Windows lancer C opt supLeger agent lanceAgent bat Install_supLegerJSF odt Auteur JL Pasturel 12 26 Superviseur L ger Installation Avril 2006 Pour unix Rendre exc cutable le fichier lanceAgent bat ksh chmod 755 opt supLeger agent lanceAgent bat ksh pui
4. Installation Avril 2006 2 2 6Installation de MSYS pour Windows Optionnel Le package MSYS contient le portage des principales commandes Unix qui peuvent tre ex cut es depuis des fichiers bat de Windows Site de t l chargement http www mingw org download shtml L archive r cup r e est MSYS lt version gt exe L installer sous c msys Il existe aussi des utilitaires pstools qui donnent aussi des commandes de contr les des tats des processus et de la m moires sur le site http www sysinternals com 2 3 INSTALLATION de la partie supLegerWebJSF On suppose que l on installe la partie web application sur le meme serveur que la partie serveur de supLeger voqu e plus haut La partie supLeger WebJSF n cessite d avoir la seule archive suivante supLeger WebJSFWinstone zip Cr er le r pertoire d accueil de l application web application exemple c opt winstone sous windows ou opt winstone sous unix D zipper le fichier supLeger WebJSFWinstone zip sous ce r pertoire Noter l outil java jar permet de d zipper jar xvf supLeger WebJSFWinstone zip Install supLegerJSF odt Auteur JL Pasturel 11 26 Superviseur L ger Installation Avril 2006 3VERIFICATION DES INSTALLATIONS ET LANCEMENTS 3 1 V rification bon fonctionnement de la base postgreSQL V rifier avec Pgadmin que vous pouvez vous connecter la base J ai not sous windows XP des probl mes de d marrage du service
5. classpath supLegerV100 jar Install A la fin de l installation on peut supprimer supLegerV100 jar 2 2 5INSTALLATION supLeger cote agent Pr requis Disposer de la distribution de supLeger soit supLegerV100 jar Cr er le r pertoire c opt supLeger ou opt supLeger D poser supLegerV100 jar dans c opt supLeger ou opt supLeger Install supLegerJSF odt Auteur JL Pasturel 9 26 Superviseur L ger Installation Avril 2006 Lancer les commandes pour Windows java classpath supLegerV100 jar Install L cran ci dessous appara t Installation de supLeger partie cliente ou partie serveur Ce programme installe en fonction des choix exprim s dans les cases cocher ci dessous gt la partie cliente de supLeger gt ou la partie serveur de supLeger gt ou les deux v Partie cliente R pertoire d installation CioptsupLeger Partie serveur Outer Installer Servir le champ du r pertoire d installation et cocher la checkbox de la partie cliente et cliquer sur Installer pour nix java classpath supLegerV100 jar Install A la fin de l installation on peut supprimer supLegerV100 jar Nota On pourra installera aussi un agent sur la machine du serveur pour tester le bon fonctionnement de l ensemble et surveiller par la suite l volution de la database Postgres en fonctionnement normal Install supLegerJSF odt Auteur JL Pasturel 10 26 Superviseur L ger
6. the facility still operates and performs whatever part of its purpose remains meaningful For example a function in a library to compute square roots has a purpose that is entirely well defined independent of the application Therefore Subsection 2d requires that any version 2 instead of to this License If a newer version than version 2 of the ordinary GNU General Public License has appeared then you can specify that version instead if you wish Do not make any other change in these notices Once this change is made in a given copy it is irreversible for that copy so the ordinary GNU General Public License applies to all subsequent copies and derivative works made from that copy This option is useful when you wish to copy part of the code of the Library into a program that is not a library 4 You may copy and distribute the Library or a portion or derivative of it under Section 2 in object code or executable form application supplied function or table used by this function must under the terms of Sections 1 and 2 above provided that you be optional if the application does not supply it the square root function must still compute square roots These requirements apply to the modified work as a whole If identifiable sections of that work are not derived from the Library and can be reasonably considered independent and separate works in themselves then this License and its terms do not apply to those sect
7. Place Suite 330 Boston MA YOU OR THIRD PARTIES OR A 02111 1307 USA FAILURE OF THE LIBRARY TO OPERATE WITH ANY OTHER SOFTWARE EVEN IF Also add information on how to contact you by electronic and SUCH HOLDER OR OTHER PARTY HAS BEEN ADVISED paper mail OF THE POSSIBILITY OF SUCH DAMAGES You should also get your employer if you work as a programmer or your END OF TERMS AND CONDITIONS school if any to sign a copyright disclaimer for the library if necessary Here is a sample alter the names How to Apply These Terms to Your New Libraries Yoyodyne Inc hereby disclaims all copyright interest in the If you develop a new library and you want it to be of the greatest library Frob a library for tweaking knobs written by James possible use to the public we recommend making it free software Random Hacker that everyone can redistribute and change You can do so by lt signature of Ty Coon gt 1 April 1990 permitting Ty Coon President of Vice redistribution under these terms or alternatively under the terms of the That s all there is to it ordinary General Public License Install_ supLegerJSF odt Auteur JL Pasturel 26 26
8. d crire ci dessous l installation des composants sur une architecture Windows Pour une installation sous nix nous supposerons que l installeur sera capable d adapter cette proc dure Les logiciels utilis s proposent leur manuel d installation propres pour tout type d installation Vous vous reporterez la documentation fournie avec le logiciel pour plus de d tails Il ne sera indiqu dans ce manuel que les op rations essentielles pour l installation Il y a deux d installations r aliser installation de supLeger installation de supLegerWebJSF 2 2INSTALLATION supLeger cot serveur 2 2 1Pr requis PostgreSQL V8 pour Windows t l charger de http www postgres org La distribution de supLeger soit supLegerV100 jar Optionnel pour faciliter l criture de shell sous Windows l aide de commande Unix like t l charger le package MSYS partir de http www mingw org download shtml Les exemples donn s de programmes sous Windows utilisent MSYS 2 2 2Installation Postgres Installation de PostgreSQL Autoriser les connexions distances positionner le langage votre langue French et les codes caract res adapt s LATIN1 Cr er un utilisateur database de login essai et de password essai lui donner le droit de cr er des databases Cr er un tablespace tbs_essai sous l arborescence C PGDATA propri taire essai Sous Windows XP NTFS on donne le droit d acc s C PGDATA pour l utilis
9. invalid or unenforceable under Software Foundation we sometimes make exceptions for this Our any particular circumstance the balance of the section is intended to apply gt and the section as a whole is intended to apply in other circumstances It is not the purpose of this section to induce you to infringe any patents or other property right claims or to contest validity of any such claims this section has the sole purpose of protecting the integrity of the free software distribution system which is decision will be guided by the two goals of preserving the free status of all derivatives of our free software and of promoting the sharing and reuse of software generally NO WARRANTY 15 BECAUSE THE LIBRARY IS LICENSED FREE OF CHARGE THERE IS NO WARRANTY FOR THE LIBRARY TO THE EXTENT Install_supLegerJSF odt Auteur JL Pasturel 25 26 Superviseur L ger Installation Avril 2006 PERMITTED BY APPLICABLE LAW EXCEPT WHEN OTHERWISE STATED IN WRITING THE To apply these terms attach the following notices to the library COPYRIGHT HOLDERS AND OR It is OTHER PARTIES PROVIDE THE LIBRARY AS IS safest to attach them to the start of each source file to most WITHOUT WARRANTY OF ANY effectively KIND EITHER EXPRESSED OR IMPLIED INCLUDING convey the exclusion of warranty and each file should have at BUT NOT LIMITED TO THE least the IMPLIED WARRANTIES OF MERCHANTABILITY AND copyright line and a pointer t
10. sous l arborescence lt rep_decompactage gt supLegerWebJSF war WEB INF conf ouvrir le fichier supLeger cfg xml qui est identique a celui vu plus haut voir ci dessous lt xml version 1 0 encoding utf 8 gt lt DOCTYPE hibernate configuration PUBLIC Hibernate Hibernate Configuration DTD EN http hibernate sourceforge net hibernate configuration 2 0 dtd gt lt hibernate configuration gt lt session factory gt lt property name hibernate connection driver_class gt org postgresql Driver lt property gt lt property name hibernate connection url gt jdbc postgresq localhost 5432 essai lt property gt lt property name hibernate connection username gt essai lt property gt lt property name hibernate connection password gt essai lt property gt lt property name hibernate c3p0 min_size gt 5 lt property gt lt property name hibernate c3p0 max_size gt 20 lt property gt lt property name hibernate c3p0 timeout gt 1800 lt property gt Install supLegerJSF odt Auteur JL Pasturel 18 26 Superviseur L ger Installation Avril 2006 lt property name hibernate c3p0 max_statement gt 100 lt property gt lt property name hibernate dialect gt net sf hibernate dialect PostgreSQLDialect lt property gt lt property name show_sql gt false lt property gt lt property name use_outer_join gt true lt property gt lt fichiers de mapping gt lt mapping resource supLeger sup
11. Superviseur L ger Installation Avril 2006 MANUEL INSTALLATION de supLeger et subLegerWebJSF V1 0 Copyright et avertissement Ces sp cifications et l impl mentation du superviseur l ger sont libres de tout droit L utilisateur utilise ce produit a ses risques La licence qui s applique est la licence LGPL L auteur d cline sa responsabilit sur un ventuel mauvais fonctionnement du produit et des effets induits Install supLegerJSF odt Auteur JL Pasturel 1 26 Superviseur L ger Installation Avril 2006 Suivi des modifications Auteur Version Date Modifications JL Pasturel V1 0 30 03 2006 Initialisation Install supLegerJSF odt Auteur JL Pasturel 2 26 Superviseur L ger Installation Avril 2006 Table des mati res 1 BUT DE POU te pres pia r Ne a rA 4 kA Remarque pr liminaire ses tnt re dns rt eee A A E E nasa saute 4 1 2D finition rapide de TOURS An nn Besar deere ntm ed nine tn ant 4 1 2 1Partie SUPER sl A R E EA ont At ten enter nt RER Shen deal 4 1 2 2Partie s pLeger WebJ SE SE vast led Las ns 2 a Mal A ath od Ne 4 1 3 Architecture et principes de fonctionnement sc ccavccssacesddecerssnscansteadecnuedesseiabaiiederr aveail basecenssaydansvaadecierntes 4 Re WRAPS SUPE OCT lita eats AA E en Ne ES 3 EAT en NN S T L deu ed 4 LS2Paruesupl ser WebJ SE 0520629707002050 end Med SRE E mn ere dent b 5 2 MANUEL INSTALLATIONS en CN DE EA I R PAN
12. artie vue et m tiers pour assurer une meilleure performance je n ai pas utilis de pattern Data Transfert Object C est a dire que pour utiliser les fagades dans un autre contexte de visualisation Client lourd Struts il faudrait retoucher l g rement au code des fa ades La gestion de l acc s aux donn es et persistance en lecture seule en fait passe aussi par le m canisme POJOs Hibernate et database PostgreSQL Nota ce sont les m mes pojos que ceux de la partie supLeger mais le code est r pliqu car on peut avoir des architectures ou le superviseur de supLeger n est pas sur la m me machine que le WAS Winstone de subLegerWeb Pour cette m me raison le framework Hibernate est dupliqu dans supLeger et supLegerWeb Install supLegerJSF odt Auteur JL Pasturel 6 26 Superviseur L ger Installation Avril 2006 utilisateur ateur HTML supLegerW bJ ae aces config xml upLeger cfg xml i i PE SF Hibernate Servlet Containe q I I e S a Sr ie eq n on l n n lime aaae e IsupLeger Pz l l I I I i Agent me SE Serveurl Serveur2 Serveur3 ServeurP Sch ma 1 Architecture Logicielle Install supLegerJSF odt Auteur JL Pasturel 7 26 Superviseur L ger Installation Avril 2006 2 MANUEL INSTALLATIONS 2 1INTRODUCTION Nous allons
13. ateur windows postgres par la commande systeme sous compte administrateur manier avec pr caution bien v rifier la syntaxe avant de lancer cacls exe G postgres F E On peut ensuite cr er le tablespace l aide de Pgadmin Positionner le PATH pour atteindre les binaires de PostgreSQL chemin de la forme c Program Files PostgreSQL 8 x bin 2 2 3Installation de Hibernate 2 1 Les biblioth ques Hibernate seront amen es avec le package supLegerV100 jar Si on veut faire une mise jour on remplacera les librairies correspondantes de Hibernate avec celle de la derni re version Install supLegerJSF odt Auteur JL Pasturel 8 26 Superviseur L ger Installation Avril 2006 2 2 4Installation de la partie Serveur de supLeger Cr er le r pertoire c opt supLeger D poser supLegerV100 jar dans c opt supLeger Lancer les commandes pour Windows java classpath supLegerV100 jar Install L cran ci dessous appara t Installation de supLeger partie cliente ou partie serveur Ce programme installe en fonction des choix exprim s dans les cases cocher ci dessous gt la partie cliente de supLeger gt ou la partie serveur de supLeger gt ou les deux Partie cliente R pertoire d installation CoptisupLegel v Partie serveur Servir le champ du r pertoire d installation et cocher la checkbox de la partie serveur et cliquer sur Installer pour nix java
14. de l utilisation voir le manuel utilisateur Install supLegerJSF odt Auteur JL Pasturel 15 26 Superviseur L ger Installation Avril 2006 4UTILISATION AVANCEE 4 1 Architecture s par e de la database de supLeger et supLegerJSF 4 1 1 Sch ma de l architecture envisag e M02 Database P sateur r HTML http M01 WAS jdbc M03 Collecteur P e A seau TCP IP Agent Agent Agent Agent Serveurl Serveur2 Serveur3 ServeurP Install supLegerJSF odt Auteur JL Pasturel 16 26 Superviseur L ger Installation Avril 2006 Cette architecture correspond au cas le plus complexe 3 noeuds Les autres cas interm diaires pourront tre facilement extrapol s partir de cette architecture Les param trages ci dessous correspondent l architecture ci dessus Param trage supLeger serveur de collecte et agents Cot serveur de collecte Le fichier de Param trage est C opt supLeger super conf supLeger cfg xml Le contenu est le suivant lt xml version 1 0 encoding utf 8 gt lt DOCTYPE hibernate configuration PUBLIC Hibernate Hibernate Configuration DTD EN http hibernate sourceforge net hibernate configuration 2 0 dtd gt lt hibernate configuration gt lt session factory gt lt property name hibernate connection driver_class gt org postgresql Driver lt proper
15. ed uses the Library as object code and or source code so that the user can modify the Library and then relink to produce a modified executable containing the modified Library It is understood that the user who changes the contents of definitions files in the Library will not necessarily be able to recompile the application to use the modified definitions b Use a suitable shared library mechanism for linking with the Library A suitable mechanism is one that 1 uses at run time a copy of the library already present on the user s computer system on the Library and of the other library facilities is otherwise permitted and provided that you do these two things a Accompany the combined library with a copy of the same work based on the Library uncombined with any other library facilities This must be distributed under the terms of the Sections above b Give prominent notice with the combined library of the fact that part of it is a work based on the Library and explaining rather than copying library functions into the executable and 2 where to find the accompanying uncombined form of the same will operate properly with a modified version of the library if the user installs one as long as the modified version is interface compatible with the version that the work was made with c Accompany the work with a written offer valid for at least three years to give the same user the materials specified in Sub
16. erviseur pojos InstanceA ppli hbm xml gt lt mapping resource supLeger superviseur pojos MessageArchive hbm xml gt lt mapping resource supLeger superviseur pojos MessageRecu hbm xml gt lt mapping resource supLeger superviseur pojos Requete hbm xml gt lt mapping resource supLeger superviseur pojos Role hbm xml gt lt mapping resource supLeger superviseur pojos Serveur hbm xml gt lt mapping resource supLeger superviseur pojos Utilisateur hbm xml gt lt mapping resource supLeger superviseur pojos Derniermessage hbm xml gt lt session factory gt lt hibernate configuration gt et comme pr c demment La ligne en gras est a param trer il faut donner l adresse le la machine contenant la database en remplacement de localhost Une adresse de type DNS est pr f rable Sauver le fichier et recr er l archive war par exemple par jar cvf c tmp supLegerWebJSF war r cup rer le fichier war sous c tmp et repositionnez le sous le r pertoire ad quat de votre WAS Par exemple sous c opt winstone pour ma configuration 4 2 Internationalisation SuplegerWebJSF est livr dans cette version avec une interface Frangaise et une interface Anglaise Le fichier au format Java properties est sous l arborescence supLeger WebJSF WEB INF classes demo bundle le fichier de configuration en langue anglaise est Messages _en properties A partir de ce fichier on peut cr er les autres internationalisation le
17. est a param trer il faut donner l adresse le la machine contenant la database en remplacement de localhost Une adresse de type DNS est pr f rable Install supLegerJSF odt Auteur JL Pasturel 17 26 Superviseur L ger Installation Avril 2006 Cot Agent sur chaque serveur supervis Ne pas oublier aussi sur chaque agent de donner l adresse DNS du serveur de collecte le fichier de param trage est C opt supLeger agent conf supLegerAgent conf IP_ ADRESSE 127 0 0 1 5712 HOSTNAME localhost DNS_ADRESSE localhost localdomain 5712 SOCKET LOCAL 5306 Il s agit la aussi de remplacer l adresse localhost localdomain par l adresse du serveur de collecte Donner une adresse DNS ou un alias accessible par le r seau Le hostname correspond au nom du serveur changer pour identifier d une mani re unique le serveur il n est pas besoin que cela soit le hostname r el du serveur 4 1 2 Parametrage de supLegerWebJSF Il s agit aussi de mettre jour le fichier de configuration Hibernate qui se trouve dans l archive supLegerWebJSF war Pour cela il faut d compacter l archive war dans un r pertoire part Le d compactage peut se faire avec l outil jar ou winzip ou unzip en fonction des Operating Syst mes Par exemple la commande jar xvf supLegerWebJSF war d compacte le fichier Supprimer le fichier supLegerWebJSF war pour viter de l int grer la re cr ation de l archive Il faut aller ensuite
18. form of the work that uses the Library must include any data and utility programs needed for reproducing the executable from it However as a special exception the materials to be distributed need not include anything that is normally distributed in either source or binary form with the major components compiler kernel and so on of the operating system on which the executable runs unless that component itself accompanies the executable It may happen that this requirement contradicts the license copyright notice for the Library among them as well as a referencerestrictions of other proprietary libraries that do not normally directing the user to the copy of this License Also you must do one of these things a Accompany the work with the complete corresponding machine readable source code for the Library including whatever accompany the operating system Such a contradiction means you cannot use both them and the Library together in an executable that you distribute 7 You may place library facilities that are a work based on the Library side by side in a single library together with other library changes were used in the work which must be distributed under facilities not covered by this License and distribute such a Sections 1 and 2 above and if the work is an executable linked combined with the Library with the complete machine readable work thatlibrary provided that the separate distribution of the work bas
19. he first released version of the Lesser GPL It also counts the as the successor of the GNU Library Public License version 2 hence the version number 2 1 Preamble The licenses for most software are designed to take away your freedom to share and change it By contrast the GNU General Public Licenses are intended to guarantee your freedom to share and change free software to make sure the software is free for all its users This license the Lesser General Public License applies to some specially designated software packages typically libraries of the Free Software Foundation and other authors who decide to use it You can use it too but we suggest you first think carefully about whether this license or the ordinary General Public License is the better strategy to use in any particular case based on the explanations below When we speak of free software we are referring to freedom of use not price Our General Public Licenses are designed to make sure that you have the freedom to distribute copies of free software and charge for this service if you wish that you receive source code or can get library and 2 we offer you this license which gives you legal permission to copy distribute and or modify the library To protect each distributor we want to make it very clear that there is no warranty for the free library Also if the library is modified by someone else and passed on the recipients should know that
20. ide the scope of this License However linking a work that uses the Library with the Library creates an executable that is a derivative of the Library because it contains portions of the Library rather than a work that uses the library The executable is therefore covered by this License Section 6 states terms for distribution of such executables with the Library or with a work based on the Library on a volume When a work that uses the Library uses material from a header of a storage or distribution medium does not bring the other work under the scope of this License 3 You may opt to apply the terms of the ordinary GNU General Public License instead of this License to a given copy of the Library To do this you must alter all the notices that refer to this License so that they refer to the ordinary GNU General Public License file that is part of the Library the object code for the work may be a derivative work of the Library even though the source code is not Whether this is true is especially significant if the work can be linked without the Library or if the work is itself a library The threshold for this to be true is not precisely defined by law If such an object file uses only numerical parameters data structure layouts and accessors and small macros and small inline functions ten lines or less in length then the use of the object file is unrestricted regardless of whether it is legally a derivative
21. ions when you distribute them as separate works But when you distribute the same sections as part of a whole which is a work based on the Library the distribution of the whole must be on the terms of this License whose permissions for other licensees extend to the entire whole and thus to each and every part regardless of who wrote it Thus it is not the intent of this section to claim rights or contest your rights to work written entirely by you rather the intent is to exercise the right to control the distribution of derivative or collective works based on the Library In addition mere aggregation of another work not based on the Library accompany it with the complete corresponding machine readable source code which must be distributed under the terms of Sections 1 and 2 above on a medium customarily used for software interchange If distribution of object code is made by offering access to copy from a designated place then offering equivalent access to copy the source code from the same place satisfies the requirement to distribute the source code even though third parties are not compelled to copy the source along with the object code 5 A program that contains no derivative of any portion of the Library but is designed to work with the Library by being compiled or linked with it is called a work that uses the Library Such a work in isolation is not a derivative work of the Library and therefore falls outs
22. it in any medium provided that you conspicuously and appropriately publish on each copy an appropriate copyright notice and disclaimer of warranty keep intact all the notices that refer to this License and to the absence of any warranty and distribute a copy of this License along with the Library You may charge a fee for the physical act of transferring a copy and you may at your option offer warranty protection in exchange fora fee 2 You may modify your copy or copies of the Library or any portion of it thus forming a work based on the Library and copy and distribute such modifications or work under the terms of Section 1 above provided that you also meet all of these conditions a The modified work must itself be a software library b You must cause the files modified to carry prominent notices stating that you changed the files and the date of any change Install_ supLegerJSF odt Auteur JL Pasturel 22 26 Superviseur L ger Installation Avril 2006 c You must cause the whole of the work to be licensed at no charge to all third parties under the terms of this License d If a facility in the modified Library refers to a function or a table of data to be supplied by an application program that uses the facility other than as an argument passed when the facility is invoked then you must make a good faith effort to ensure that in the event an application does not supply such function or table
23. ll de pa 8 2 INTRODUCTION ets min scan Sea OS a8 nab tae ned pena how eo rat te anaes ya canna rep ab de 8 2 2INSTALLATION supLeger cot SEV GUL LR Mn TN sao Sosa toes ea eee 8 22978 WIPES TOC UI A Bh ce ikea ected atte E E a dade onsale aaa Meda baby st nina Ie Ne laa edicts Catania i e 8 2 2 Mnstallation POSteTES Sunderland nel nee 8 2 2 3Installation de Hibernate lies ee ten sas 8 2 2 4Installation de la partie Serveur de SUPLG GGT rase Ga Mel nel 9 22 INSTALLATION s pLeg rcoteagents 22 22 cil scr an le addy tt Nes dd ne 9 2 2 6Installation de MSYS pour Windows Optionnel 11 2 3 INSTALLATION de la partie supLeger WebJSF rennes 11 3VERIFICATION DES INSTALLATIONS ET LANCEMENTS ire 12 3 1 V rification bon fonctionnement de la base postgreSQL ss 12 3 2Cr ation dela Dase ocne onia coe 60634 602 laa seca cada yu ei ons ont neue 12 3 3 Lancement du serveur d collecte des donn es 2 5 ans ee a nt nds 12 3 4Lancement de l agent sur les Serveurs SUpervisers sien online laser ne 12 35 Lancement sup leger WebIS Rs ehen a ae Cnn tes etre eue dirai 13 4UTIEISATION AVANCEE ve 222222812 NZ SANE 2 Mk nee Ne ce 16 4 1 Architecture s par e de la database de supLeger et supLegerJSF 16 4 1 1 Sch ma de l architecture envisag e san ann a Van gous al a Re tn nds 16 4 1 2 Param trage d supLeserWebBIS Ed nr de strain inner tasse 18 422 TH AL 1S ACO p35 cal
24. mitation as if written in the body of this License 13 The Free Software Foundation may publish revised and or new versions of the Lesser General Public License from time to time Such new versions will be similar in spirit to the present version but may differ in detail to address new problems or concerns Each version is given a distinguishing version number If the Library specifies a version number of this License which applies to it and any later version you have the option of following the terms and conditions either of that version or of any later version published by License and any other pertinent obligations then as a consequence the Free Software Foundation If the Library does not specify a you may not distribute the Library at all For example if a patent license would not permit royalty free redistribution of the Library by all those who receive copies directly or indirectly through you then license version number you may choose any version ever published by the Free Software Foundation 14 If you wish to incorporate parts of the Library into other free programs whose distribution conditions are incompatible with the only way you could satisfy both it and this License would be to these refrain entirely from distribution of the Library write to the author to ask for permission For software which is copyrighted by the Free Software Foundation write to the Free If any portion of this section is held
25. nnexe la le contenu de la licence 1 3Architecture et principes de fonctionnement Le sch ma 1 la fin de ce paragraphe donne l architecture logicielle compl te des deux parties de ce superviseur l ger 1 3 1Partie supLeger La partie supLeger est charg de la collecte des donn es indicateurs des applications et des syst mes implant s sur des serveurs L agent et serveur de supervision sont crits en Java Il faut une JVM 1 3 au moins cot agent et une JVM 1 4 au moins cot superviseur 1 serveur peut accueillir n applications On peut d finir p indicateurs par application L agent permet de r coller ces indicateurs Le collecteur de supLeger peut accueillir les donn es de supervisions de plusieurs serveurs Cot Agent La productions de ces indicateurs peut se faire de 2 fa ons sur chaque serveur et application cas l criture mode SHELL en shell Unix batch Windows programme C java perl VB cas 2 criture de classe JAVA appel e directement depuis l agent Utilisation du m canisme de r flexion Java Install_ supLegerJSF odt Auteur JL Pasturel 4 26 Superviseur L ger Installation Avril 2006 Dans les deux cas il faut que le retour soit de la forme lt retour_forme_string gt lt donn es compl mentaires forme string gt Le retour forme string est toujours un String et peut contenir des donn e de type int float double Date avec un certain format String elles seron
26. o where the full notice is found FITNESS FOR A PARTICULAR PURPOSE THE ENTIRE RISK AS TO THE QUALITY AND lt one line to give the library s name and a brief idea of what it PERFORMANCE OF THE does gt LIBRARY IS WITH YOU SHOULD THE LIBRARY PROVE Copyright C lt year gt lt name of author gt DEFECTIVE YOU ASSUME THE COST OF ALL NECESSARY SERVICING REPAIR OR This library is free software you can redistribute it and or CORRECTION modify it under the terms of the GNU Lesser General Public License as published by the Free Software Foundation either 16 INNO EVENT UNLESS REQUIRED BY APPLICABLE version 2 1 of the License or at your option any later version LAW OR AGREED TO IN WRITING WILL ANY COPYRIGHT HOLDER OR ANY This library is distributed in the hope that it will be useful OTHER PARTY WHO MAY MODIFY but WITHOUT ANY WARRANTY without even the implied AND OR REDISTRIBUTE THE LIBRARY AS PERMITTED warranty of ABOVE BE LIABLE TO YOU MERCHANTABILITY or FITNESS FOR A PARTICULAR FOR DAMAGES INCLUDING ANY GENERAL SPECIAL PURPOSE See the GNU INCIDENTAL OR Lesser General Public License for more details CONSEQUENTIAL DAMAGES ARISING OUT OF THE USE OR INABILITY TO USE THE You should have received a copy of the GNU Lesser General LIBRARY INCLUDING BUT NOT LIMITED TO LOSS OF Public DATA OR DATA BEING License along with this library if not write to the Free Software RENDERED INACCURATE OR LOSSES SUSTAINED BY Foundation Inc 59 Temple
27. orbid distributors to deny you these rights or to ask you to surrender these rights These restrictions translate to certain responsibilities for you if you distribute copies of the library or if you modify it Public License permits more lax criteria for linking other code with the library We call this license the Lesser General Public License because it does Less to protect the user s freedom than the ordinary General Public License It also provides other free software developers For example if you distribute copies of the library whether gratis Less p or for a fee you must give the recipients all the rights that we gave of an advantage over competing non free programs These you You must make sure that they too receive or can get the disadvantages Install_supLegerJSF odt Auteur JL Pasturel 21 26 Superviseur L ger Installation Avril 2006 are the reason we use the ordinary General Public License for many libraries However the Lesser license provides advantages in certain special circumstances For example on rare occasions there may be a special need to encourage the widest possible use of a certain library so that it becomes a de facto standard To achieve this non free programs must be allowed to use the library A more frequent case is that a free library does the same job as widely used non free libraries In this case there is little to gain by limiting the free library to free
28. ows SupLegerWwebServiet JDK142 E EchoPointAPI EchoAPI JOnAS Administration 4 HibernateAPI J2EE API JLP Connexion Effacer Termin Page de con FR J V G 4 19 08 7 d marrer fim 2 Explorate servir login password gt admin admin Pour information la photo ci dessus est le pont de Millau 6 mois avant son ach vement cliquer sur Connexion et l cran suivant du menu g n ral apparait Install_supLegerJSF odt Auteur JL Pasturel 14 26 Superviseur L ger Installation Avril 2006 Mozilla Firefox Fichier Edition Affichage Aler Marque pages Outils X CD X amp X A _ http filocalhost 8080 inputname jsf ox C Hotmail Personnaliser les liens Windows SupLegerWebServlet 3DK142 EchoPointAPI 4 EchoAPI JOnAS Administration HibernateaPl J2EE API JLP 3 Supervision Temps R el gt Administration Archive_Purge_User g Filtre Temps R el Analyse Temps Diff r fal Fr quence Rafraichissement BI Quitter g Superviser Temps R el Termin 42 OpenOffice or Exadel Studio Hi c Invite de comman Mozilla Firefox FR ym M AM 19 13 tg d marrer fim 2 Explorateur W Si tous les tests d crits ci dessus sont pass s vos installations de supLeger et supLegerWebJSF sont correctes Pour la suite
29. r Elle permet de r aliser la visualisation des indicateurs soit en mode continue fonction de supervision quasi temps r l ou en mode diff r et sur une p riode param trable par l utilisateur fonction supervision temps diff r Cette partie exploite les donn es r coll e par la partie supLeger Le moteur du Web Application Serveur utilis est Winstone Il s agit d un container light de servlet JSP sous double licence LGPL et CDDL que l on peut trouver cette adresse http winstone sourceforge net Je dois remercier l auteur Rick Knowles qui m a beaucoup aid pour int grer mon outil dans son serveur qu il n avait priori pas con u pour accueillir les JSF et Rick Knowles m a permis de r aliser cette int gration Dans le paragraphe 4 j indique comment int grer mon outils dans d autres contenuer de Servlet JSP bas s sur Tomcat ex JONAS Pour la visualisation des donn es on a utilis un socle commun de framework le framework JSF Java Install supLegerJSF odt Auteur JL Pasturel 5 26 Superviseur L ger Installation Avril 2006 Server Faces et son impl mentation Apache MyFaces version 1 1 1 Ce framework est sous licence Apache V2 0 MyFaces http myfaces apache org Pour d coupler la partie vue de la partie mod le l aspect business et manipulation des donn es est d l gu aux objets fa ades gros grains Pour ce projet j ai gard des adh rences entre la p
30. recipient automatically receives a license from the original licensor to copy distribute link with or modify the Library subject to these terms and conditions You may not impose any further restrictions on the recipients exercise of the rights granted herein You are not responsible for enforcing compliance by third parties with this License 11 If as a consequence of a court judgment or allegation of patent infringement or for any other reason not limited to patent issues conditions are imposed on you whether by court order agreement or otherwise that contradict the conditions of this License they do not excuse you from the conditions of this License If you cannot distribute so as to satisfy simultaneously your obligations under this system it is up to the author donor to decide if he or she is willing to distribute software through any other system and a licensee cannot impose that choice This section is intended to make thoroughly clear what is believed to be a consequence of the rest of this License 12 If the distribution and or use of the Library is restricted in certain countries either by patents or by copyrighted interfaces the original copyright holder who places the Library under this License may add an explicit geographical distribution limitation excluding those countries so that distribution is permitted only in or among countries not thus excluded In such case this License incorporates the li
31. s 1 E E A wal cess aa EE AE car agen E aula iasa 19 43 Utilisation d autres WAS ne en Sir ni nue ag NASA SR EA Ge cah 20 4 4Utilisation d une version ant rieure de Postgres 7 4 par exemple 20 4 5 Joindre lattuk zeonnn EE RE E a E A A A 20 SANNEXES Licence E G d EEA D Rire ententes 21 Install_ supLegerJSF odt Auteur JL Pasturel 3 26 Superviseur L ger Installation Avril 2006 1 BUT DE L OUTIL 1 1 Remarque pr liminaire Le but essentiel lors de la r alisation de cet outil tait pour moi de prendre des comp tences autour des Java Server Faces D autre part j avais d j r alis cet outil avec echo echopoint V1 que je n ai pas publi j ai donc repris la partie acc s et gestions des donn es dans la database avec Hibernate V2 1 L architecture logicielle peut effectivement pr ter discussion 1 2D finition rapide de l outil L outil se compose de deux parties 1 2 1Partie supLeger Il s agit de r aliser un superviseur de fonctionnement de machine UNIX ou Windows compos d un agent fonctionnant sur des serveurs et d un serveur collationnant les informations de tous les serveurs 1 2 2Partie supLegerWebJSF Cette partie est charg e d exploiter ces donn es en r alisant les fonctions de superviseur quasi temps r el et superviseur temps diff r Notas Dans ce document nous proposerons une installation rapide pour les gens habitu es aux installations Licence du produit LGPL voir en a
32. s cl s sont en fran ais mais partir de l anglais cela sera assez facile de cr er les fichiers pour les autres langues J invite les personnes de langue anglaise corriger certaines fautes que j aurais pu commettre Ci dessous un extrait de ce fichier inputname_header Connect at SupLeger WebJSF prompt User Login password User Password greeting text Hello errorPassword The length of Password must be greater than 6 caracters connexion Connection Install supLegerJSF odt Auteur JL Pasturel 19 26 Superviseur L ger Installation Avril 2006 fichier File administration Administration archivePurgeUser Archive Purge User supTempsReel Supervision Real Time supTempsDiff Analyze Differed Time quitter Quit edition Edit purgeGenerale General Purge archiveGenerale General Archive Il suffit ensuite de recr er l archive comme indiqu au paragraphe pr c dent et de la replacer dans l espace du WAS 4 3 Utilisation d autres WAS Le WAS l ger utilis Winstone peut tre remplac par d autres WAS J ai fait le test avec JONAS 4 6 et cela marche correctement 1l suffit de faire les 2 op rations suivantes d poser le fichier supLegerWebJSF war sous le r pertoire lt JONAS BASE gt webapps autoload de d poser le driver JDBC postgresql 8 1dev 403 jdbc3 jar dans mon cas de Postgres sous le r pertoire lt JONAS_BASE gt lib ext Ce qui veut dire que cela doit marcher avec tous les WAS
33. s lancer opt supLeger agent lanceAgent bat ksh On peut lancer en background et ou nohup V rifier que la console n affiche pas d erreur Quand les requ tes param tr es avec des timers se lancent on peut v rifier dans les consoles cot agent ou cot serveur que les donn es sont biens ins r es en base On peut le v rifier aussi avec l outil postgres PgAdmin 3 5Lancement supLegerWebJSF Avant de lancer on v rifiera que les classpath et les path contenus dans le fichier lanceW bat ou lanceL ksh et on les modifiera au besoin D autre part il faudra rendre ex cutable sous linux unix le fichier lanceL ksh par la commande chmod 755 lanceL ksh Il suffit de lancer sous le r pertoire de winstone le fichier lanceW bat ou lanceW ksh en background Si le poste utilisateur abrite aussi le serveur supLegerWebJSF on peut faire un test de connexion en lan ant Interner Explorer ou FireFox ou Mozilla et taper l URL suivant http localhost 8080 On peut aller jusqu la connexion administrateur avec le login password admin admin On peut enchainer les crans ci dessous Install supLegerJSF odt Auteur JL Pasturel 13 26 Superviseur L ger Installation Avril 2006 J Page de connexion SupLegerWebJSF Mozilla Firefox Fichier Edition Affichage Aller Marque pages Outils lt a gt amp k A D http localhost 8080 index jsp v x IL Hotmail Personnaliser les liens Wind
34. section 6a above for a charge no more than the cost of performing this distribution work 8 You may not copy modify sublicense link with or distribute the Library except as expressly provided under this License Any attempt otherwise to copy modify sublicense link with or distribute the Library is void and will automatically terminate your rights under this License However parties who have received copies or rights from you under this License will not have their licenses Install_ supLegerJSF odt Auteur JL Pasturel 24 26 Superviseur L ger Installation Avril 2006 terminated so long as such parties remain in full compliance implemented by public license practices Many people have made generous contributions to the wide range of software distributed 9 You are not required to accept this License since you have not through that system in reliance on consistent application of that signed it However nothing else grants you permission to modify or distribute the Library or its derivative works These actions are prohibited by law if you do not accept this License Therefore by modifying or distributing the Library or any work based on the Library you indicate your acceptance of this License to do so and all its terms and conditions for copying distributing or modifying the Library or works based on it 10 Each time you redistribute the Library or any work based on the Library the
35. software only so we use the Lesser General Public License In other cases permission to use a particular library in non free programs enables a greater number of people to use a large body of free software For example permission to use the GNU C Library in non free programs enables many more people to use the whole GNU operating system as well as its variant the GNU Linux operating system Although the Lesser General Public License is Less protective of the users freedom it does ensure that the user of a program that is The Library below refers to any such software library or work which has been distributed under these terms A work based on the Library means either the Library or any derivative work under copyright law that is to say a work containing the Library or a portion of it either verbatim or with modifications and or translated straightforwardly into another language Hereinafter translation is included without limitation in the term modification Source code for a work means the preferred form of the work for making modifications to it For a library complete source code means all the source code for all modules it contains plus any associated interface definition files plus the scripts used to control compilation and installation of the library Activities other than copying distribution and modification are not covered by this License they are outside its scope The act of running a program
36. t interpr t es en fonction d un fichier de configuration qui est d fini dans le manuel utilisateur La partie donn es compl mentaires permet de retour de donn es contextuelles la requ te qui compl te le r sultat Dans le cas 1 le retour doit tre fait sur le stdout fonction echo pour les shells unix et batch windows fonction printf pour les programmes C fonction System out printIn pour les programmes java par exemple Dans le cas 2 la classe java poss de une fonction retour qui retourne un string au format vue plus haut Voir dans le manuel utilisateur pour la cr ation de telle fonction On aura compris qu il faut qu une seule criture dans le stdout A partir de ces retours l agent constitue des messages qu il envoie au superviseur central Cot Superviseur Le superviseur est charg de r coller les donn es des agents a travers une communication en mode TCP IP sur socket et de les charger dans la base de donn es Pour cela il est utilis le logiciel de mapping Hibernate qui partir des objets m tiers de granulom trie fine mappe ces objets dans la database La database est tr s simple puisqu elle comporte simplement 10 tables en y incluant les tables de relations n n Le moteur de database choisie est PostgreSQL V8 qui est disponible maintenant en natif sous windows plus besoin de cygwin Le nombre de POJOs est de 8 1 3 2Partie supLegerWebJSF C est la partie visible pour l utilisateu
37. ty gt lt property name hibernate dialect gt net sf hibernate dialect PostgreSQLDialect lt property gt lt property name hibernate connection url gt jdbc postgresq localhost 5432 essai lt property gt lt property name hibernate connection username gt essai lt property gt lt property name hibernate connection password gt essai lt property gt lt property name hibernate c3p0 min_size gt 5 lt property gt lt property name hibernate c3p0 max_size gt 20 lt property gt lt property name hibernate c3p0 timeout gt 1800 lt property gt lt property name hibernate c3p0 max_statement gt 50 lt property gt lt property name show_sql gt true lt property gt lt property name use_outer_join gt false lt property gt lt fichiers de mapping gt lt mapping resource supLeger superviseur pojos InstanceA ppli hbm xml gt lt mapping resource supLeger superviseur pojos MessageArchive hbm xml gt lt mapping resource supLeger superviseur pojos MessageRecu hbm xml gt lt mapping resource supLeger superviseur pojos Requete hbm xml gt lt mapping resource supLeger superviseur pojos Role hbm xml gt lt mapping resource supLeger superviseur pojos Serveur hbm xml gt lt mapping resource supLeger superviseur pojos Utilisateur hbm xml gt lt mapping resource supLeger superviseur pojos Derniermessage hbm xml gt lt session factory gt lt hibernate configuration gt La ligne en gras
38. using the Library is not restricted and output from such a program is covered only if its contents constitute a work based on the Library independent of the use of the Library in a tool for linked with the Library has the freedom and the wherewithal to run writing it Whether that is true depends on what the Library does that program using a modified version of the Library The precise terms and conditions for copying distribution and modification follow Pay close attention to the difference between a work based on the library and a work that uses the library The former contains code derived from the library whereas the latter must be combined with the library in order to run GNU LESSER GENERAL PUBLIC LICENSE TERMS AND CONDITIONS FOR COPYING DISTRIBUTION AND MODIFICATION 0 This License Agreement applies to any software library or other program which contains a notice placed by the copyright holder or other authorized party saying it may be distributed under the terms of this Lesser General Public License also called this License Each licensee is addressed as you A library means a collection of software functions and or data prepared so as to be conveniently linked with application programs which use some of those functions and data to form executables and what the program that uses the Library does 1 You may copy and distribute verbatim copies of the Library s complete source code as you receive
39. what they have is not the original version so that the original author s reputation will not be affected by problems that might be introduced by others Finally software patents pose a constant threat to the existence of any free program We wish to make sure that a company cannot effectively restrict the users of a free program by obtaining a restrictive license from a patent holder Therefore we insist that any patent license obtained for a version of the library must be consistent with the full freedom of use specified in this license Most GNU software including some libraries is covered by the ordinary GNU General Public License This license the GNU Lesser General Public License applies to certain designated libraries and is quite different from the ordinary General Public License We use this license for certain libraries in order to permit linking those libraries into non free programs When a program is linked with a library whether statically or using a shared library the combination of the two is legally speaking a combined work a derivative of the original library The ordinary it if you want it that you can change the software and use pieces of General Public License therefore permits such linking only if the it in new free programs and that you are informed that you can do entire combination fits its criteria of freedom The Lesser General these things To protect your rights we need to make restrictions that f
Download Pdf Manuals
Related Search
Related Contents
User Manual - Pid Controller Samsung DVD-HR753 Инструкция по использованию User manual S Class series 161CM003 Kenwood KDC-BT31U User Guide Manual - CaRadio OPERATING INSTRUCTIONS FOR POCKET DIGITAL Samsung GT-N7105 User Manual TP-Link TL-WN422G User's Manual Copyright © All rights reserved.
Failed to retrieve file