Both sides previous revision
Previous revision
Next revision
|
Previous revision
|
docpublic:systemes:esup:esup_socle_4_c7 [2016/05/26 10:16] procacci@tem-tsp.eu [esup-filemanager 3] |
docpublic:systemes:esup:esup_socle_4_c7 [2016/05/27 13:14] (current) procacci@tem-tsp.eu [parametrage] |
| |
on peux aussi y acceder sur le FQDN http://esup4dz.tem-tsp.eu:8080/pluto/portal | on peux aussi y acceder sur le FQDN http://esup4dz.tem-tsp.eu:8080/pluto/portal |
| |
| ne pas tenir compte du "404" (pas de context par defaut, il liste les 2 ) il suffit de cliquer sur le 2eme lien /pluto |
| |
| <code> |
| Error 404 - Not Found. |
| No context on this server matched or handled this request. |
| Contexts known to this server are: |
| |
| /esup-filemanager ---> org.mortbay.jetty.plugin.Jetty6PluginWebAppContext@3605ce8f{/esup-filemanager,/home/esup/portlet/esup-filemanager/src/main/webapp} |
| /pluto ---> org.mortbay.jetty.webapp.WebAppContext@7a3fafbd{/pluto,/home/esup/.m2/repository/net/jlehtinen/portlet/portlet-prototyping-portal/0.9/portlet-prototyping-portal-0.9.war} |
| </code> |
| |
| ==== parametrage ===== |
| |
| definir le serveur cas |
| |
| <code> |
| [esup@esup4dz ~/portlet/esup-filemanager] |
| $ vim ./src/main/webapp/WEB-INF/web.xml |
| [esup@esup4dz ~/portlet/esup-filemanager] |
| $ cp ./src/main/webapp/WEB-INF/web.xml ./src/main/webapp/WEB-INF/web.xml.orig |
| [esup@esup4dz ~/portlet/esup-filemanager] |
| $ vim ./src/main/webapp/WEB-INF/web.xml |
| [esup@esup4dz ~/portlet/esup-filemanager] |
| $ diff -ur ./src/main/webapp/WEB-INF/web.xml ./src/main/webapp/WEB-INF/web.xml.orig |
| --- ./src/main/webapp/WEB-INF/web.xml 2016-05-26 17:16:18.430542157 +0200 |
| +++ ./src/main/webapp/WEB-INF/web.xml.orig 2016-05-26 17:15:44.944549896 +0200 |
| @@ -80,7 +80,7 @@ |
| <servlet-class>edu.yale.its.tp.cas.proxy.ProxyTicketReceptor</servlet-class> |
| <init-param> |
| <param-name>edu.yale.its.tp.cas.proxyUrl</param-name> |
| - <param-value>https://cas16.tem-tsp.eu/proxy</param-value> |
| + <param-value>https://cas.mon-univ.fr/proxy</param-value> |
| </init-param> |
| </servlet> |
| </code> |
| |
| definir les drives que l'on vaux afficher dans le filemanager |
| |
| <code> |
| [esup@esup4dz ~/portlet/esup-filemanager] |
| $ cp ./src/main/webapp/WEB-INF/context/drives.xml ./src/main/webapp/WEB-INF/context/drives.xml.orig |
| [esup@esup4dz ~/portlet/esup-filemanager] |
| $ vim ./src/main/webapp/WEB-INF/context/drives.xml |
| </code> |
| |
| |
| === compilation === |
| |
| <code> |
| [esup@esup4dz ~/portlet/esup-filemanager] |
| $ mvn clean package |
| [INFO] Scanning for projects... |
| [INFO] |
| [INFO] ------------------------------------------------------------------------ |
| [INFO] Building esup-filemanager 3.1.0 |
| [INFO] ------------------------------------------------------------------------ |
| Downloading: http://repo.jlehtinen.net/maven2/org/apache/maven/plugins/maven-surefire-plugin/2.10/maven-surefire-plugin-2.10.pom |
| ... |
| [INFO] Exploding webapp... |
| [INFO] Assembling webapp esup-filemanager in /home/esup/portlet/esup-filemanager/target/esup-filemanager |
| [INFO] Copy webapp webResources to /home/esup/portlet/esup-filemanager/target/esup-filemanager |
| [INFO] Generating war /home/esup/portlet/esup-filemanager/target/esup-filemanager.war |
| [INFO] Building war: /home/esup/portlet/esup-filemanager/target/esup-filemanager.war |
| [INFO] ------------------------------------------------------------------------ |
| [INFO] BUILD SUCCESS |
| [INFO] ------------------------------------------------------------------------ |
| [INFO] Total time: 12.007s |
| [INFO] Finished at: Thu May 26 17:25:41 CEST 2016 |
| [INFO] Final Memory: 20M/309M |
| [INFO] ------------------------------------------------------------------------ |
| </code> |
| |
| === deploiement === |
| |
| ant deployPortletApp => ajoute dans le web.xml le fait que c'est le portail qui va lancer cette portlet (via pluto) et pousse le .war dans webapps . |
| |
| le deploy se fait depuis la racine des sources du portail |
| |
| <code> |
| [esup@esup4dz ~/esup-uportal] |
| $ cd /home/esup/esup-uportal |
| </code> |
| |
| puis deploy via ant deployPortletApp |
| |
| <code> |
| [esup@esup4dz ~/esup-uportal] |
| $ ant deployPortletApp -DportletApp=/home/esup/portlet/esup-filemanager/target/esup-filemanager.war |
| Buildfile: /home/esup/esup-uportal/build.xml |
| |
| checkForTomcat: |
| |
| deployPortletApp: |
| |
| install-parent-pom: |
| [artifact:install] [INFO] Installing /home/esup/esup-uportal/pom.xml to /home/esup/.m2/repository/org/jasig/portal/uportal-parent/4.0.16-SNAPSHOT/uportal-parent-4.0.16-SNAPSHOT.pom |
| [touch] Creating /home/esup/esup-uportal/target/tmp/uportal-parent.pom-41461427-marker |
| [echo] Artifact '/home/esup/esup-uportal/bootstrap/pluto-assembler/target/pluto-assembler-4.0.16-SNAPSHOT.jar' is not available or out-of-date, calling 'mvn install' |
| |
| mvn: |
| [exec] [INFO] Scanning for projects... |
| [exec] [INFO] |
| [exec] [INFO] ------------------------------------------------------------------------ |
| [exec] [INFO] Building Bootstrap - Pluto Assembler Dependencies 4.0.16-SNAPSHOT |
| [exec] [INFO] ------------------------------------------------------------------------ |
| [exec] Downloading: http://repo.maven.apache.org/maven2/org/apache/portals/pluto/pluto-ant-tasks/2.1.0-M3/pluto-ant-tasks-2.1.0-M3.pom |
| [exec] Downloaded: http://repo.maven.apache.org/maven2/org/apache/portals/pluto/pluto-ant-tasks/2.1.0-M3/pluto-ant-tasks-2.1.0-M3.pom (2 KB at 2.6 KB/sec) |
| [exec] Downloading: http://repo.maven.apache.org/maven2/org/apache/portals/pluto/pluto-ant-tasks/2.1.0-M3/pluto-ant-tasks-2.1.0-M3.jar |
| [exec] Downloaded: http://repo.maven.apache.org/maven2/org/apache/portals/pluto/pluto-ant-tasks/2.1.0-M3/pluto-ant-tasks-2.1.0-M3.jar (12 KB at 42.1 KB/sec) |
| [exec] [INFO] |
| [exec] [INFO] --- maven-enforcer-plugin:1.0:enforce (enforce-maven) @ pluto-assembler --- |
| [exec] [INFO] |
| [exec] [INFO] --- maven-enforcer-plugin:1.0:enforce (enforce-versions) @ pluto-assembler --- |
| [exec] [INFO] |
| [exec] [INFO] --- maven-resources-plugin:2.6:resources (default-resources) @ pluto-assembler --- |
| [exec] [INFO] Using 'UTF-8' encoding to copy filtered resources. |
| [exec] [INFO] skip non existing resourceDirectory /home/esup/esup-uportal/bootstrap/pluto-assembler/src/main/resources |
| [exec] [INFO] |
| [exec] [INFO] --- maven-compiler-plugin:3.1:compile (default-compile) @ pluto-assembler --- |
| [exec] [INFO] No sources to compile |
| [exec] [INFO] |
| [exec] [INFO] --- maven-resources-plugin:2.6:testResources (default-testResources) @ pluto-assembler --- |
| [exec] [INFO] Using 'UTF-8' encoding to copy filtered resources. |
| [exec] [INFO] skip non existing resourceDirectory /home/esup/esup-uportal/bootstrap/pluto-assembler/src/test/resources |
| [exec] [INFO] |
| [exec] [INFO] --- maven-compiler-plugin:3.1:testCompile (default-testCompile) @ pluto-assembler --- |
| [exec] [INFO] No sources to compile |
| [exec] [INFO] |
| [exec] [INFO] --- maven-surefire-plugin:2.15:test (default-test) @ pluto-assembler --- |
| [exec] [INFO] No tests to run. |
| [exec] [INFO] |
| [exec] [INFO] --- maven-jar-plugin:2.4:jar (default-jar) @ pluto-assembler --- |
| [exec] [WARNING] JAR will be empty - no content was marked for inclusion! |
| [exec] [INFO] Building jar: /home/esup/esup-uportal/bootstrap/pluto-assembler/target/pluto-assembler-4.0.16-SNAPSHOT.jar |
| [exec] [INFO] |
| [exec] [INFO] --- maven-site-plugin:3.1.r1174614:attach-descriptor (attach-descriptor) @ pluto-assembler --- |
| [exec] [INFO] |
| [exec] [INFO] --- maven-install-plugin:2.4:install (default-install) @ pluto-assembler --- |
| [exec] [INFO] Installing /home/esup/esup-uportal/bootstrap/pluto-assembler/target/pluto-assembler-4.0.16-SNAPSHOT.jar to /home/esup/.m2/repository/org/jasig/portal/pluto-assembler/4.0.16-SNAPSHOT/pluto-assembler-4.0.16-SNAPSHOT.jar |
| [exec] [INFO] Installing /home/esup/esup-uportal/bootstrap/pluto-assembler/pom.xml to /home/esup/.m2/repository/org/jasig/portal/pluto-assembler/4.0.16-SNAPSHOT/pluto-assembler-4.0.16-SNAPSHOT.pom |
| [exec] [INFO] ------------------------------------------------------------------------ |
| [exec] [INFO] BUILD SUCCESS |
| [exec] [INFO] ------------------------------------------------------------------------ |
| [exec] [INFO] Total time: 3.805s |
| [exec] [INFO] Finished at: Thu May 26 17:43:42 CEST 2016 |
| [exec] [INFO] Final Memory: 16M/310M |
| [exec] [INFO] ------------------------------------------------------------------------ |
| [assemblePortlet] Assembling '/home/esup/portlet/esup-filemanager/target/esup-filemanager.war' to '/home/esup/esup-uportal/target/tmp' |
| [assemblePortlet] SLF4J: Failed to load class "org.slf4j.impl.StaticLoggerBinder". |
| [assemblePortlet] SLF4J: Defaulting to no-operation (NOP) logger implementation |
| [assemblePortlet] SLF4J: See http://www.slf4j.org/codes.html#StaticLoggerBinder for further details. |
| |
| fastWarDeploy: |
| [echo] extractWars=true |
| [echo] removeExisting=true |
| [mkdir] Created dir: /home/esup/esup-uportal/target/tmp/esup-filemanager |
| [unwar] Expanding: /home/esup/esup-uportal/target/tmp/esup-filemanager.war into /home/esup/esup-uportal/target/tmp/esup-filemanager |
| [echo] Moving /home/esup/esup-uportal/target/tmp/esup-filemanager to /opt/tomcat/webapps |
| [delete] Deleting: /home/esup/esup-uportal/target/tmp/esup-filemanager.war |
| |
| BUILD SUCCESSFUL |
| Total time: 10 seconds |
| </code> |
| |
| === visualisation Cmd=edit option sur l'interface === |
| |
| voir les options de personnalisation sur l'interface web (si css les caches) |
| |
| https://esup4dz.tem-tsp.eu/uPortal/f/welcome/p/esup-filemanager.u32l1n15/max/render.uP?p**Cmd=edit** |
| |
| |