Differences

This shows you the differences between two versions of the page.

Link to this comparison view

Both sides previous revision Previous revision
Next revision
Previous revision
docpublic:systemes:esup:esup_socle_3_2_c6 [2012/08/26 12:51]
PROCACCIA [Theme par population]
docpublic:systemes:esup:esup_socle_3_2_c6 [2013/01/16 11:37] (current)
PROCACCIA [Theme par population]
Line 3331: Line 3331:
 </code> </code>
  
 +Tous les fichiers d'un coup
  
 +<code>
 +
 +[esup@esup3re7 ~/esup-install]
 +$ ll /home/esup/esup-install/custom/uPortal/uportal-impl/src/main/resources/properties/db/itsp/template-account/
 +total 36
 +-rw-r--r-- 1 esup esup  410 Jan 16 12:33 tem-default.profile
 +-rw-r--r-- 1 esup esup 1998 Jan 16 12:31 tem.layout
 +-rw-r--r-- 1 esup esup   86 Jan 16 12:02 tem.template-user
 +-rw-r--r-- 1 esup esup  411 Jan 16 12:34 tmsp-default.profile
 +-rw-r--r-- 1 esup esup 1889 Jan 16 12:32 tmsp.layout
 +-rw-r--r-- 1 esup esup   86 Jan 16 12:02 tmsp.template-user
 +-rw-r--r-- 1 esup esup  410 Jan 16 12:33 tsp-default.profile
 +-rw-r--r-- 1 esup esup 1900 Jan 16 12:30 tsp.layout
 +-rw-r--r-- 1 esup esup   86 Jan 16 12:02 tsp.template-user
 +
 +
 +[esup@esup3re7 ~/esup-install]
 +$ ant db.import -Ddir=/home/esup/esup-install/custom/uPortal/uportal-impl/src/main/resources/properties/db/itsp/template-account/
 +Buildfile: build.xml
 +Trying to override old definition of task java
 +Trying to override old definition of task javac
 +
 +db.import:
 +
 +prodPrompt:
 +
 +crn-import:
 +
 +install-parent-pom:
 +[artifact:install] [INFO] Installing /home/esup/esup-uPortal-3.2.4-esup-1.0.0-RC3/Portail/uPortal_rel-3.2.4/pom.xml to /home/esup/.m2/repository/org/jasig/portal/uportal-parent/3.2.4/uportal-parent-3.2.4.pom
 +    [touch] Creating /tmp/jasig/uportal-parent.pom-1673432325-marker
 +     [echo] Artifact '/home/esup/esup-uPortal-3.2.4-esup-1.0.0-RC3/Portail/uPortal_rel-3.2.4/uportal-impl/target/uportal-impl-3.2.4.jar' is up-to-date
 +[artifact:install] [INFO] Installing /home/esup/esup-uPortal-3.2.4-esup-1.0.0-RC3/Portail/uPortal_rel-3.2.4/uportal-impl/target/uportal-impl-3.2.4.jar to /home/esup/.m2/repository/org/jasig/portal/uportal-impl/3.2.4/uportal-impl-3.2.4.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@5dc268' on ThreadLocal
 +     [java]  INFO Created new lazily initialized GenericApplicationContext for the portal in 3555ms
 +     [java] Base Import Directory=/home/esup/esup-install/custom/uPortal/uportal-impl/src/main/resources/properties/db/itsp/template-account/
 +     [java] FILE_PATTERN=.*
 +     [java] Import Template User:  tem.template-user
 +     [java]  INFO Looking up bean 'counterStore' in ApplicationContext due to context not yet being initialized
 +     [java] Import Template User:  tmsp.template-user
 +     [java] Import Template User:  tsp.template-user
 +     [java] Import Profile:  tem-default.profile
 +     [java] Import Profile:  tmsp-default.profile
 +     [java] Import Profile:  tsp-default.profile
 +     [java] Import Layout:  tem.layout
 +     [java]  INFO Looking up bean 'PortalDb' in ApplicationContext due to context not yet being initialized
 +     [java]  INFO Looking up bean 'PortalDB.metadata' in ApplicationContext due to context not yet being initialized
 +     [java]  INFO Join test failed: org.jasig.portal.rdbm.DatabaseMetaDataImpl$OracleDb on statement: 'SELECT COUNT(UP_USER.USER_ID) FROM UP_USER, UP_USER_LAYOUT WHERE UP_USER.USER_ID = UP_USER_LAYOUT.USER_ID(+) AND UP_USER.USER_ID=0':
 +     [java] StatementCallback; bad SQL grammar [SELECT COUNT(UP_USER.USER_ID) FROM UP_USER, UP_USER_LAYOUT WHERE UP_USER.USER_ID = UP_USER_LAYOUT.USER_ID(+) AND UP_USER.USER_ID=0]; nested exception is com.mysql.jdbc.exceptions.jdbc4.MySQLSyntaxErrorException: You have an error in your SQL syntax; check the manual that corresponds to your MySQL server version for the right syntax to use near ') AND UP_USER.USER_ID=0' at line 1
 +     [java]  INFO Using join test: org.jasig.portal.rdbm.DatabaseMetaDataImpl$PostgreSQLDb
 +     [java]  INFO MySQL (5.0.95) / MySQL-AB JDBC Driver (mysql-connector-java-5.1.6 ( Revision: ${svn.Revision} )) database/driver
 +     [java]     Connected To: jdbc:mysql://bd3.it-sudparis.eu/uportal32re7
 +     [java]     Supports:
 +     [java]         Outer Joins:          true
 +     [java]         {ts metasyntax:       true
 +     [java]         TO_DATE():            false
 +     [java]  INFO Looking up bean 'channelRegistryStore' in ApplicationContext due to context not yet being initialized
 +     [java]  INFO Creating singleton instance for bean 'scopedTarget.sessionAttributesOverridesMap'
 +     [java]  INFO Adding destruction callback singleton for bean 'scopedTarget.sessionAttributesOverridesMap'
 +     [java]  INFO Looking up bean 'personManager' in ApplicationContext due to context not yet being initialized
 +     [java]  INFO Looking up bean 'dlmConfigurationLoader' in ApplicationContext due to context not yet being initialized
 +     [java]  INFO Parsing group service configuration.
 +     [java]  INFO RDBMEntityGroupStore.initialize(): Node separator set to .
 +     [java]  INFO Looking up bean 'cacheFactory' in ApplicationContext due to context not yet being initialized
 +     [java] Import Layout:  tmsp.layout
 +     [java] Import Layout:  tsp.layout
 +     [java] Import of /home/esup/esup-install/custom/uPortal/uportal-impl/src/main/resources/properties/db/itsp/template-account/ Complete in 2281 milliseconds.
 +
 +BUILD SUCCESSFUL
 +Total time: 10 seconds
 +</code>
  
 ===== Langues, traduction XSL ===== ===== Langues, traduction XSL =====
Line 3686: Line 3764:
  
 </code> </code>
 +==== esup-filemanager ====
 +
 +=== Sources ===
 +
 +<code>
 +[esup@esup3re7 ~/esup-install/canaux]
 +$ wget https://sourcesup.renater.fr/frs/download.php/4021/esup-filemanager-2.2.0.tgz
 +$ tar tvfz esup-filemanager-2.2.0.tgz
 +$ ln -s esup-filemanager-2.2.0 esup-filemanager
 +$ cd esup-filemanager
 +</code>
 +
 +=== configuration ===
 +
 +<code>
 +[esup@esup3re7 ~/esup-install/canaux/esup-filemanager/src/main/webapp/WEB-INF]
 +$ cp web.xml web.xml.orig
 +$ cp context/drives.xml context/drives.xml.orig
 +$ cp log4j.properties log4j.properties.orig
 +</code>
 +
 +
 +<code>
 +[esup@esup3re7 ~/esup-install/canaux/esup-filemanager/src/main/webapp/WEB-INF]
 +$ diff web.xml.orig web.xml
 +115c115
 +<             <param-value>https://cas.mon-univ.fr/proxy</param-value>
 +---
 +>             <param-value>https://cas.tem-tsp.eu/cas/proxy</param-value>
 +</code>
 +
 +<code>
 +[esup@esup3re7 ~/esup-install/canaux/esup-filemanager/src/main/webapp/WEB-INF]
 +$ diff context/drives.xml.orig context/drives.xml | more
 +36c36
 +<   <util:constant id="isPortlet" static-field="java.lang.Boolean.FALSE"/>
 +---
 +>   <util:constant id="isPortlet" static-field="java.lang.Boolean.TRUE"/>
 +42,52c42,52
 +<   <util:map id="drivesCategories">
 +<     <entry key="Shared">
 +<       <bean class="org.esupportail.portlet.filemanager.beans.DrivesCategory">
 +<       <property name="icon" value="/esup-filemanager/img/drives/house.png" />
 +<       <property name="drives">
 +<         <list>
 +<           <value>Toto</value>
 +<           <value>bob</value>
 +<         </list>
 +<       </property>
 +<       </bean>
 +---
 +>   <util:map id="drivesCategories">
 +>     <entry key="Mes fichiers">
 +>               <bean class="org.esupportail.portlet.filemanager.beans.DrivesCategory">
 +>                       <property name="icon" value="/esup-filemanager/img/drives/house.png" />
 +>                       <property name="drives">
 +>                         <list>
 +>                               <value>Espace personnel</value>
 +>                               <value>Web spaces</value>
 +....
 +</code>
 +
 +=== compilation ===
 +
 +<code>
 +export JAVA_HOME=/usr/lib/jvm/java-1.6.0
 +[esup@esup3re7 ~/esup-install/canaux/esup-filemanager]
 +$ /usr/local/apache-maven-2.2.1/bin/mvn clean package
 +....
 +Downloading: http://repo1.maven.org/maven2/org/codehaus/plexus/plexus-archiver/1.0-alpha-7/plexus-archiver-1.0-alpha-7.jar
 +138K downloaded  (plexus-archiver-1.0-alpha-7.jar)
 +[INFO] [war:war {execution: default-war}]
 +[INFO] Exploding webapp...
 +[INFO] Assembling webapp esup-filemanager in /home/esup/esup-uPortal-3.2.4-esup-1.0.0-RC3/canaux/esup-filemanager-2.2.0/target/esup-filemanager
 +[INFO] Copy webapp webResources to /home/esup/esup-uPortal-3.2.4-esup-1.0.0-RC3/canaux/esup-filemanager-2.2.0/target/esup-filemanager
 +[INFO] Generating war /home/esup/esup-uPortal-3.2.4-esup-1.0.0-RC3/canaux/esup-filemanager-2.2.0/target/esup-filemanager.war
 +[INFO] Building war: /home/esup/esup-uPortal-3.2.4-esup-1.0.0-RC3/canaux/esup-filemanager-2.2.0/target/esup-filemanager.war
 +[INFO] ------------------------------------------------------------------------
 +[INFO] BUILD SUCCESSFUL
 +[INFO] ------------------------------------------------------------------------
 +[INFO] Total time: 1 minute 24 seconds
 +[INFO] Finished at: Thu Aug 30 15:42:11 CEST 2012
 +[INFO] Final Memory: 27M/91M
 +[INFO] ------------------------------------------------------------------------
 +<code>
 +
 +=== deploy ===
 +
 +<code>
 +[esup@esup3re7 ~/esup-install/canaux/esup-filemanager]
 +$ ant -f /home/esup/esup-install/build.xml  portlet.deploy -DportletApp=/home/esup/esup-install/canaux/esup-filemanager/target/esup-filemanager.war
 +Buildfile: /home/esup/esup-install/build.xml
 +Trying to override old definition of task java
 +Trying to override old definition of task javac
 +
 +portlet.deploy:
 +
 +checkForTomcat:
 +
 +deployPortletApp:
 +
 +install-parent-pom:
 +[artifact:install] [INFO] Installing /home/esup/esup-install/Portail/uPortal_rel-3.2.4/pom.xml to /home/esup/.m2/repository/org/jasig/portal/uportal-parent/3.2.4/uportal-parent-3.2.4.pom
 +    [touch] Creating /tmp/jasig/uportal-parent.pom-1990999528-marker
 +[artifact:dependencies] Downloading: org/apache/pluto/pluto-ant-tasks/1.1.7/pluto-ant-tasks-1.1.7.pom from central
 +[artifact:dependencies] Transferring 2K from central
 +[artifact:dependencies] Downloading: org/apache/pluto/pluto-ant-tasks/1.1.7/pluto-ant-tasks-1.1.7.jar from central
 +[artifact:dependencies] Transferring 11K from central
 +[assemblePortlet] Assembling '/home/esup/esup-install/canaux/esup-filemanager/target/esup-filemanager.war' to '/tmp/jasig'
 +[assemblePortlet] Aug 30, 2012 3:46:07 PM org.exolab.castor.mapping.Mapping loadMapping
 +[assemblePortlet] INFO: Loading mapping descriptors from jar:file:/home/esup/.m2/repository/org/apache/pluto/pluto-descriptor-impl/1.1.7/pluto-descriptor-impl-1.1.7.jar!/org/apache/pluto/descriptors/services/castor/castor-web-xml-mapping.xml
 +[assemblePortlet] Aug 30, 2012 3:46:07 PM org.exolab.castor.mapping.Mapping loadMapping
 +[assemblePortlet] INFO: Loading mapping descriptors from jar:file:/home/esup/.m2/repository/org/apache/pluto/pluto-descriptor-impl/1.1.7/pluto-descriptor-impl-1.1.7.jar!/org/apache/pluto/descriptors/services/castor/castor-portlet-xml-mapping.xml
 +[assemblePortlet] Aug 30, 2012 3:46:08 PM org.exolab.castor.mapping.Mapping loadMapping
 +[assemblePortlet] INFO: Loading mapping descriptors from jar:file:/home/esup/.m2/repository/org/apache/pluto/pluto-descriptor-impl/1.1.7/pluto-descriptor-impl-1.1.7.jar!/org/apache/pluto/descriptors/services/castor/castor-web-xml-mapping.xml
 +
 +fastWarDeploy:
 +     [echo]    extractWars=true
 +     [echo] removeExisting=false
 +    [mkdir] Created dir: /tmp/jasig/esup-filemanager
 +    [unwar] Expanding: /tmp/jasig/esup-filemanager.war into /tmp/jasig/esup-filemanager
 +     [echo] Moving /tmp/jasig/esup-filemanager to /usr/share/tomcat6/webapps
 +   [delete] Deleting: /tmp/jasig/esup-filemanager.war
 +
 +BUILD SUCCESSFUL
 +Total time: 7 seconds
 +
 +
 +[esup@esup3re7 ~/esup-install/canaux/esup-filemanager]
 +$ ll /usr/share/tomcat6/webapps/esup-filemanager/
 +total 20
 +drwxrwsr-x 3 esup esup 4096 Aug 30 15:46 css
 +drwxrwsr-x 7 esup esup 4096 Aug 30 15:46 img
 +drwxrwsr-x 3 esup esup 4096 Aug 30 15:46 js
 +drwxrwsr-x 3 esup esup 4096 Aug 30 15:46 META-INF
 +drwxrwsr-x 6 esup esup 4096 Aug 30 15:46 WEB-INF
 +
 +</code>
 +
 +=== Context tomcat ===
 +
 +
 +dans /etc/tomcat6/server.xml
 +
 +<code>
 +<Context path="/esup-filemanager" docBase="/usr/share/tomcat6/webapps/esup-filemanager" reloadable="true">
 +    <Manager pathname=""/>
 +</Context>
 +</code>
 +
 +=== import channel ===
 +
 +<code>
 +
 +[esup@esup3re7 ~/esup-install]
 +$ ant db.import -Ddir=/home/esup/esup-install/custom/uPortal/uportal-impl/src/main/resources/properties/db/itsp/channel -Dpattern="esup-filemanager\.channel"
 +Buildfile: build.xml
 +Trying to override old definition of task java
 +Trying to override old definition of task javac
 +
 +db.import:
 +
 +prodPrompt:
 +
 +crn-import:
 +
 +install-parent-pom:
 +[artifact:install] [INFO] Installing /home/esup/esup-uPortal-3.2.4-esup-1.0.0-RC3/Portail/uPortal_rel-3.2.4/pom.xml to /home/esup/.m2/repository/org/jasig/portal/uportal-parent/3.2.4/uportal-parent-3.2.4.pom
 +    [touch] Creating /tmp/jasig/uportal-parent.pom-1944894708-marker
 +     [echo] Artifact '/home/esup/esup-uPortal-3.2.4-esup-1.0.0-RC3/Portail/uPortal_rel-3.2.4/uportal-impl/target/uportal-impl-3.2.4.jar' is up-to-date
 +[artifact:install] [INFO] Installing /home/esup/esup-uPortal-3.2.4-esup-1.0.0-RC3/Portail/uPortal_rel-3.2.4/uportal-impl/target/uportal-impl-3.2.4.jar to /home/esup/.m2/repository/org/jasig/portal/uportal-impl/3.2.4/uportal-impl-3.2.4.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@1843ca4' on ThreadLocal
 +     [java]  INFO Created new lazily initialized GenericApplicationContext for the portal in 4186ms
 +     [java] Base Import Directory=/home/esup/esup-install/custom/uPortal/uportal-impl/src/main/resources/properties/db/itsp/channel
 +     [java] FILE_PATTERN=esup-filemanager\.channel
 +     [java] Import Channel:  esup-filemanager.channel
 +     [java]  INFO Looking up bean 'channelRegistryStore' in ApplicationContext due to context not yet being initialized
 +     [java]  INFO Creating singleton instance for bean 'scopedTarget.sessionAttributesOverridesMap'
 +     [java]  INFO Adding destruction callback singleton for bean 'scopedTarget.sessionAttributesOverridesMap'
 +     [java]  INFO Looking up bean 'jpaInterceptor' in ApplicationContext due to context not yet being initialized
 +     [java]  INFO Parsing group service configuration.
 +     [java]  INFO RDBMEntityGroupStore.initialize(): Node separator set to .
 +     [java]  INFO Looking up bean 'cacheFactory' in ApplicationContext due to context not yet being initialized
 +     [java]  INFO Looking up bean 'PortalDb' in ApplicationContext due to context not yet being initialized
 +     [java]  INFO Looking up bean 'entityCachingService' in ApplicationContext due to context not yet being initialized
 +     [java]  INFO Looking up bean 'portletDefinitionRegistry' in ApplicationContext due to context not yet being initialized
 +     [java]  INFO Looking up bean 'channelPublishingService' in ApplicationContext due to context not yet being initialized
 +     [java] Import of /home/esup/esup-install/custom/uPortal/uportal-impl/src/main/resources/properties/db/itsp/channel Complete in 5874 milliseconds.
 +
 +BUILD SUCCESSFUL
 +Total time: 12 seconds
 +</code>
 +
 ==== Canal Stockage ==== ==== Canal Stockage ====
  
docpublic/systemes/esup/esup_socle_3_2_c6.1345985503.txt.gz ยท Last modified: 2012/08/26 12:51 by PROCACCIA
[unknown link type]Back to top
CC Attribution-Noncommercial-Share Alike 4.0 International
www.chimeric.de Valid CSS Driven by DokuWiki do yourself a favour and use a real browser - get firefox!! Recent changes RSS feed Valid XHTML 1.0