This shows you the differences between two versions of the page.
| Both sides previous revision Previous revision Next revision | Previous revision | ||
|
docpublic:systemes:esup:esup_socle_4_c6 [2014/07/02 12:40] procacci@tem-tsp.eu [URL a proteger] |
docpublic:systemes:esup:esup_socle_4_c6 [2015/05/20 16:10] (current) procacci@tem-tsp.eu [build & config properties] |
||
|---|---|---|---|
| Line 123: | Line 123: | ||
| ensuite, faut-il appliquer ce patch : https:// | ensuite, faut-il appliquer ce patch : https:// | ||
| + | |||
| + | ==== pb LC_COLLATE ==== | ||
| + | |||
| + | suite a une mise a jour a chaud sur le container openvz, apres un redemrrage des services (tomcat, postgres ...) le portail ne marchait plus ! | ||
| + | |||
| + | uPortal.log: | ||
| + | |||
| + | < | ||
| + | [esup4] WARN [main] Jan/09 09: | ||
| + | org.postgresql.util.PSQLException: | ||
| + | Detail: The database was initialized with LC_COLLATE " | ||
| + | Hint: Recreate the database with another locale or install the missing locale. | ||
| + | </ | ||
| + | |||
| + | cette erreure est expliquée sur http:// | ||
| + | |||
| + | où la conclusion est : | ||
| + | |||
| + | < | ||
| + | If PostgreSQL hasn't been restarted after the new locale has been created, that would be the reason. service postgresql restart should suffice. | ||
| + | This is presumably due to how locales are implemented in Linux libc. The new locales don't get seamlessly imported into the environment of already running processes. | ||
| + | </ | ||
| + | |||
| + | donc simplement en redemarrant la VM , tout repart sans soucis ! | ||
| + | |||
| + | ==== acces BD ==== | ||
| ouverture acces BD en mode trust (ident par defaut n' | ouverture acces BD en mode trust (ident par defaut n' | ||
| Line 816: | Line 842: | ||
| +environment.build.ldap.baseDn=dc=int-evry, | +environment.build.ldap.baseDn=dc=int-evry, | ||
| +environment.build.ldap.userName=cn=mcibind, | +environment.build.ldap.userName=cn=mcibind, | ||
| - | +environment.build.ldap.password=mcianony | + | +environment.build.ldap.password=secret |
| | | ||
| | | ||
| Line 1559: | Line 1585: | ||
| ===== context tomcat ===== | ===== context tomcat ===== | ||
| - | dans le server.xml de tomcat6 | + | definition du context uPortal et / |
| + | http:// | ||
| + | |||
| + | context ajoutés | ||
| < | < | ||
| Line 1580: | Line 1610: | ||
| # JNDI property to uncomment : | # JNDI property to uncomment : | ||
| environment.build.hibernate.connection.jndiname=jdbc/ | environment.build.hibernate.connection.jndiname=jdbc/ | ||
| - | </ | ||
| - | |||
| - | ===== contexts tomcat ===== | ||
| - | |||
| - | definition du context uPortal et / | ||
| - | http:// | ||
| - | |||
| - | video esup 3.2 82mn | ||
| - | |||
| - | context ajoutés dans le server.xml de tomcat, sous section de //<Host name=" | ||
| - | |||
| - | < | ||
| - | <Context path="/ | ||
| - | | ||
| - | | ||
| - | | ||
| - | < | ||
| - | auth=" | ||
| - | type=" | ||
| - | username=" | ||
| - | driverClassName=" | ||
| - | url=" | ||
| - | maxActive=" | ||
| - | poolPreparedStatements=" | ||
| - | removeAbandoned=" | ||
| - | removeAbandonedTimeout=" | ||
| - | /> | ||
| - | <Manager pathname="" | ||
| - | </ | ||
| - | |||
| - | <Context path="/ | ||
| - | | ||
| - | reloadable=" | ||
| - | <Manager pathname=""/> | ||
| - | </ | ||
| - | |||
| - | </ | ||
| - | </ | ||
| - | </ | ||
| - | </ | ||
| </ | </ | ||
| Line 1626: | Line 1616: | ||
| le portail sera accessible dans ces conditions (ProxyPass /uportal) sur l'URL | le portail sera accessible dans ces conditions (ProxyPass /uportal) sur l'URL | ||
| - | http://esup3re7.it-sudparis.eu/ | + | http://esup4dev.tem-tsp.eu/ |
| ===== SSL ===== | ===== SSL ===== | ||
| Line 1644: | Line 1634: | ||
| < | < | ||
| - | [root@esup3re7 | + | [root@esup4dev |
| $ yum install mod_ssl | $ yum install mod_ssl | ||
| </ | </ | ||
| Line 1653: | Line 1643: | ||
| < | < | ||
| - | [root@esup3re7 | + | [root@esup4dev |
| SSLCertificateFile / | SSLCertificateFile / | ||
| SSLCertificateKeyFile / | SSLCertificateKeyFile / | ||
| Line 1694: | Line 1684: | ||
| < | < | ||
| - | [procacci@arvouin ~] | + | $ openssl s_client -connect |
| - | $ openssl s_client -connect | + | |
| verify depth is 3 | verify depth is 3 | ||
| CONNECTED(00000003) | CONNECTED(00000003) | ||
| Line 1716: | Line 1705: | ||
| 3 s:/ | 3 s:/ | ||
| | | ||
| + | --- | ||
| </ | </ | ||
| Line 1727: | Line 1717: | ||
| - | ==== driver Mysql ==== | + | ==== driver |
| - | il faut rendre accessible a tomcat le driver mysql autrement au demarrage du serveur on a ce type d' | + | il faut rendre accessible a tomcat le driver mysql et/ou postgresql, |
| < | < | ||
| Line 1739: | Line 1729: | ||
| </ | </ | ||
| - | copie du jar mysql | + | il ne semble plus necessaire de copier le driver, le build / ant se chargeant |
| < | < | ||
| - | [root@esup3re7 tomcat6]# cp /home/esup/esup-uPortal-3.2.4-esup-1.0.0-RC3/update/Tomcat/lib/mysql-connector-java-5.1.6.jar / | + | [root@esup4dev conf]# locate postgresql-9.0-801.jdbc4.jar |
| - | [root@esup3re7 tomcat6]# | + | / |
| - | [root@esup3re7 tomcat6]# | + | ... |
| - | [root@esup3re7 tomcat6]# ls -al /var/lib/tomcat6/ | + | / |
| - | total 2728 | + | / |
| - | drwxrwxr-x 2 root esup 4096 Feb 8 11:22 . | + | |
| - | drwxrwxr-x 4 root esup 4096 Dec 2 16:02 .. | + | |
| - | -rw-rw-r-- 1 esup esup 1736099 Feb 7 23:17 castor-1.1.1.jar | + | |
| - | -rw-rw-r-- 1 esup esup 44598 Feb 7 23:17 commons-logging-api-1.1.jar | + | |
| - | -rw-r--r-- 1 root root 703265 Feb 8 11:22 mysql-connector-java-5.1.6.jar | + | |
| - | -rw-rw-r-- 1 esup esup 3463 Feb 7 23:17 person-directory-api-1.5.0-RC6.jar | + | |
| - | -rw-rw-r-- 1 esup esup 142812 Feb 7 23:17 pluto-container-1.1.7.jar | + | |
| - | -rw-rw-r-- 1 esup esup 39406 Feb 7 23:17 pluto-descriptor-api-1.1.7.jar | + | |
| - | -rw-rw-r-- 1 esup esup 46472 Feb 7 23:17 pluto-descriptor-impl-1.1.7.jar | + | |
| - | -rw-rw-r-- 1 esup esup 25969 Feb 7 23:17 pluto-taglib-1.1.7.jar | + | |
| - | -rw-rw-r-- 1 esup esup 17090 Feb 7 23:17 portlet-api-1.0.jar | + | |
| - | + | ||
| - | [root@esup3re7 tomcat6]# chown esup / | + | |
| </ | </ | ||
| - | finalement dans / | + | ou en mysql |
| < | < | ||
| - | [root@esup3re7 tomcat6]# cp /home/esup/esup-uPortal-3.2.4-esup-1.0.0-RC3/ | + | [root@ecampusdev ~]# locate mysql-connector-java-5.1.9.jar |
| - | + | / | |
| - | [root@esup3re7 tomcat6]# ls -l /usr/share/tomcat6/ | + | ... |
| - | -rw-r--r-- 1 root root 703265 Feb 8 11:33 /usr/share/tomcat6/ | + | /usr/local/apache-tomcat-6.0.36-esup/webapps/WebProxyPortlet/WEB-INF/ |
| + | / | ||
| </ | </ | ||
| Line 1776: | Line 1752: | ||
| ==== custom admin ==== | ==== custom admin ==== | ||
| - | il faut imperativement changer le mot de passe admin, pour cela on va en profiter pour commencer a structurer la personalisation du portail en construsant un arborescence de custom . | + | il faut imperativement changer le mot de passe admin |
| video2 esup3.2 5mn | video2 esup3.2 5mn | ||
| < | < | ||
| - | [esup@esup3re7 | + | [esup@esup4dev |
| - | [esup@esup3re7 esup-install]$ cd custom/ | + | / |
| - | + | ||
| - | [esup@esup3re7 admin]$ locate admin.user | + | |
| - | / | + | |
| - | + | ||
| - | [esup@esup3re7 admin]$ cp / | + | |
| </ | </ | ||
| Line 1795: | Line 1765: | ||
| < | < | ||
| - | $ cat / | + | [esup@esup4dev esup-uportal]$ cat / |
| - | < | + | |
| - | < | + | < |
| - | < | + | < |
| - | <encrptd-pswd>(MD5)5ebe2294ecd0e0f08eab7690d2a6ee69</encrptd-pswd> | + | <password>(MD5)64a24fed9cf544cfe09249ddc6e56795</password> |
| - | <first-name> | + | <attribute> |
| - | <last-name>Utilisateur</last-name> | + | < |
| - | <email>admin@int-evry.fr</email> | + | <value>Amy</value> |
| - | </person-directory> | + | </attribute> |
| - | </ | + | ... |
| </ | </ | ||
| + | |||
| import | import | ||
| < | < | ||
| - | [esup@esup3re7 | + | [esup@esup4dev |
| - | Buildfile: build.xml | + | |
| - | | ||
| - | | ||
| - | | ||
| - | |||
| - | BUILD SUCCESSFUL | ||
| - | Total time: 9 seconds | ||
| </ | </ | ||
| Line 1837: | Line 1801: | ||
| + | ===== custom dir ===== | ||
| + | |||
| + | Nous allons travailler dans une arborescence de personnalisation (custom) propre a cette plateforme de developpement. | ||
| + | Pour ce faire nous creeons un directory de custom spécifique et le lien qui va avec | ||
| + | |||
| + | < | ||
| + | [esup@esup4dev esup-uportal]$ cd uportal-war/ | ||
| + | [esup@esup4dev data]$ ls | ||
| + | default_entities | ||
| + | [esup@esup4dev data]$ mkdir tem-tsp | ||
| + | |||
| + | [esup@esup4dev data]$ cd / | ||
| + | [esup@esup4dev esup-uportal]$ ln -s uportal-war/ | ||
| + | [esup@esup4dev esup-uportal]$ ls -l custom | ||
| + | lrwxrwxrwx 1 esup tomcat 34 Jul 16 15:18 custom -> uportal-war/ | ||
| + | |||
| + | |||
| + | </ | ||
| + | |||
| + | ==== git custom ==== | ||
| + | |||
| + | ici nous recuperons le sous repertoire custom d'une autre machine de develoopement , pour profitons de l' | ||
| + | |||
| + | | ||
| + | |||
| + | < | ||
| + | [esup@esup4dev custom]$ git remote add ecampusdev-esup-uportal ssh:// | ||
| + | [esup@esup4dev custom]$ git branch -a | ||
| + | [esup@esup4dev custom]$ git remote -v show | ||
| + | ecampusdev-esup-uportal ssh:// | ||
| + | ecampusdev-esup-uportal ssh:// | ||
| + | |||
| + | [esup@esup4dev custom]$ ls -al | ||
| + | total 12 | ||
| + | drwxr-xr-x 3 esup tomcat 4096 Jul 16 15:21 . | ||
| + | drwxr-xr-x 6 esup tomcat 4096 Jul 16 15:14 .. | ||
| + | drwxr-xr-x 7 esup tomcat 4096 Jul 16 15:33 .git | ||
| + | |||
| + | |||
| + | </ | ||
| + | |||
| + | |||
| + | |||
| + | ===== group Pags ====== | ||
| + | |||
| + | https:// | ||
| + | |||
| + | groups sur attributs utilisateur | ||
| + | |||
| + | Rechercher les attributs utilisateur dans ldap, les attributs qu'on souhaite mapper pour chaque utilisateur dans ldap. | ||
| + | |||
| + | < | ||
| + | [esup@esup4dev esup-uportal]$ diff / | ||
| + | 161c161 | ||
| + | < <ref bean=" | ||
| + | --- | ||
| + | > < | ||
| + | 242c242 | ||
| + | < <!-- Rajout ci-dessous pour retirer le " | ||
| + | --- | ||
| + | > | ||
| + | 246,247d245 | ||
| + | < <!-- AND NOT FOUND BEFORE ?? --> | ||
| + | < < | ||
| + | 281,285d278 | ||
| + | < < | ||
| + | < < | ||
| + | < < | ||
| + | < < | ||
| + | < < | ||
| + | [esup@esup4dev esup-uportal]$ cp / | ||
| + | </ | ||
| + | |||
| + | ===== import user ===== | ||
| + | |||
| + | import d' | ||
| + | |||
| + | < | ||
| + | [esup@esup4dev esup-uportal]$ ant data-import -Dfile=custom/ | ||
| + | ... | ||
| + | | ||
| + | | ||
| + | | ||
| + | | ||
| + | | ||
| + | |||
| + | BUILD SUCCESSFUL | ||
| + | Total time: 22 seconds | ||
| + | </ | ||
| + | |||
| + | ==== import group ==== | ||
| + | |||
| + | < | ||
| + | [esup@esup4dev esup-uportal]$ ant data-import -Dfile=custom/ | ||
| + | [java] | ||
| + | | ||
| + | | ||
| + | | ||
| + | | ||
| + | | ||
| + | |||
| + | BUILD SUCCESSFUL | ||
| + | Total time: 22 seconds | ||
| + | |||
| + | [esup@esup4dev esup-uportal]$ ant data-import -Dfile=custom/ | ||
| + | ... | ||
| + | | ||
| + | | ||
| + | | ||
| + | | ||
| + | | ||
| + | | ||
| + | | ||
| + | |||
| + | BUILD SUCCESSFUL | ||
| + | Total time: 22 seconds | ||
| + | |||
| + | </ | ||
| + | |||
| + | ==== import portlet ==== | ||
| + | |||
| + | exemple avec portlet esup-filemanager | ||
| + | |||
| + | < | ||
| + | [esup@esup4dev esup-uportal]$ ant data-import -Ddir=custom/ | ||
| + | ... | ||
| + | | ||
| + | | ||
| + | | ||
| + | | ||
| + | | ||
| + | | ||
| + | | ||
| + | | ||
| + | | ||
| + | | ||
| + | | ||
| + | | ||
| + | | ||
| + | |||
| + | BUILD SUCCESSFUL | ||
| + | Total time: 21 seconds | ||
| + | </ | ||
| ====== Ancienne doc uPortal 3.2 a faire evoluer ... ====== | ====== Ancienne doc uPortal 3.2 a faire evoluer ... ====== | ||