This shows you the differences between two versions of the page.
Both sides previous revision Previous revision Next revision | Previous revision | ||
docpublic:systemes:cas:install [2011/09/05 16:30] PROCACCIA |
— (current) | ||
---|---|---|---|
Line 1: | Line 1: | ||
- | |||
- | |||
- | ===== references ===== | ||
- | |||
- | http:// | ||
- | http:// | ||
- | http:// | ||
- | |||
- | ===== tomcat6 ===== | ||
- | |||
- | |||
- | < | ||
- | [root@cas3 /]# yum install tomcat6 tomcat6-admin-webapps tomcat6-webapps | ||
- | |||
- | ============================================================================================================================================ | ||
- | | ||
- | ============================================================================================================================================ | ||
- | Installing: | ||
- | | ||
- | | ||
- | | ||
- | Installing for dependencies: | ||
- | | ||
- | | ||
- | | ||
- | | ||
- | | ||
- | | ||
- | | ||
- | | ||
- | | ||
- | | ||
- | | ||
- | | ||
- | | ||
- | | ||
- | | ||
- | | ||
- | | ||
- | | ||
- | | ||
- | | ||
- | | ||
- | | ||
- | | ||
- | | ||
- | | ||
- | | ||
- | | ||
- | | ||
- | | ||
- | | ||
- | | ||
- | | ||
- | | ||
- | | ||
- | | ||
- | | ||
- | | ||
- | | ||
- | | ||
- | | ||
- | | ||
- | | ||
- | | ||
- | | ||
- | | ||
- | | ||
- | | ||
- | | ||
- | | ||
- | | ||
- | | ||
- | | ||
- | | ||
- | | ||
- | | ||
- | | ||
- | | ||
- | | ||
- | | ||
- | | ||
- | | ||
- | | ||
- | | ||
- | | ||
- | | ||
- | | ||
- | | ||
- | | ||
- | | ||
- | |||
- | Transaction Summary | ||
- | ============================================================================================================================================ | ||
- | Install | ||
- | Upgrade | ||
- | |||
- | Total download size: 45 M | ||
- | Installed size: 121 M | ||
- | Is this ok [y/N]: y | ||
- | |||
- | |||
- | Dependency Installed: | ||
- | alsa-lib.i686 0: | ||
- | at.i686 0: | ||
- | axis.noarch 0: | ||
- | bcel.i686 0: | ||
- | classpathx-jaf.i686 0: | ||
- | cvs.i686 0: | ||
- | file.i686 0: | ||
- | freetype.i686 0: | ||
- | gtk2.i686 0: | ||
- | jakarta-commons-collections.noarch 0: | ||
- | jakarta-commons-dbcp-tomcat5.noarch 0: | ||
- | jakarta-commons-httpclient.i686 1: | ||
- | jakarta-commons-pool-tomcat5.i686 0: | ||
- | jasper-libs.i686 0: | ||
- | java_cup.i686 1: | ||
- | libICE.i686 0: | ||
- | libX11.i686 0: | ||
- | libXau.i686 0: | ||
- | libXcursor.i686 0: | ||
- | libXext.i686 0: | ||
- | libXft.i686 0: | ||
- | libXinerama.i686 0: | ||
- | libXrender.i686 0: | ||
- | libart_lgpl.i686 0: | ||
- | libgomp.i686 0: | ||
- | libxcb.i686 0: | ||
- | mx4j.noarch 1: | ||
- | patch.i686 0: | ||
- | pixman.i686 0: | ||
- | regexp.i686 0: | ||
- | tomcat6-el-2.1-api.noarch 0: | ||
- | tomcat6-lib.noarch 0: | ||
- | wsdl4j.noarch 0: | ||
- | xml-commons-apis.i686 0: | ||
- | zip.i686 0: | ||
- | |||
- | Complete! | ||
- | |||
- | </ | ||
- | |||
- | |||
- | ===== ant ===== | ||
- | |||
- | |||
- | < | ||
- | [root@cas3 /]# yum install ant | ||
- | |||
- | |||
- | ============================================================================================================================================ | ||
- | | ||
- | ============================================================================================================================================ | ||
- | Installing: | ||
- | | ||
- | Installing for dependencies: | ||
- | | ||
- | | ||
- | | ||
- | | ||
- | | ||
- | | ||
- | | ||
- | | ||
- | | ||
- | | ||
- | | ||
- | | ||
- | | ||
- | | ||
- | |||
- | Transaction Summary | ||
- | ============================================================================================================================================ | ||
- | Install | ||
- | Upgrade | ||
- | |||
- | Total download size: 38 M | ||
- | Installed size: 74 M | ||
- | Is this ok [y/N]: y | ||
- | Downloading Packages: | ||
- | (1/15): ant-1.7.1-13.el6.i686.rpm | ||
- | (2/15): cloog-ppl-0.15.7-1.2.el6.i686.rpm | ||
- | (3/15): cpp-4.4.4-13.el6.i686.rpm | ||
- | (4/15): gcc-4.4.4-13.el6.i686.rpm | ||
- | (5/15): gcc-java-4.4.4-13.el6.i686.rpm | ||
- | (6/15): glibc-devel-2.12-1.7.el6_0.5.i686.rpm | ||
- | (7/15): glibc-headers-2.12-1.7.el6_0.5.i686.rpm | ||
- | (8/15): java-1.5.0-gcj-devel-1.5.0.0-29.1.el6.i686.rpm | ||
- | (9/15): kernel-headers-2.6.32-71.29.1.el6.i686.rpm | ||
- | (10/15): libgcj-devel-4.4.4-13.el6.i686.rpm | ||
- | (11/15): libgcj-src-4.4.4-13.el6.i686.rpm | ||
- | (12/15): mpfr-2.4.1-6.el6.i686.rpm | ||
- | (13/15): ppl-0.10.2-11.el6.i686.rpm | ||
- | (14/15): xerces-j2-2.7.1-12.5.el6.i686.rpm | ||
- | (15/15): zlib-devel-1.2.3-25.el6.i686.rpm | ||
- | -------------------------------------------------------------------------------------------------------------------------------------------- | ||
- | Total 384 kB/s | 38 MB | ||
- | Running rpm_check_debug | ||
- | Running Transaction Test | ||
- | Transaction Test Succeeded | ||
- | Running Transaction | ||
- | Installing | ||
- | Installing | ||
- | Installing | ||
- | Installing | ||
- | Installing | ||
- | Installing | ||
- | Installing | ||
- | Installing | ||
- | Installing | ||
- | Installing | ||
- | Installing | ||
- | Installing | ||
- | Installing | ||
- | Installing | ||
- | Installing | ||
- | |||
- | Installed: | ||
- | ant.i686 0: | ||
- | |||
- | Dependency Installed: | ||
- | cloog-ppl.i686 0: | ||
- | gcc-java.i686 0: | ||
- | java-1.5.0-gcj-devel.i686 0: | ||
- | libgcj-src.i686 0: | ||
- | xerces-j2.i686 0: | ||
- | |||
- | Complete! | ||
- | </ | ||
- | |||
- | ===== CAS toolbox ===== | ||
- | |||
- | < | ||
- | [root@cas3 ~]# wget https:// | ||
- | [root@cas3 ~]# tar xvfz cas-toolbox-3.4.7-1.tar.gz | ||
- | |||
- | [root@cas3 cas-toolbox-3.4.7-1]# | ||
- | [root@cas3 cas-toolbox-3.4.7-1]# | ||
- | [root@cas3 cas-toolbox-3.4.7-1]# | ||
- | </ | ||
- | |||
- | ==== init ==== | ||
- | |||
- | La construction de CAS fait usage de maven ( http:// | ||
- | |||
- | < | ||
- | [root@cas3 cas-toolbox-3.4.7-1]# | ||
- | Buildfile: build.xml | ||
- | |||
- | _version.display: | ||
- | | ||
- | |||
- | _maven.init: | ||
- | | ||
- | [mvn: | ||
- | [mvn: | ||
- | ... | ||
- | ... | ||
- | [mvn: | ||
- | | ||
- | | ||
- | | ||
- | | ||
- | | ||
- | | ||
- | [javac] Compiling 1 source file to / | ||
- | [javac] Compiling 5 source files to / | ||
- | [javac] ---------- | ||
- | [javac] 1. WARNING in / | ||
- | [javac] connection.setFollowRedirects(false); | ||
- | [javac] ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ | ||
- | [javac] The static method setFollowRedirects(boolean) from the type HttpURLConnection should be accessed in a static way | ||
- | [javac] ---------- | ||
- | [javac] 1 problem (1 warning) | ||
- | |||
- | init: | ||
- | |||
- | BUILD SUCCESSFUL | ||
- | Total time: 3 minutes 18 seconds | ||
- | </ | ||
- | |||
- | |||
- | ==== deploy ==== | ||
- | |||
- | < | ||
- | [root@cas3 cas-toolbox-3.4.7-1]# | ||
- | Buildfile: build.xml | ||
- | |||
- | deploy: | ||
- | | ||
- | |||
- | BUILD SUCCESSFUL | ||
- | Total time: 1 second | ||
- | </ | ||
- | |||
- | ===== java ===== | ||
- | |||
- | |||
- | si au lancement de CAS il y a une erreur de ce style : | ||
- | |||
- | < | ||
- | 2011-09-05 18: | ||
- | The Spring ContextLoaderListener we wrap threw on contextInitialized. | ||
- | But for our having caught this error, the web application context would not have initialized. | ||
- | java.lang.NoSuchMethodError: | ||
- | </ | ||
- | |||
- | il manque alors propablement le jdk (package devel), une fois installé on peux verifier la presence de la class manquante: | ||
- | |||
- | < | ||
- | [root@cas3 tomcat6]# javap java.util.regex.Pattern | ||
- | Compiled from " | ||
- | public final class java.util.regex.Pattern extends java.lang.Object implements java.io.Serializable{ | ||
- | public static final int UNIX_LINES; | ||
- | ... | ||
- | | ||
- | static {}; | ||
- | } | ||
- | </ | ||
- | |||
- | ==== openJDK ==== | ||
- | |||
- | < | ||
- | [root@cas3 tomcat6]# yum install java-1.6.0-openjdk-devel | ||
- | |||
- | |||
- | ========================================================================================================================================== | ||
- | | ||
- | ========================================================================================================================================== | ||
- | Installing: | ||
- | | ||
- | Installing for dependencies: | ||
- | | ||
- | | ||
- | | ||
- | | ||
- | | ||
- | | ||
- | | ||
- | | ||
- | |||
- | Transaction Summary | ||
- | ========================================================================================================================================== | ||
- | Install | ||
- | Upgrade | ||
- | |||
- | Total download size: 36 M | ||
- | Installed size: 119 M | ||
- | Is this ok [y/N]: y | ||
- | </ | ||
- | |||
- | ==== java SUN / oracle ==== | ||
- | |||
- | http:// | ||
- | |||
- | ===== Test ===== | ||
- | |||
- | login test initial sur | ||
- | |||
- | http:// | ||
- | |||
- | ==== apache SSL ===== | ||
- | |||
- | on met un apache un frontal pour gerer la partie SSL | ||
- | |||
- | < | ||
- | [root@cas3 cas-toolbox-3.4.7-1]# | ||
- | |||
- | ============================================================================================================================================ | ||
- | | ||
- | ============================================================================================================================================ | ||
- | Installing: | ||
- | | ||
- | |||
- | Transaction Summary | ||
- | ============================================================================================================================================ | ||
- | Install | ||
- | Upgrade | ||
- | |||
- | Total download size: 85 k | ||
- | Installed size: 181 k | ||
- | Is this ok [y/N]: y | ||
- | </ | ||
- | |||
- | AJP | ||
- | |||
- | ==== Auth handler file ===== | ||
- | |||
- | cf https:// | ||
- | |||
- | parametrage file handler | ||
- | |||
- | < | ||
- | |||
- | build.properties | ||
- | |||
- | fileHandler.name=cas-server-support-generic | ||
- | fileHandler.conf=file-auth.xml | ||
- | |||
- | config.properties | ||
- | # file authenticate layer | ||
- | passfile.encode-algo=MD5 | ||
- | passfile.location=classpath:/ | ||
- | </ | ||
- | |||
- | |||
- | < | ||
- | [root@cas3 cas-toolbox-3.4.7-1]# | ||
- | [root@cas3 cas-toolbox-3.4.7-1]# | ||
- | [root@cas3 cas-toolbox-3.4.7-1]# | ||
- | [root@cas3 cas-toolbox-3.4.7-1]# | ||
- | </ | ||
- | |||
- | ant init et deploy | ||
- | |||
- | < | ||
- | [mkdir] Created dir: / | ||
- | | ||
- | |||
- | [echo] Enable auth Handler fileHandler | ||
- | |||
- | deploy: | ||
- | | ||
- | </ | ||