Both sides previous revision
Previous revision
Next revision
|
Previous revision
|
docpublic:systemes:esup:esup_socle [2011/05/20 14:07] PROCACCIA |
docpublic:systemes:esup:esup_socle [2011/05/20 15:37] (current) PROCACCIA |
===== Socle Esup ===== | ===== Socle Esup 3.1 ===== |
| |
Installation d'un socle esup-portail 3.1.2 sous centos 5 | Installation d'un socle esup-portail 3.1.2 sous centos 5 |
| |
| |
| === catalina.properties === |
| |
| les librairies pluto* etc .. vont encore suivre l'arborescence tomcat5 (shared/lib ...) il faut donc indiquer a ce tomcat6 de charger ces librairie depuis cette arborescence qu'ona reconstruit plus haut . |
| |
| <code> |
| [root@esup32dev /etc/tomcat6] |
| $ diff catalina.properties.orig catalina.properties |
| 74c74 |
| < shared.loader= |
| --- |
| > shared.loader=${catalina.base}/shared/classes,${catalina.base}/shared/lib/*.jar |
| </code> |
| |
| |
<code> | <code> |
$ yum install ant | $ yum install ant |
--> Processing Dependency: /usr/bin/rebuild-security-providers for package: java-1.4.2-gcj-compat | --> Finished Dependency Resolution |
https://bugzilla.redhat.com/show_bug.cgi?id=260161 | java-1.4.2-gcj-compat-1.4.2.0-40jpp.115.i386 from installed has depsolving problems |
--> Missing Dependency: /usr/bin/rebuild-security-providers is needed by package java-1.4.2-gcj-compat-1.4.2.0-40jpp.115.x86_64 (ce5-x86_64-Everything) | --> Missing Dependency: /usr/bin/rebuild-security-providers is needed by package java-1.4.2-gcj-compat-1.4.2.0-40jpp.115.i386 (installed) |
| Error: Missing Dependency: /usr/bin/rebuild-security-providers is needed by package java-1.4.2-gcj-compat-1.4.2.0-40jpp.115.i386 (installed) |
</code> | </code> |
| |
retrait de jpckage-utils (from jpackage 5.0) | retrait de jpckage-utils (from jpackage 5.0, enabled = 0 dans le fichier .repo) |
| |
<code> | <code> |
Removing: | $ rpm -e jpackage-utils |
jpackage-utils noarch 5.0.0-2.jpp5 installed 172 k | error: Failed dependencies: |
[root@esup3dev ~] | jpackage-utils >= 0:1.5.38 is needed by (installed) java-1.6.0-sun-1.6.0.21-1jpp.i586 |
| jpackage-utils is needed by (installed) antlr-2.7.6-6.jpp5.noarch |
| jpackage-utils >= 0:1.7.2 is needed by (installed) jakarta-commons-logging-1.1-8.jpp5.noarch |
| jpackage-utils >= 0:1.6.6-1jpp_1rh is needed by (installed) java-1.4.2-gcj-compat-1.4.2.0-40jpp.115.i386 |
| /usr/bin/rebuild-security-providers is needed by (installed) java-1.4.2-gcj-compat-1.4.2.0-40jpp.115.i386 |
| </code> |
| |
| on force un --nodeps |
| |
| <code> |
| [root@esup32dev /etc/tomcat6] |
$ rpm -e jpackage-utils --nodeps | $ rpm -e jpackage-utils --nodeps |
| warning: /etc/maven/maven2-depmap.xml saved as /etc/maven/maven2-depmap.xml.rpmsave |
| </code> |
| |
| |
</code> | </code> |
| |
reinstallation depuis le repo centos en version 1.7 incluant le fameux rebuild-security-providers | reinstallation depuis le repo centos en version 1.7 incluant le fameux rebuild-security-providers |
<code> | <code> |
[root@esup3dev ~] | [root@esup32dev /etc/tomcat6] |
$ yum install jpackage-utils | $ yum install jpackage-utils |
Installing: | Installed: |
jpackage-utils noarch 1.7.3-1jpp.2.el5 ce5-x86_64-Everything 61 k | jpackage-utils.noarch 0:1.7.3-1jpp.2.el5 |
| |
[root@esup3dev ~] | |
$ rpm -qli jpackage-utils | grep rebuild-security | $ rpm -qli jpackage-utils | grep rebuild-security |
/usr/bin/rebuild-security-providers | /usr/bin/rebuild-security-providers |
| |
</code> | </code> |
| |
| |
<code> | <code> |
| [root@esup32dev /etc/tomcat6] |
$ yum --disablerepo=jpackage-generic install ant ant-apache-regexp ant-contrib | $ yum --disablerepo=jpackage-generic install ant ant-apache-regexp ant-contrib |
| |
=========================================================================================================================== | =========================================================================================================================== |
Package Arch Version Repository Size | Package Arch Version Repository Size |
=========================================================================================================================== | =========================================================================================================================== |
Installing: | Installing: |
ant x86_64 1.6.5-2jpp.2 ce5-x86_64-Everything 2.3 M | ant i386 1.6.5-2jpp.2 core-0 2.0 M |
ant-apache-regexp x86_64 1.6.5-2jpp.2 ce5-x86_64-Everything 28 k | ant-apache-regexp i386 1.6.5-2jpp.2 core-0 27 k |
ant-contrib noarch 1.0-0.10.b2.el5 el5-x86_64-epel 221 k | ant-contrib noarch 1.0-0.10.b2.el5 el5-i386-epel 221 k |
Installing for dependencies: | Installing for dependencies: |
alsa-lib x86_64 1.0.17-1.el5 core-0 414 k | junit i386 3.8.2-3jpp.1 core-0 304 k |
antlr x86_64 2.7.6-4jpp.2 core-0 1.1 M | regexp i386 1.4-2jpp.2 core-0 91 k |
atk x86_64 1.12.2-1.fc6 core-0 224 k | xerces-j2 i386 2.7.1-7jpp.2.el5_4.2 core-0 2.7 M |
gjdoc x86_64 0.7.7-12.el5 core-0 886 k | xml-commons i386 1.3.02-0.b2.7jpp.10 core-0 19 k |
gtk2 x86_64 2.10.4-20.el5 core-0 6.5 M | xml-commons-apis i386 1.3.02-0.b2.7jpp.10 core-0 334 k |
hicolor-icon-theme noarch 0.9-2.1 core-0 25 k | xml-commons-resolver i386 1.1-1jpp.12 core-0 148 k |
java-1.4.2-gcj-compat x86_64 1.4.2.0-40jpp.115 core-0 29 k | |
junit x86_64 3.8.2-3jpp.1 core-0 337 k | |
libXcursor x86_64 1.1.7-1.1 core-0 32 k | |
libXfixes x86_64 4.0.1-2.1 core-0 15 k | |
libXinerama x86_64 1.0.1-2.1 core-0 9.8 k | |
libXrandr x86_64 1.1.1-3.1 core-0 15 k | |
libart_lgpl x86_64 2.3.17-4 core-0 75 k | |
libgcj x86_64 4.1.2-46.el5_4.2 Ce5-x86_64-updates 18 M | |
regexp x86_64 1.4-2jpp.2 core-0 102 k | |
zip x86_64 2.31-2.el5 core-0 136 k | |
| |
Transaction Summary | Transaction Summary |
=========================================================================================================================== | =========================================================================================================================== |
Install 19 Package(s) | Install 9 Package(s) |
Update 0 Package(s) | Upgrade 0 Package(s) |
Remove 0 Package(s) | |
| |
Total download size: 30 M | Total download size: 5.8 M |
Is this ok [y/N]: y | Is this ok [y/N]: y |
</code> | </code> |
==== archive ==== | ==== archive ==== |
| |
recuperer l'archive uPortal-esup-DLM depuis https://sourcesup.cru.fr/frs/?group_id=173&release_id=1216, | recuperer l'archive uPortal-esup-DLM depuis https://sourcesup.cru.fr/frs/download.php/3562/esup-uPortal-3.2.4-esup-1.0.0-RC3.tar.gz |
ici esup-3.1.2-esup-0.5-RC3.tar.gz | |
| |
travailler en tant qu'utilisateur esup. | travailler en tant qu'utilisateur esup. |
$ cd src | $ cd src |
$ wget https://sourcesup.cru.fr/frs/download.php/2902/esup-3.1.2-esup-0.5-RC3.tar.gz | $ wget https://sourcesup.cru.fr/frs/download.php/2902/esup-3.1.2-esup-0.5-RC3.tar.gz |
| [esup@esup32dev ~] |
| $ ls -l |
| total 2132 |
| -rw-rw-r-- 1 esup esup 2178865 May 20 17:24 esup-uPortal-3.2.4-esup-1.0.0-RC3.tar.gz |
</code> | </code> |
| |
ProxyPass /ResourceServingWebapp ajp://localhost:8009/ResourceServingWebapp retry=1 | ProxyPass /ResourceServingWebapp ajp://localhost:8009/ResourceServingWebapp retry=1 |
</code> | </code> |
| |
| le retry=1 demande a apache de ressayer apres 1s si echec d'acces au tomcat. pratique en developpement , mais en prod peut-etre trop lourd si X client accedent alors que le tomcat n'a pas encore demarré. Le parametre par defaut de retry d'apache en cas d'echec de connexion apache -> ajp tomcat doit etre de l'ordre de 30s |
| cf video 3.2 ~50mn |
| |
===== SSL ===== | ===== SSL ===== |
compile: | compile: |
[javac] Compiling 25 source files to /home/esup/src/canaux/esup-utils-mag-2.5/build/WEB-INF/classes | [javac] Compiling 25 source files to /home/esup/src/canaux/esup-utils-mag-2.5/build/WEB-INF/classes |
[javac] /home/esup/src/canaux/esup-utils-mag-2.5/source/org/esupportail/portal/utils/channels/ConfigChannel.java:7: package javax.servlet.jsp does not exist | [javac] /home/esup/src/canaux/esup-utils-mag-2.5/source/org/esupportail/portal/utils/channels/ConfigChannel.java:7: package |
</code> | |
| |
alors | |
| |
<code> | |
$ diff -ur build.xml.orig build.xml | |
--- build.xml.orig 2010-08-25 17:15:38.000000000 +0200 | |
+++ build.xml 2010-08-25 17:17:05.000000000 +0200 | |
@@ -62,6 +62,9 @@ | |
| |
<!-- Les lib de Tomcat --> | |
<fileset dir="${tomcat.home}/common/lib" includes="**/*.jar" /> | |
| |
+ <!-- https://listes.esup-portail.org/sympa/arc/esup-utilisateurs/2010-02/msg00099.html --> | |
+ <fileset dir="${tomcat.home}/lib" includes="**/*.jar" /> | |
+ | |
</code> | |
| |
<code> | |
[esup@esup3dev ~/src/canaux/esup-utils-mag-2.5] | |
$ ant all | |
Buildfile: build.xml | |
| |
clean: | |
[delete] Deleting directory /home/esup/src/canaux/esup-utils-mag-2.5/build | |
| |
undeploy: | |
| |
prepare: | |
[mkdir] Created dir: /home/esup/src/canaux/esup-utils-mag-2.5/build | |
[mkdir] Created dir: /home/esup/src/canaux/esup-utils-mag-2.5/build/WEB-INF/classes | |
| |
prepareINSTALL: | |
| |
prepareUPGRADE: | |
| |
prepareREADME: | |
| |
prepareLICENCE: | |
| |
prepareCHANGELOG: | |
| |
compile: | |
[javac] Compiling 25 source files to /home/esup/src/canaux/esup-utils-mag-2.5/build/WEB-INF/classes | |
[javac] /home/esup/src/canaux/esup-utils-mag-2.5/source/org/esupportail/portal/utils/channels/ConfigChannel.java:59: warning: [deprecation] DEBUG in org.apache.log4j.Priority has been deprecated | |
[javac] logLevel = Priority.DEBUG; | |
[javac] ^ | |
[javac] /home/esup/src/canaux/esup-utils-mag-2.5/source/org/esupportail/portal/utils/channels/SubChannel.java:201: warning: [deprecation] getBaseWorkerURL(java.lang.String,boolean) in org.jasig.portal.ChannelRuntimeData has been deprecated | |
[javac] xslParameters.put("baseDownloadURL",runtimeData.getBaseWorkerURL(UPFileSpec.FILE_DOWNLOAD_WORKER, true).replaceAll("%2F", "/")); | |
[javac] ^ | |
[javac] /home/esup/src/canaux/esup-utils-mag-2.5/source/org/esupportail/portal/utils/channels/SubChannelAjax.java:116: warning: [deprecation] getBaseActionURL(boolean) in org.jasig.portal.ChannelRuntimeData has been deprecated | |
[javac] getXSLParameter().put("baseActionURL",runtimeData.getBaseActionURL(true)); | |
[javac] ^ | |
[javac] /home/esup/src/canaux/esup-utils-mag-2.5/source/org/esupportail/portal/utils/channels/SubChannelAjax.java:211: warning: [deprecation] getBaseActionURL(boolean) in org.jasig.portal.ChannelRuntimeData has been deprecated | |
[javac] String redirect = runtimeData.getBaseActionURL(true) + "?"; | |
[javac] ^ | |
[javac] Note: Some input files use unchecked or unsafe operations. | |
[javac] Note: Recompile with -Xlint:unchecked for details. | |
[javac] 4 warnings | |
[copy] Copying 2 files to /home/esup/src/canaux/esup-utils-mag-2.5/build/WEB-INF/classes/properties/channels/org_esup/esup-utils-mag | |
[copy] Copying 5 files to /home/esup/src/canaux/esup-utils-mag-2.5/build/WEB-INF/classes | |
[copy] Copying 10 files to /home/esup/src/canaux/esup-utils-mag-2.5/build/media | |
| |
deploy: | |
[copy] Copying 42 files to /usr/share/tomcat6/webapps/uPortal | |
| |
all: | |
| |
BUILD SUCCESSFUL | |
Total time: 1 second | |
</code> | |
| |
| |
Retour au deployement de CStockage maintenant que MAG est disponible: | |
| |
<code> | |
[esup@esup3dev ~/src/canaux/CStockage-4.7-RC-2] | |
$ ant all | |
Buildfile: build.xml | |
| |
clean: | |
[delete] Deleting directory /home/esup/src/canaux/CStockage-4.7-RC-2/build | |
| |
undeploy: | |
| |
prepareBuild: | |
[mkdir] Created dir: /home/esup/src/canaux/CStockage-4.7-RC-2/build | |
[mkdir] Created dir: /home/esup/src/canaux/CStockage-4.7-RC-2/build/WEB-INF/classes | |
| |
compile: | |
[javac] Compiling 123 source files to /home/esup/src/canaux/CStockage-4.7-RC-2/build/WEB-INF/classes | |
[javac] /home/esup/src/canaux/CStockage-4.7-RC-2/source/org/esupportail/portal/channels/CStockage/CStockage.java:1036: warning: [deprecation] getBaseWorkerURL(java.lang.String,boolean) in org.jasig.portal.ChannelRuntimeData has been deprecated | |
[javac] String downloadUrl = runtimeData.getBaseWorkerURL(UPFileSpec.FILE_DOWNLOAD_WORKER,true).replaceAll("%2F","/"); | |
[javac] ^ | |
[javac] /home/esup/src/canaux/CStockage-4.7-RC-2/source/org/esupportail/portal/channels/CStockage/provider/access/WebdavAccessImpl.java:336: warning: [deprecation] getReasonCode() in org.apache.commons.httpclient.HttpException has been deprecated | |
[javac] int reasonCode = ex.getReasonCode(); | |
[javac] ^ | |
[javac] /home/esup/src/canaux/CStockage-4.7-RC-2/source/org/esupportail/portal/channels/CStockage/provider/access/WebdavAccessImpl.java:2580: warning: [deprecation] setReasonCode(int) in org.apache.commons.httpclient.HttpException has been deprecated | |
[javac] ex.setReasonCode(status); | |
[javac] ^ | |
[javac] Note: Some input files use unchecked or unsafe operations. | |
[javac] Note: Recompile with -Xlint:unchecked for details. | |
[javac] 3 warnings | |
[copy] Copying 8 files to /home/esup/src/canaux/CStockage-4.7-RC-2/build/WEB-INF/classes/properties/channels/org_esup/CStockage | |
[copy] Copying 47 files to /home/esup/src/canaux/CStockage-4.7-RC-2/build/WEB-INF/classes/org/esupportail/portal/channels/CStockage | |
[copy] Copying 109 files to /home/esup/src/canaux/CStockage-4.7-RC-2/build/media/org/esupportail/portal/channels/CStockage | |
| |
deploy: | |
[copy] Copying 288 files to /usr/share/tomcat6/webapps/uPortal | |
| |
all: | |
| |
BUILD SUCCESSFUL | |
Total time: 2 seconds | |
</code> | |
| |
fichier de publication du canal | |
| |
<code> | |
[esup@esup3dev ~/src/esup-install] | |
$ cat custom/uPortal/uportal-impl/src/main/resources/properties/db/itsp/channel/CStockage.channel | |
<channel-definition script="classpath://org/jasig/portal/io/import-channel_v3-1.crn"> | |
<title>Mes fichiers</title> | |
<name>Mes fichiers</name> | |
<fname>CStockage</fname> | |
<desc>Canal de stockage - Acces fichiers</desc> | |
<type>Custom</type> | |
<class>org.esupportail.portal.channels.CStockage.CStockage</class> | |
<timeout>5000</timeout> | |
<hasedit>N</hasedit> | |
<hashelp>N</hashelp> | |
<hasabout>N</hasabout> | |
<secure>N</secure> | |
<locale>en_US</locale> | |
<categories> | |
<category>Applications</category> | |
</categories> | |
<groups> | |
<group>Tout le monde</group> | |
</groups> | |
<users/> | |
<portletPreferences/> | |
</channel-definition> | |
</code> | |
| |
publication | |
| |
<code> | |
[esup@esup3dev ~/src/esup-install] | |
$ ant db.import -Ddir=/home/esup/src/esup-install/custom/uPortal/uportal-impl/src/main/resources/properties/db/itsp/channel -Dpattern="CStockage.channel" | |
... | |
[java] Base Import Directory=/home/esup/src/esup-install/custom/uPortal/uportal-impl/src/main/resources/properties/db/itsp/channel | |
[java] FILE_PATTERN=CStockage.channel | |
[java] Import Channel: CStockage.channel | |
</code> | |
| |
| |
===== fragments ===== | |
| |
ils permettent d'affecter automatiquement un ensemble de contenu a une population. | |
il faut preparer des contenu ciblé, onglet, colonne , canaux pour qu'une population est ce pre-remplissage a la connexion . | |
| |
Deux composantes: | |
* definition du fragment (nom-destination) properties/dlm.xml, | |
* puis ralisation du contenu du fragment | |
| |
==== definition ==== | |
| |
ownerID pour trouver le contenu de ce fragment, on crée un utilisateur pour lequel on crée un environement onglets/canaux/colones et on definit le fragment X comme etant l'environement de l'utilisateur X-lo (LayOut) . | |
| |
bonne pratique creer un fragment par onglet afin de pouvoir intercaler de nouveaux onglets en cours d'année, idem pour les precedences (10-20-30 ...), se garder du mou ... | |
| |
audiance => deepMemberOf de "tout le monde" (heritage), mais memberOf "eteblissement X" = attachement direct a ce group (feuille). | |
| |
==== users-lo ==== | |
| |
l'option d'import/création d'un utilisateur pour gérer les fragments façon 2.6 n'est plus recommandée: *ant useradd + mot de passe* | |
| |
en Esup3 la simple déclaration du user-lo dans le fichier dlm.xml créé automatiquement l'utilisateur . | |
comme il n'a pas de mot de passe, on peut se connecter en tant qu'admin puis graphiquement -> fragment Administrator -> guest -> on est connecté en tant que guest-lo et ainsi on peux manipuler graphiquement son environnement (memorisé en BD) puis fait un BD.export du layout . | |
| |
Principes d'usage, la partie anonyme du portail sur le compte guest-lo, puis personnel-lo et etudiants-lo. | |
| |
=== définition des utilisateurs === | |
| |
<code> | |
[esup@esup3dev ~/src/esup-3.1.2-esup-0.5-RC3/custom/uPortal/uportal-impl/src/main/resources/properties/db/itsp/utilisateurs] | |
$ ls | |
enseignant-lo.user etudiant-lo.user personnel-lo.user | |
[esup@esup3dev ~/src/esup-3.1.2-esup-0.5-RC3/custom/uPortal/uportal-impl/src/main/resources/properties/db/itsp/utilisateurs] | |
$ cat enseignant-lo.user | |
| |
<user script="classpath://org/jasig/portal/io/import-user_v3-0.crn" username="enseignant-lo"> | |
<default-user>defaultTemplateUser</default-user> | |
</user> | |
</code> | |
| |
=== import des utilisateurs === | |
| |
<code> | |
[esup@esup3dev ~/src/esup-3.1.2-esup-0.5-RC3] | |
$ ant db.import -Ddir=/home/esup/src/esup-install/custom/uPortal/uportal-impl/src/main/resources/properties/db/itsp/utilisateurs/ | |
Buildfile: build.xml | |
| |
db.import: | |
| |
prodPrompt: | |
| |
crn-import: | |
| |
install-parent-pom: | |
[artifact:install] [INFO] Installing /home/esup/src/esup-3.1.2-esup-0.5-RC3/Portail/uPortal_rel-3.1.2/pom.xml to /home/esup/.m2/repository/org/jasig/portal/uportal-parent/3.1.2/uportal-parent-3.1.2.pom | |
[touch] Creating /tmp/jasig/uportal-parent.pom-1136063799-marker | |
[echo] Artifact '/home/esup/src/esup-3.1.2-esup-0.5-RC3/Portail/uPortal_rel-3.1.2/uportal-impl/target/uportal-impl-3.1.2.jar' is up-to-date | |
[artifact:install] [INFO] Installing /home/esup/src/esup-3.1.2-esup-0.5-RC3/Portail/uPortal_rel-3.1.2/uportal-impl/target/uportal-impl-3.1.2.jar to /home/esup/.m2/repository/org/jasig/portal/uportal-impl/3.1.2/uportal-impl-3.1.2.jar | |
[java] | |
[java] INFO Creating new lazily initialized GenericApplicationContext for the portal | |
[java] INFO Created new MemoryContext with environment '{java.naming.factory.url.pkgs=tyrex.naming, java.naming.provider.url=, java.naming.factory.initial=org.jasig.portal.jndi.DisposableMemoryContextFactory}' | |
[java] INFO Initialized portal JNDI context | |
[java] INFO Failed to load bean 'PortalDb.JNDI' from ApplicationContext expecting type: interface javax.sql.DataSource. Will try to load the next bean in the list instead. Error message from the attempt to load this bean ('PortalDb.JNDI'): Error creating bean with name 'PortalDb.JNDI' defined in class path resource [properties/contexts/datasourceContext.xml]: Invocation of init method failed; nested exception is javax.naming.NotContextException: comp is not a subcontext (enable debug for stack trace) | |
[java] INFO Loaded bean for name PortalDb.direct | |
[java] INFO Setting CacheProvider 'org.jasig.portal.utils.cache.hibernate.EhCacheProvider@54dbb83a' on ThreadLocal | |
[java] AbandonedObjectPool is used (org.apache.commons.dbcp.AbandonedObjectPool@45d18084) | |
[java] LogAbandoned: true | |
[java] RemoveAbandoned: true | |
[java] RemoveAbandonedTimeout: 300 | |
[java] INFO Created new lazily initialized GenericApplicationContext for the portal in 3734ms | |
[java] Base Import Directory=/home/esup/src/esup-install/custom/uPortal/uportal-impl/src/main/resources/properties/db/itsp/utilisateurs/ | |
[java] FILE_PATTERN=.* | |
[java] Import User: enseignant-lo.user | |
[java] INFO Looking up bean 'counterStore' in ApplicationContext due to context not yet being initialized | |
[java] Import User: etudiant-lo.user | |
[java] Import User: personnel-lo.user | |
[java] Import of /home/esup/src/esup-install/custom/uPortal/uportal-impl/src/main/resources/properties/db/itsp/utilisateurs/ Complete: 4148 | |
| |
BUILD SUCCESSFUL | |
Total time: 8 seconds | |
</code> | |
| |
il est de bon usage d'ajouter ces utilisateurs au groupe "proprietaire de fragment" pour faciliter la gestion graphique de ces comptes | |
| |
| |
<code> | |
[esup@esup3dev ~/src/esup-3.1.2-esup-0.5-RC3/custom/uPortal/uportal-impl/src/main/resources/properties/db/itsp/group_membership] | |
$ cat Proprietaires_de_fragment.group_membership | |
| |
<group script="classpath://org/jasig/portal/io/import-group_membership_v3-0.crn"> | |
<name>Proprietaires de fragment</name> | |
<entity-type>org.jasig.portal.security.IPerson</entity-type> | |
<creator>system</creator> | |
<description>These are fragment layout owner accounts</description> | |
<children> | |
<literal>admin-lo</literal> | |
<literal>all-lo</literal> | |
<literal>fragmentTemplate</literal> | |
<literal>guest-lo</literal> | |
<literal>personnel-lo</literal> | |
<literal>enseignant-lo</literal> | |
<literal>etudiant-lo</literal> | |
</children> | |
</group> | |
</code> | |
| |
db import | |
| |
<code> | |
[esup@esup3dev ~/src/esup-3.1.2-esup-0.5-RC3] | |
$ ant db.import -Ddir=/home/esup/src/esup-install/custom/uPortal/uportal-impl/src/main/resources/properties/db/itsp/group_membership/ -Dpattern="Proprietaires_de_fragment.*\.group_membership" | |
Buildfile: build.xml | |
| |
db.import: | |
| |
prodPrompt: | |
| |
crn-import: | |
| |
install-parent-pom: | |
[artifact:install] [INFO] Installing /home/esup/src/esup-3.1.2-esup-0.5-RC3/Portail/uPortal_rel-3.1.2/pom.xml to /home/esup/.m2/repository/org/jasig/portal/uportal-parent/3.1.2/uportal-parent-3.1.2.pom | |
[touch] Creating /tmp/jasig/uportal-parent.pom-1791558980-marker | |
[echo] Artifact '/home/esup/src/esup-3.1.2-esup-0.5-RC3/Portail/uPortal_rel-3.1.2/uportal-impl/target/uportal-impl-3.1.2.jar' is up-to-date | |
[artifact:install] [INFO] Installing /home/esup/src/esup-3.1.2-esup-0.5-RC3/Portail/uPortal_rel-3.1.2/uportal-impl/target/uportal-impl-3.1.2.jar to /home/esup/.m2/repository/org/jasig/portal/uportal-impl/3.1.2/uportal-impl-3.1.2.jar | |
[java] | |
[java] INFO Creating new lazily initialized GenericApplicationContext for the portal | |
[java] INFO Created new MemoryContext with environment '{java.naming.factory.url.pkgs=tyrex.naming, java.naming.provider.url=, java.naming.factory.initial=org.jasig.portal.jndi.DisposableMemoryContextFactory}' | |
[java] INFO Initialized portal JNDI context | |
[java] INFO Failed to load bean 'PortalDb.JNDI' from ApplicationContext expecting type: interface javax.sql.DataSource. Will try to load the next bean in the list instead. Error message from the attempt to load this bean ('PortalDb.JNDI'): Error creating bean with name 'PortalDb.JNDI' defined in class path resource [properties/contexts/datasourceContext.xml]: Invocation of init method failed; nested exception is javax.naming.NotContextException: comp is not a subcontext (enable debug for stack trace) | |
[java] INFO Loaded bean for name PortalDb.direct | |
[java] INFO Setting CacheProvider 'org.jasig.portal.utils.cache.hibernate.EhCacheProvider@54dbb83a' on ThreadLocal | |
[java] AbandonedObjectPool is used (org.apache.commons.dbcp.AbandonedObjectPool@45d18084) | |
[java] LogAbandoned: true | |
[java] RemoveAbandoned: true | |
[java] RemoveAbandonedTimeout: 300 | |
[java] INFO Created new lazily initialized GenericApplicationContext for the portal in 3972ms | |
[java] Base Import Directory=/home/esup/src/esup-install/custom/uPortal/uportal-impl/src/main/resources/properties/db/itsp/group_membership/ | |
[java] FILE_PATTERN=Proprietaires_de_fragment.*\.group_membership | |
[java] Import Group_Membership: Proprietaires_de_fragment.group_membership | |
[java] Import Memberships: Proprietaires_de_fragment.group_membership | |
[java] Import of /home/esup/src/esup-install/custom/uPortal/uportal-impl/src/main/resources/properties/db/itsp/group_membership/ Complete: 4306 | |
| |
BUILD SUCCESSFUL | |
Total time: 8 seconds | |
</code> | |
| |
=== delete d'utilisateur === | |
| |
a des fin de test des fragments / profiles, il peut-etre utile d'effacer un utilisateur de la BD uPortal afin de verifier le layout (profil dlm) qu'il reçoit initialement. | |
| |
Litse de tache ant et description: | |
http://www.esup-portail.org/pages/viewpage.action?pageId=84213994 | |
| |
| |
ici c'est "ant user.del -Dusername=test" qui va etre utiliser | |
| |
<code> | |
[esup@esup3dev ~/src/esup-install] | |
$ ant user.del -Dusername=test | |
[echo] Invoking DeleteUser | |
... | |
[java] DeleteUser.main(): Got portal UID for test: 271 | |
.... | |
[java] DeleteUser.main(): Removed 271 from portal db. | |
| |
BUILD SUCCESSFUL | |
</code> | |
| |
pour constater pleinement le changement, il est preferable de refaire un ant init, ant deploy et tomcat restart apres ce delete. | |
| |
==== Fragments Import XML ==== | |
| |
on prepare nos fragments par type de population (associées aux utilisateurs modeles) | |
| |
<code> | |
[esup@esup3dev ~/src/esup-install/custom/uPortal/uportal-impl/src/main/resources/properties/db/itsp/fragments] | |
$ ls | |
admin-lo.fragment-layout enseignant-lo.fragment-layout guest-lo.fragment-layout | |
all-lo.fragment-layout etudiant-lo.fragment-layout personnel-lo.fragment-layout | |
</code> | |
| |
==== Fragments par GUI ==== | |
| |
on peux aussi les administrer via l'interface web du portail, via le Canal "Fragment Administration" | |
| |
| |
==== import des xml ==== | |
| |
<code> | |
| |
[esup@esup3dev ~/src/esup-install] | |
$ ant db.import -Ddir=/home/esup/src/esup-install/custom/uPortal/uportal-impl/src/main/resources/properties/db/itsp/fragments/ | |
Buildfile: build.xml | |
| |
db.import: | |
| |
prodPrompt: | |
| |
crn-import: | |
| |
install-parent-pom: | |
[artifact:install] [INFO] Installing /home/esup/src/esup-3.1.2-esup-0.5-RC3/Portail/uPortal_rel-3.1.2/pom.xml to /home/esup/.m2/repository/org/jasig/portal/uportal-parent/3.1.2/uportal-parent-3.1.2.pom | |
[touch] Creating /tmp/jasig/uportal-parent.pom-1466962851-marker | |
[echo] Artifact '/home/esup/src/esup-3.1.2-esup-0.5-RC3/Portail/uPortal_rel-3.1.2/uportal-impl/target/uportal-impl-3.1.2.jar' is up-to-date | |
[artifact:install] [INFO] Installing /home/esup/src/esup-3.1.2-esup-0.5-RC3/Portail/uPortal_rel-3.1.2/uportal-impl/target/uportal-impl-3.1.2.jar to /home/esup/.m2/repository/org/jasig/portal/uportal-impl/3.1.2/uportal-impl-3.1.2.jar | |
[java] | |
[java] INFO Creating new lazily initialized GenericApplicationContext for the portal | |
[java] INFO Created new MemoryContext with environment '{java.naming.factory.url.pkgs=tyrex.naming, java.naming.provider.url=, java.naming.factory.initial=org.jasig.portal.jndi.DisposableMemoryContextFactory}' | |
[java] INFO Initialized portal JNDI context | |
[java] INFO Failed to load bean 'PortalDb.JNDI' from ApplicationContext expecting type: interface javax.sql.DataSource. Will try to load the next bean in the list instead. Error message from the attempt to load this bean ('PortalDb.JNDI'): Error creating bean with name 'PortalDb.JNDI' defined in class path resource [properties/contexts/datasourceContext.xml]: Invocation of init method failed; nested exception is javax.naming.NotContextException: comp is not a subcontext (enable debug for stack trace) | |
[java] INFO Loaded bean for name PortalDb.direct | |
[java] INFO Setting CacheProvider 'org.jasig.portal.utils.cache.hibernate.EhCacheProvider@77cb8e0f' on ThreadLocal | |
[java] AbandonedObjectPool is used (org.apache.commons.dbcp.AbandonedObjectPool@5f0704e1) | |
[java] LogAbandoned: true | |
[java] RemoveAbandoned: true | |
[java] RemoveAbandonedTimeout: 300 | |
[java] INFO Created new lazily initialized GenericApplicationContext for the portal in 3831ms | |
[java] Base Import Directory=/home/esup/src/esup-install/custom/uPortal/uportal-impl/src/main/resources/properties/db/itsp/fragments/ | |
[java] FILE_PATTERN=.* | |
[java] Import DLM Fragment Layout: admin-lo.fragment-layout | |
[java] Import DLM Fragment Layout: all-lo.fragment-layout | |
[java] Import DLM Fragment Layout: enseignant-lo.fragment-layout | |
[java] Import DLM Fragment Layout: etudiant-lo.fragment-layout | |
[java] Import DLM Fragment Layout: guest-lo.fragment-layout | |
[java] Import DLM Fragment Layout: personnel-lo.fragment-layout | |
[java] Import of /home/esup/src/esup-install/custom/uPortal/uportal-impl/src/main/resources/properties/db/itsp/fragments/ Complete: 5622 | |
| |
BUILD SUCCESSFUL | |
Total time: 10 seconds | |
</code> | |
| |
===== DLM ===== | |
| |
===== Skin ===== | |
| |
| |
==== skinList ==== | |
principe de separation entre le html et la css | |
| |
on peux avoir plusieurs css et l'utilisateur passe de l'une a l'autre. Quand on desactive la css on a un portail "serialisé" voire "accessible" ... ;-) | |
| |
Fichier skinList.xml de base avec 2 skin | |
| |
<code> | |
uportal-war/src/main/webapp/media/skins/universality/skinList.xml | |
</code> | |
| |
pour notre skin on reprend ce fichier dans custom | |
| |
<code> | |
[esup@esup3prod ~/src/esup-install/custom/uPortal] | |
$ mkdir -p uportal-war/src/main/webapp/media/skins/universality/ | |
[esup@esup3prod ~/src/esup-install/custom/uPortal] | |
$ cp ~/src/esup-install/Portail/uPortal_rel-3.1.2/uportal-war/src/main/webapp/media/skins/universality/skinList.xml uportal-war/src/main/webapp/media/skins/universality/ | |
</code> | |
| |
et on l'edit pour ajouter la notre | |
| |
| |
<code> | |
[esup@esup3prod ~/src/esup-install/custom/uPortal] | |
$ vim uportal-war/src/main/webapp/media/skins/universality/skinList.xml | |
| |
$ diff uportal-war/src/main/webapp/media/skins/universality/skinList.xml ~/src/esup-install/Portail/uPortal_rel-3.1.2/uportal-war/src/main/webapp/media/skins/universality/skinList.xml | |
27,34d26 | |
< | |
< <skin> | |
< <skin-key>itsp</skin-key> | |
< <skin-name>Campus</skin-name> | |
< <skin-description> | |
< Skin de Telecom SudParis et Telecom Ecole de Management. | |
< </skin-description> | |
< </skin> | |
| |
</code> | |
| |
==== Skin maison ==== | |
| |
Creation d'une skin itsp, preparation de l'arborescence custom et definition des css etc ... (ici reprise sur une machine de dev) | |
| |
<code> | |
[esup@esup3prod ~/src/esup-install/custom/uPortal] | |
$ mkdir -p uportal-war/src/main/webapp/media/skins/universality/itsp/ | |
| |
[esup@gaspar-dev universality]$ scp -r itsp/* root@esup3prod.it-sudparis.eu:/home/esup//src/esup-install/custom/uPortal/uportal-war/src/main/webapp/media/skins/universality/itsp | |
</code> | |
| |
le point d'entrée est itsp.css qui fait des import des autres. | |
| |
ensuite pour mettre en ligne on init et deploy | |
| |
==== skin par defaut ==== | |
| |
le changement du theme par defaut se via le fichier qui gere le profile DLM XML | |
DLM_XHTML.theme a recopier dans notre custom . | |
| |
<code> | |
[esup@esup3prod ~/src/esup-install/custom/uPortal/uportal-impl/src/main/resources/properties/db/itsp] | |
$ cp /home/esup/src/esup-3.1.2-esup-0.5-RC3/Portail/uPortal_rel-3.1.2/uportal-impl/src/main/resources/properties/db/mini/theme/DLM_XHTML.theme ./theme | |
</code> | |
| |
modification | |
| |
<code> | |
[esup@esup3prod ~/src/esup-install/custom/uPortal/uportal-impl/src/main/resources/properties/db/itsp/theme] | |
$ diff DLM_XHTML.theme /home/esup/src/esup-3.1.2-esup-0.5-RC3/Portail/uPortal_rel-3.1.2/uportal-impl/src/main/resources/properties/db/mini/theme/DLM_XHTML.theme | |
23c23 | |
< <value>itsp</value> | |
--- | |
> <value>uportal3</value> | |
28c28 | |
< </theme> | |
--- | |
> </theme> | |
</code> | |
| |
importation de cette nouvelle xsl | |
| |
<code> | |
[esup@esup3prod ~/src/esup-install] | |
$ ant db.import -Ddir=/home/esup/src/esup-install/custom/uPortal/uportal-impl/src/main/resources/properties/db/itsp/theme/ | |
Buildfile: build.xml | |
... | |
[java] Base Import Directory=/home/esup/src/esup-install/custom/uPortal/uportal-impl/src/main/resources/properties/db/itsp/theme/ | |
[java] FILE_PATTERN=.* | |
[java] Import Theme: DLM_XHTML.theme | |
[java] Import of /home/esup/src/esup-install/custom/uPortal/uportal-impl/src/main/resources/properties/db/itsp/theme/ Complete: 3353 | |
| |
BUILD SUCCESSFUL | |
Total time: 7 seconds | |
</code> | |
| |
| |
Tout utilisateur ayant deja personnelement changer son skin, le gardera , donc si on le fait trop tard il faut modifier dans le BD le choix du skin pour chaque users ! | |
| |
| |
| |
===== Tutoriel esup3 en video ==== | |
| |
Vidéo tutoriel eSup V3 | |
| |
http://mediatheque.parisdescartes.fr/rubrique.php3?id_rubrique=706&tri=titre | |
| |
http://www.esup-portail.org/pages/viewpage.action?pageId=88244244 | |
| |
==== sujets video1 ==== | |
| |
> 9mn tomcat5 -> tomcat6 /lib (vs common - shared) | |
> 34mn context /cas et serialisation de sessions au demarrage/arret | |
> 39mn installation du portail | |
>41,30 java_home build.properties | |
>42 tomcat.update mettre les jar dont esup a besoin dans tomcat, lors du deployement il les met là où il faut . true une fois, puis a false , sauf si necessité d'une MAJ | |
>47 real.host quand load balancing | |
/guest acces a un canal en mode non authentifié | |
>48 context uportal et contexServingWebapps | |
>54 sidebar de gauche uportalv3 desactivé | |
>60 ant get-components (chercher le uportal du jasig) | |
>61 ant unzip decompacte les zip des package exterieurs esup | |
* ant init prend les update esup les copie dans uportal et customisation dans uportal | |
* ant deploy compile les class (1 milliers !) et les deploient dans webapps/esup-portail | |
* ant db_init cree les tables | |
| |
| |
| |
| |
| |
==== video2 ==== | |
* 20mn le compte admin: | |
handler file | |
webapps/cas/WEB-INF/usersFile | |
login::md5password | |
| |
* 27mn ldap persondir | |
* 38mn ldap groups, smartGroupstore | |
* 46mn group locaux | |
* 52mn db.import | |
* | |
* | |
| |
==== video3 ==== | |
| |
* 0,30mn rappel group PAGS | |
* 10mn rattachement des groupe PAGS ldap au groupe locaux en db.import | |
* 15mn discussion sur les types de groups (pags, ldap, smart ...) | |
* 26mn publication d'un canal | |
* 38mn les fragments | |
* 48mn users-lo; utilisateurs modeles de layout | |
* 51mn DLM | |
| |
==== video4 ==== | |
| |
* 0mn contenu des fragments | |
* 14mn fragment cache: fragment_cache_refresh 5mn par defaut | |
* 25mn allow disallow move colonne, canal etc ... | |
* 26mn un fragment commun webmail mais avec cannal iframe masqué par type de population, droits des canaux | |
* 28,5mn Skin | |
* 35mn skin par defaut , 35,5 principe de generation xsl structure -> xsl theme | |
* 41,20 choix du theme par population; uPortalTemplateUserName | |