Both sides previous revision
Previous revision
Next revision
|
Previous revision
|
docpublic:systemes:esup:esup_socle_4_c7 [2015/05/21 13:46] procacci@tem-tsp.eu [probe] |
docpublic:systemes:esup:esup_socle_4_c7 [2016/05/27 13:14] (current) procacci@tem-tsp.eu [parametrage] |
| |
http://stackoverflow.com/questions/3320400/to-prevent-a-memory-leak-the-jdbc-driver-has-been-forcibly-unregistered | http://stackoverflow.com/questions/3320400/to-prevent-a-memory-leak-the-jdbc-driver-has-been-forcibly-unregistered |
| |
| |
| ==== pb demarrage postgres ===== |
| |
| https://github.com/openshift/postgresql/issues/97 |
| |
| <code> |
| $ systemctl status postgresql.service |
| * postgresql.service - PostgreSQL database server |
| Loaded: loaded (/usr/lib/systemd/system/postgresql.service; enabled; vendor preset: disabled) |
| Active: failed (Result: exit-code) since Wed 2016-05-25 14:58:07 CEST; 1min 38s ago |
| Process: 326 ExecStart=/usr/bin/pg_ctl start -D ${PGDATA} -s -o -p ${PGPORT} -w -t 300 (code=exited, status=1/FAILURE |
| May 25 14:58:06 esup4dz pg_ctl[326]: DETAIL: Failed system call was shmget(key=5432001, size=41222144, 03600). |
| May 25 14:58:06 esup4dz pg_ctl[326]: HINT: This error usually means that PostgreSQL's request for a shared memory segment exceeded your kernel's SHMMAX parameter. You can ... |
| May 25 14:58:06 esup4dz pg_ctl[326]: If the request size is already small, it's possible that it is less than your kernel's SHMMIN parameter, in which case raisin...called for. |
| May 25 14:58:06 esup4dz pg_ctl[326]: The PostgreSQL documentation contains more information about shared memory configuration. |
| May 25 14:58:07 esup4dz pg_ctl[326]: pg_ctl: could not start server |
| May 25 14:58:07 esup4dz pg_ctl[326]: Examine the log output. |
| May 25 14:58:07 esup4dz systemd[1]: postgresql.service: control process exited, code=exited status=1 |
| </code> |
| |
| |
| resolution : http://www.cyber-neurones.org/2015/11/postgresql-maximum-de-connexion-en-simultanes/ |
| |
| |
| reduction du nombre de connexion max par defaut et augmentation shmmax |
| <code> |
| [root@esup4dz /var/log] |
| $ grep max_connections /var/lib/pgsql/data/postgresql.conf |
| max_connections = 25 # (change requires restart) |
| |
| |
| |
| $ cat /proc/sys/kernel/shmmax |
| 33554432 |
| [root@esup4dz /var/log] |
| $ sysctl -w kernel.shmmax=44554432 |
| kernel.shmmax = 44554432 |
| [root@esup4dz /var/log] |
| $ cat /proc/sys/kernel/shmmax |
| 44554432 |
| |
| $ systemctl start postgresql.service |
| [root@esup4dz /var/log] |
| $ systemctl status postgresql.service |
| * postgresql.service - PostgreSQL database server |
| Loaded: loaded (/usr/lib/systemd/system/postgresql.service; enabled; vendor preset: disabled) |
| Active: active (running) since Wed 2016-05-25 15:22:31 CEST; 4s ago |
| </code> |
===== Pre-requis Java ===== | ===== Pre-requis Java ===== |
| |
| |
<code> | <code> |
[esup@esup4dev esup-uportal]$ time ant -Dmaven.test.skip=true clean initportal | $ env | grep OPT |
Buildfile: /home/esup/esup-uportal/build.xml | ANT_OPTS=-Xms128m -Xmx1024m -XX:MaxPermSize=256m -XX:+UseParallelGC |
| JAVA_OPTS=-Xms256m -Xmx1024m -XX:MaxPermSize=1024m -XX:+UseParallelGC -Djava.net.preferIPv4Stack=true -Dnetworkaddress.cache.ttl=3600 -Djava.awt.headless=true -Dcom.sun.management.jmxremote -Dorg.apache.catalina.loader.WebappClassLoader.ENABLE_CLEAR_REFERENCES=false |
clean: | MAVEN_OPTS=-Xms256m -Xmx1024m -XX:MaxPermSize=1024m -XX:+UseParallelGC |
| [esup@esup4dz ~/esup-uportal] |
mvn: | $ time ant -Dmaven.test.skip=true clean initportal |
[artifact:mvn] [WARNING] | |
[artifact:mvn] [WARNING] Some problems were encountered while building the effective settings | |
... | |
[artifact:mvn] Downloading: http://repo.maven.apache.org/maven2/org/jasig/parent/jasig-parent/34/jasig-parent-34.pom | |
[artifact:mvn] Downloaded: http://repo.maven.apache.org/maven2/org/jasig/parent/jasig-parent/34/jasig-parent-34.pom (16 KB at 88.7 KB/sec) | |
... | |
[artifact:mvn] [INFO] Building uPortal Parent 4.0.13 | |
... | |
[artifact:mvn] [INFO] Building uPortal Search API 4.0.13 | |
... | |
[artifact:mvn] [INFO] Building uPortal WAR 4.0.13 | |
... | |
[artifact:mvn] [INFO] Building uPortal Portlets 4.0.13 | |
... | |
[artifact:mvn] [INFO] Building Announcements Portlet 4.0.13 | |
... | ... |
[artifact:mvn] [INFO] --- maven-clean-plugin:2.5:clean (default-clean) @ uportal-ant-tasks --- | |
[artifact:mvn] [INFO] ------------------------------------------------------------------------ | |
[artifact:mvn] [INFO] Reactor Summary: | |
[artifact:mvn] [INFO] | |
[artifact:mvn] [INFO] uPortal Parent .................................... SUCCESS [1.008s] | |
[artifact:mvn] [INFO] uPortal Search API ................................ SUCCESS [0.401s] | |
[artifact:mvn] [INFO] uPortal WAR ....................................... SUCCESS [0.025s] | |
[artifact:mvn] [INFO] uPortal Portlets .................................. SUCCESS [0.044s] | |
[artifact:mvn] [INFO] Announcements Portlet ............................. SUCCESS [0.005s] | |
[artifact:mvn] [INFO] Bookmarks Portlet ................................. SUCCESS [0.004s] | |
[artifact:mvn] [INFO] Calendar Portlet .................................. SUCCESS [0.005s] | |
[artifact:mvn] [INFO] CAS Proxy Test Portlet ............................ SUCCESS [0.005s] | |
[artifact:mvn] [INFO] Email Preview Portlet ............................. SUCCESS [0.004s] | |
[artifact:mvn] [INFO] Functional Tests Portlet .......................... SUCCESS [0.004s] | |
[artifact:mvn] [INFO] Jasig Widget Portlets ............................. SUCCESS [0.003s] | |
[artifact:mvn] [INFO] News Reader Portlet ............................... SUCCESS [0.005s] | |
[artifact:mvn] [INFO] Jasig Notification Portlet ........................ SUCCESS [0.004s] | |
[artifact:mvn] [INFO] Simple Content Portlet ............................ SUCCESS [0.004s] | |
[artifact:mvn] [INFO] Weather Portlet ................................... SUCCESS [0.003s] | |
[artifact:mvn] [INFO] Web Proxy Portlet ................................. SUCCESS [0.005s] | |
[artifact:mvn] [INFO] uPortal EAR ....................................... SUCCESS [0.007s] | |
[artifact:mvn] [INFO] uPortal Bootstrap Utilities ....................... SUCCESS [0.003s] | |
[artifact:mvn] [INFO] Bootstrap - HSQLDB Dependencies ................... SUCCESS [0.003s] | |
[artifact:mvn] [INFO] Bootstrap - Pluto Assembler Dependencies .......... SUCCESS [0.004s] | |
[artifact:mvn] [INFO] Bootstrap - Ant Tasks Dependencies ................ SUCCESS [0.004s] | |
[artifact:mvn] [INFO] ------------------------------------------------------------------------ | |
[artifact:mvn] [INFO] BUILD SUCCESS | |
[artifact:mvn] [INFO] ------------------------------------------------------------------------ | |
[artifact:mvn] [INFO] Total time: 7.174s | |
[artifact:mvn] [INFO] Finished at: Sun May 18 22:41:12 CEST 2014 | |
[artifact:mvn] [INFO] Final Memory: 11M/152M | |
[artifact:mvn] [INFO] ------------------------------------------------------------------------ | |
| |
| [exec] [INFO] ------------------------------------------------------------------------ |
| [exec] [INFO] Reactor Summary: |
| [exec] [INFO] |
| [exec] [INFO] uPortal Portlets .................................. SUCCESS [0.033s] |
| [exec] [INFO] Announcements Portlet ............................. SUCCESS [2.165s] |
| [exec] [INFO] Bookmarks Portlet ................................. SUCCESS [0.000s] |
| [exec] [INFO] Calendar Portlet .................................. SUCCESS [4.557s] |
| [exec] [INFO] CAS Proxy Test Portlet ............................ SUCCESS [0.001s] |
| [exec] [INFO] Email Preview Portlet ............................. SUCCESS [0.000s] |
| [exec] [INFO] Functional Tests Portlet .......................... SUCCESS [0.001s] |
| [exec] [INFO] Jasig Widget Portlets ............................. SUCCESS [0.001s] |
| [exec] [INFO] News Reader Portlet ............................... SUCCESS [4.327s] |
| [exec] [INFO] Jasig Notification Portlet ........................ SUCCESS [0.001s] |
| [exec] [INFO] Simple Content Portlet ............................ SUCCESS [0.001s] |
| [exec] [INFO] Weather Portlet ................................... SUCCESS [0.001s] |
| [exec] [INFO] Web Proxy Portlet ................................. SUCCESS [0.001s] |
| [exec] [INFO] ------------------------------------------------------------------------ |
| [exec] [INFO] BUILD SUCCESS |
| [exec] [INFO] ------------------------------------------------------------------------ |
| [exec] [INFO] Total time: 12.394s |
| [exec] [INFO] Finished at: Thu May 21 16:07:05 CEST 2015 |
| [exec] [INFO] Final Memory: 36M/478M |
... | ... |
| |
[java] INFO [34:08,916] Running DbLoader with: DbLoaderConfigBuilder[tablesFile=/properties/db/tables.xml,dataFile=/properties/db/data.xml,scriptFile=<null>,dropTables=true,createTables=true,populateTables=true] | [java] INFO [07:29,895] Running DbLoader with: DbLoaderConfigBuilder[tablesFile=/properties/db/tables.xml,dataFile=/properties/db/data.xml,scriptFile=<null>,dropTables=true,createTables=true,populateTables=true] |
[java] INFO [34:08,924] Dropping existing tables | [java] INFO [07:29,906] Dropping existing tables |
[java] INFO [34:08,924] drop table if exists UP_USER cascade | [java] INFO [07:29,906] drop table if exists UP_USER cascade |
[java] INFO [34:08,925] drop table if exists UP_USER_LOCALE cascade | [java] INFO [07:29,908] drop table if exists UP_USER_LOCALE cascade |
[java] INFO [34:08,925] drop table if exists UP_PERMISSION cascade | |
[java] INFO [34:08,925] drop table if exists UP_USER_LAYOUT cascade | |
[java] INFO [34:08,926] drop table if exists UP_LAYOUT_STRUCT cascade | |
[java] INFO [34:08,926] drop table if exists UP_LAYOUT_PARAM cascade | |
[java] INFO [34:08,926] drop table if exists UP_SEQUENCE cascade | |
[java] INFO [34:08,926] drop table if exists UP_USER_PROFILE cascade | |
[java] INFO [34:08,927] drop table if exists UP_GROUP cascade | |
[java] INFO [34:08,927] drop table if exists UP_ENTITY_TYPE cascade | |
[java] INFO [34:08,927] drop table if exists UP_GROUP_MEMBERSHIP cascade | |
[java] INFO [34:08,927] drop table if exists UP_ENTITY_CACHE_INVALIDATION cascade | |
[java] INFO [34:08,927] drop table if exists UP_ENTITY_LOCK cascade | |
[java] INFO [34:08,928] drop table if exists UP_ENTITY_PROP cascade | |
[java] INFO [34:08,928] Creating tables | |
[java] INFO [34:08,928] create table UP_USER (USER_ID int4 not null, USER_NAME varchar(35), USER_DFLT_USR_ID int4, USER_DFLT_LAY_ID int4, NEXT_STRUCT_ID int4, LST_CHAN_UPDT_DT timestamp, primary key (USER_ID), unique (USER_NAME)) | |
... | ... |
[java] INFO [34:09,415] create index IDX_UPP_PREFS_ID on UP_PORTLET_PREF (PORTLET_PREFS_ID) | [java] INFO [07:29,920] Creating tables |
[java] INFO [34:09,418] alter table UP_PORTLET_PREF add constraint FKDB78E48C91ACC674 foreign key (PORTLET_PREFS_ID) references UP_PORTLET_PREFS | [java] INFO [07:29,920] create table UP_USER (USER_ID int4 not null, USER_NAME varchar(35), USER_DFLT_USR_ID int4, USER_DFLT_LAY_ID int4, NEXT_STRUCT_ID int4, LST_CHAN_UPDT_DT timestamp, primary key (USER_ID), unique (USER_NAME)) |
... | ... |
[java] INFO [34:09,448] alter table UP_SS_USER_PREF_PARAM add constraint FK7F16D48AC7EEEE72 foreign key (SS_USER_PREF_ID) references UP_SS_USER_PREF | [java] INFO [07:30,430] create sequence UP_UNIQUE_STR_SEQ start 1 increment 1000 |
[java] INFO [34:09,450] create index IDX_USER_FRAG__USER on UP_USER_FRAGMENT_SUBSCRIPTION (USER_ID) | [java] INFO [07:30,432] create table hibernate_sequences ( sequence_name varchar(255) not null , next_val int8, primary key ( sequence_name ) ) |
[java] INFO [34:09,452] create sequence UP_DLM_EVALUATOR_SEQ start 1 increment 1 | [java] INFO [07:30,432] PostInit - Set AggrEventsDb version to 4.0.12 |
[java] INFO [34:09,454] create sequence UP_MESSAGE_SEQ start 1 increment 5 | [java] INFO [07:30,437] |
| [java] INFO [07:30,437] |
| [java] INFO [07:30,437] Importing Data from: /home/esup/esup-uportal/uportal-war/src/main/data/required_entities that matches |
| [java] INFO [07:30,443] Scanning for files to Import from: /home/esup/esup-uportal/uportal-war/src/main/data/required_entities |
| [java] INFO [07:30,598] Found 17 files to Import from: /home/esup/esup-uportal/uportal-war/src/main/data/required_entities |
| [java] INFO [07:30,598] Importing 7 files of type <entity-type script="classpath://org/jasig/portal/io/import-entity-type_v3-2.crn"> |
| [java] INFO [07:30,814] Imported : entity-type/org.jasig.portal.security.IPerson.entity-type.xml |
| [java] INFO [07:30,870] Imported : entity-type/org.jasig.portal.groups.IEntityGroup.entity-type.xml |
| [java] INFO [07:30,927] Imported : entity-type/org.jasig.portal.services.entityproperties.EntityProperties.entity-type.xml |
| [java] INFO [07:30,981] Imported : entity-type/org.jasig.portal.groups.IEntity.entity-type.xml |
| [java] INFO [07:31,020] Imported : entity-type/java.lang.Object.entity-type.xml |
| [java] INFO [07:31,073] Imported : entity-type/org.jasig.portal.security.IPermissionSet.entity-type.xml |
| [java] INFO [07:31,127] Imported : entity-type/org.jasig.portal.portlet.om.IPortletDefinition.entity-type.xml |
| [java] INFO [07:31,128] Importing 2 files of type <{https://source.jasig.org/schemas/uportal/io/stylesheet-descriptor}stylesheet-descriptor version="4.0"> |
| [java] INFO [07:31,216] Imported : stylesheet-descriptor/DLMXHTML.stylesheet-descriptor.xml |
| [java] INFO [07:31,259] Imported : stylesheet-descriptor/DLMTabsColumns.stylesheet-descriptor.xml |
| [java] INFO [07:31,259] Importing 1 files of type <{https://source.jasig.org/schemas/uportal/io/user}template-user version="4.0"> |
| [java] INFO [07:31,293] Imported : user/defaultTemplateUser.user.xml |
| [java] INFO [07:31,294] Importing 2 files of type <{https://source.jasig.org/schemas/uportal/io/user}user version="4.0"> |
| [java] INFO [07:31,304] Imported : user/guest.user.xml |
| [java] INFO [07:31,313] Imported : user/system.user.xml |
| [java] INFO [07:31,314] Importing 1 files of type <{https://source.jasig.org/schemas/uportal/io/portlet-type}portlet-type version="4.0"> |
| [java] INFO [07:31,326] Imported : portlet-type/Portlet.portlet-type.xml |
| [java] INFO [07:31,327] Importing 2 files of type <profile script="classpath://org/jasig/portal/io/import-profile_v3-2.crn"> |
| [java] INFO [07:31,602] Looking up bean 'counterStore' in ApplicationContext due to context not yet being initialized |
| [java] INFO [07:31,782] Imported : profile/system_default.profile.xml |
| [java] INFO [07:31,815] Imported : profile/defaultTemplateUser_default.profile.xml |
| [java] INFO [07:31,815] Importing 2 files of type <layout script="classpath://org/jasig/portal/io/import-layout_v3-2.crn"> |
| [java] INFO [07:31,873] Imported : layout/defaultTemplateUser.layout.xml |
| [java] INFO [07:31,904] Imported : layout/system.layout.xml |
| [java] INFO [07:31,904] For a detailed report on the data import see /home/esup/esup-uportal/target/data-import-reports/data-import.txt |
| [java] INFO [07:31,905] |
| [java] INFO [07:31,905] |
| [java] INFO [07:31,905] Importing Data from: /home/esup/esup-uportal/uportal-war/src/main/data/default_entities that matches |
| [java] INFO [07:31,905] Scanning for files to Import from: /home/esup/esup-uportal/uportal-war/src/main/data/default_entities |
| [java] INFO [07:31,954] Found 102 files to Import from: /home/esup/esup-uportal/uportal-war/src/main/data/default_entities |
| [java] INFO [07:31,954] Importing 3 files of type <{https://source.jasig.org/schemas/uportal/io/stylesheet-descriptor}stylesheet-descriptor version="4.0"> |
| [java] INFO [07:31,969] Imported : stylesheet-descriptor/UniversalityMobile.stylesheet-descriptor.xml |
| [java] INFO [07:31,979] Imported : stylesheet-descriptor/JsonLayout.stylesheet-descriptor.xml |
| [java] INFO [07:31,995] Imported : stylesheet-descriptor/DLMMobileColumns.stylesheet-descriptor.xml |
| [java] INFO [07:31,995] Importing 3 files of type <{https://source.jasig.org/schemas/uportal/io/user}user version="4.0"> |
| [java] INFO [07:32,026] Imported : user/admin.user.xml |
| [java] INFO [07:32,039] Imported : user/admin-lo.user.xml |
| [java] INFO [07:32,053] Imported : user/fragmentTemplate.user.xml |
| [java] INFO [07:32,053] Importing 12 files of type <group script="classpath://org/jasig/portal/io/import-group_membership_v3-2.crn" version="GROUP"> |
| [java] INFO [07:32,139] Imported : group_membership/Administration.group-membership.xml |
| [java] INFO [07:32,149] Imported : group_membership/uPortal.group-membership.xml |
... | ... |
[java] INFO [34:09,492] create sequence UP_VERSION_SEQ start 1 increment 1 | |
[java] INFO [34:09,501] PostInit - Set PortalDb version to 4.0.12 | |
... | |
[java] INFO [34:10,088] create sequence UP_UNIQUE_STR_SEQ start 1 increment 1000 | |
[java] INFO [34:10,091] create table hibernate_sequences ( sequence_name varchar(255) not null , next_val int8, primary key ( sequence_name ) ) | |
[java] INFO [34:10,092] PostInit - Set AggrEventsDb version to 4.0.12 | |
[java] INFO [34:10,100] | |
[java] INFO [34:10,100] | |
[java] INFO [34:10,101] Importing Data from: /home/esup/esup-uportal/uportal-war/src/main/data/required_entities that matches | |
[java] INFO [34:10,115] Scanning for files to Import from: /home/esup/esup-uportal/uportal-war/src/main/data/required_entities | |
[java] INFO [34:10,272] Found 17 files to Import from: /home/esup/esup-uportal/uportal-war/src/main/data/required_entities | |
[java] INFO [34:10,273] Importing 7 files of type <entity-type script="classpath://org/jasig/portal/io/import-entity-type_v3-2.crn"> | |
[java] INFO [34:10,469] Imported : entity-type/org.jasig.portal.groups.IEntityGroup.entity-type.xml | |
... | |
[java] INFO [34:14,044] Imported : user/news-lo.user.xml | |
[java] INFO [34:14,059] Imported : user/ent-lo.user.xml | |
[java] INFO [34:14,059] Importing 27 files of type <group script="classpath://org/jasig/portal/io/import-group_membership_v3-2.crn" version="GROUP"> | |
[java] INFO [34:14,069] Imported : group_membership/Finances.group-membership.xml | |
[java] INFO [34:14,078] Imported : group_membership/Demonstration.group-membership.xml | |
... | |
[java] INFO [34:Erreur variable 'univEntServerHost' | |
| |
au lancement de cette commande, on a constater cette premiere erreure: | |
| |
esup@esup4:/opt/esup-uportal$ ant -Dmaven.test.skip=true clean initportal | [java] INFO [07:37,536] Closing JPA EntityManagerFactory for persistence unit 'RawEventsDb' |
| |
.... ZZZZ ... qq minutes .... | |
| |
[java] Exception in thread "main" org.springframework.beans.factory.BeanDefinitionStoreException: Invalid bean definition with name 'jsonThemeTransformComponent' defined in class path resource [properties/contexts/jsonRenderingPipelineContext.xml]: Could not resolve placeholder 'univEntServerHost' in string value "https://cas.univ.fr/login?service=https://${univEntServerHost}/uPortal/Login" | |
[java] at org.springframework.beans.factory.config.PlaceholderConfigurerSupport.doProcessProperties(PlaceholderConfigurerSupport.java:209) | |
| |
il faut definir/declarer ces variables "univEntServerHost" dans le build.xml meme avec une valeur bidon, sinon on a ce plantage a cause de l'usage des varaibles d'environement sur les hostnames que l'on a utiliser dans notre parametrage | |
| |
| |
14,294] Imported : group_membership/All_categories.group-membership.xml | |
[java] INFO [34:14,294] Importing 27 files of type <group script="classpath://org/jasig/portal/io/import-group_membership_v3-2.crn" version="MEMBERS"> | |
[java] INFO [34:14,300] Imported : group_membership/Finances.group-membership.xml | |
[java] INFO [34:14,305] Imported : group_membership/Demonstration.group-membership.xml | |
... | |
[java] INFO [34:14,582] Imported : group_membership/All_categories.group-membership.xml | |
[java] INFO [34:14,582] Importing 54 files of type <{https://source.jasig.org/schemas/uportal/io/portlet-definition}portlet-definition version="4.0"> | |
[java] INFO [34:14,625] Imported : portlet-definition/daily-business-cartoon.portlet-definition.xml | |
[java] INFO [34:14,649] Imported : portlet-definition/test-portlet-2.portlet-definition.xml | |
[java] INFO [34:14,681] Imported : portlet-definition/calendar.portlet-definition.xml | |
... | |
[java] INFO [34:16,532] Imported : portlet-definition/google-maps-portlet.portlet-definition.xml | |
[java] INFO [34:16,532] Importing 10 files of type <fragment-definition script="classpath://org/jasig/portal/io/import-fragment-definition_v3-1.crn"> | |
[java] INFO [34:16,624] Imported : fragment-definition/guest-lo.fragment-definition.xml | |
[java] INFO [34:16,649] Imported : fragment-definition/welcome-lo.fragment-definition.xml | |
[java] INFO [34:16,672] Imported : fragment-definition/admin-lo.fragment-definition.xml | |
... | |
[java] INFO [34:16,693] Imported : fragment-definition/campus-lo.fragment-definition.xml | |
[java] INFO [34:16,711] Imported : fragment-definition/all-lo.fragment-definition.xml | |
[java] INFO [34:16,724] Imported : fragment-definition/ent-lo.fragment-definition.xml | |
[java] INFO [34:16,743] Imported : fragment-definition/developer-lo.fragment-definition.xml | |
[java] INFO [34:16,756] Imported : fragment-definition/news-lo.fragment-definition.xml | |
[java] INFO [34:16,778] Imported : fragment-definition/academics-lo.fragment-definition.xml | |
[java] INFO [34:16,796] Imported : fragment-definition/staff-lo.fragment-definition.xml | |
[java] INFO [34:16,796] Importing 10 files of type <fragment-layout script="classpath://org/jasig/portal/io/import-layout_v3-2.crn"> | |
[java] WARN [34:17,541] HHH000387: ResultSet's statement was not registered | |
... | |
[java] INFO [34:19,425] Imported : fragment-layout/staff-lo.fragment-layout.xml | |
[java] INFO [34:19,425] For a detailed report on the data import see /home/esup/esup-uportal/target/data-import-reports/data-import.txt | |
[java] INFO [34:19,524] Closing JPA EntityManagerFactory for persistence unit 'PortalDb' | |
[java] INFO [34:19,559] Closing JPA EntityManagerFactory for persistence unit 'AggrEventsDb' | |
[java] INFO [34:19,578] Closing JPA EntityManagerFactory for persistence unit 'RawEventsDb' | |
[echo] Finished initializing database | [echo] Finished initializing database |
[echo] Finished initializing uPortal | [echo] Finished initializing uPortal |
| |
BUILD SUCCESSFUL | BUILD SUCCESSFUL |
Total time: 2 minutes 13 seconds | Total time: 2 minutes 14 seconds |
| |
| real 2m15.282s |
| user 4m40.832s |
| sys 0m20.426s |
| |
real 2m14.027s | |
user 4m20.861s | |
sys 0m31.665s | |
| |
</code> | </code> |
| |
<code> | <code> |
[root@esup4dev /]# ls -ltr /var/lib/tomcat6/webapps/ | [esup@esup4dz ~/esup-uportal] |
total 84 | $ ls -ltr /var/lib/tomcat/webapps/ |
drwxrwxr-x 3 root tomcat 4096 May 13 16:14 ROOT | total 68 |
drwxrwxr-x 5 root tomcat 4096 May 13 16:14 host-manager | drwxr-xr-x 5 root tomcat 4096 May 20 11:40 host-manager |
drwxrwxr-x 5 root tomcat 4096 May 13 16:14 manager | drwxr-xr-x 5 root tomcat 4096 May 20 11:40 manager |
drwxr-xr-x 5 esup tomcat 4096 May 19 18:33 uPortal | drwxr-xr-x 7 esup tomcat 4096 May 21 15:47 probe |
drwxr-xr-x 5 esup tomcat 4096 May 19 18:33 ResourceServingWebapp | drwxr-xr-x 5 esup tomcat 4096 May 21 16:06 uPortal |
drwxr-xr-x 10 esup tomcat 4096 May 19 18:33 Announcements | drwxr-xr-x 5 esup tomcat 4096 May 21 16:06 ResourceServingWebapp |
drwxr-xr-x 7 esup tomcat 4096 May 19 18:33 BookmarksPortlet | drwxr-xr-x 10 esup tomcat 4096 May 21 16:06 Announcements |
drwxr-xr-x 8 esup tomcat 4096 May 19 18:33 CalendarPortlet | drwxr-xr-x 7 esup tomcat 4096 May 21 16:06 BookmarksPortlet |
drwxr-xr-x 5 esup tomcat 4096 May 19 18:33 cas-proxy-test-portlet | drwxr-xr-x 8 esup tomcat 4096 May 21 16:06 CalendarPortlet |
drwxr-xr-x 8 esup tomcat 4096 May 19 18:33 email-preview | drwxr-xr-x 5 esup tomcat 4096 May 21 16:06 cas-proxy-test-portlet |
drwxr-xr-x 5 esup tomcat 4096 May 19 18:33 FunctionalTestsPortlet | drwxr-xr-x 8 esup tomcat 4096 May 21 16:06 email-preview |
drwxr-xr-x 7 esup tomcat 4096 May 19 18:33 jasig-widget-portlets | drwxr-xr-x 5 esup tomcat 4096 May 21 16:06 FunctionalTestsPortlet |
drwxr-xr-x 8 esup tomcat 4096 May 19 18:33 NewsReaderPortlet | drwxr-xr-x 7 esup tomcat 4096 May 21 16:06 jasig-widget-portlets |
drwxr-xr-x 8 esup tomcat 4096 May 19 18:33 NotificationPortlet | drwxr-xr-x 8 esup tomcat 4096 May 21 16:06 NewsReaderPortlet |
drwxr-xr-x 7 esup tomcat 4096 May 19 18:33 SimpleContentPortlet | drwxr-xr-x 8 esup tomcat 4096 May 21 16:06 NotificationPortlet |
drwxr-xr-x 8 esup tomcat 4096 May 19 18:33 WeatherPortlet | drwxr-xr-x 7 esup tomcat 4096 May 21 16:06 SimpleContentPortlet |
drwxr-xr-x 4 esup tomcat 4096 May 19 18:33 WebProxyPortlet | drwxr-xr-x 8 esup tomcat 4096 May 21 16:06 WeatherPortlet |
| drwxr-xr-x 4 esup tomcat 4096 May 21 16:06 WebProxyPortlet |
</code> | </code> |
| |
| |
==== erreur corrigées ==== | |
| |
| |
=== si pb de permission denied === | |
| |
<code> | |
/home/esup/esup-uportal/build.xml:657: java.io.FileNotFoundException: /var/lib/tomcat6/shared/lib/person-directory-api.jar (Permission denied) | |
</code> | |
| |
alors donner les droits au user esup de deposer des jar dans ce repertoire (usage ici du group tomcat en ecriture) | |
| |
<code> | |
[root@esup4dev /]# ls -ald /var/lib/tomcat6/shared/lib/ | |
drwxr-xr-x 2 root root 4096 May 13 16:20 /var/lib/tomcat6/shared/lib/ | |
[root@esup4dev /]# chgrp tomcat /var/lib/tomcat6/shared/lib/ | |
[root@esup4dev /]# chmod 775 /var/lib/tomcat6/shared/lib/ | |
[root@esup4dev /]# ls -ald /var/lib/tomcat6/shared/lib/ | |
drwxrwxr-x 2 root tomcat 4096 May 13 16:20 /var/lib/tomcat6/shared/lib/ | |
</code> | |
| |
effectivement apres le *ant clean initportal* on retrouve bien : | |
| |
<code> | |
[root@esup4dev /]# ls -ltr /var/lib/tomcat6/shared/lib/ | |
total 180 | |
-rw-r--r-- 1 esup tomcat 8169 May 19 18:16 person-directory-api.jar | |
-rw-r--r-- 1 esup tomcat 15048 May 19 18:16 ccpp.jar | |
-rw-r--r-- 1 esup tomcat 48049 May 19 18:16 portlet-api.jar | |
-rw-r--r-- 1 esup tomcat 42767 May 19 18:16 pluto-taglib.jar | |
-rw-r--r-- 1 esup tomcat 23436 May 19 18:16 pluto-container-driver-api.jar | |
-rw-r--r-- 1 esup tomcat 39576 May 19 18:16 pluto-container-api.jar | |
</code> | |
| |
=== Erreur variable 'univEntServerHost' === | |
| |
au lancement de | |
| |
$ ant -Dmaven.test.skip=true clean initportal | |
| |
on a constaté cette erreur a propos des variables univEntServer* (alternative ne pas utiliser ces variables ...! ) | |
| |
.... ZZZZ ... qq minutes .... | |
| |
[java] Exception in thread "main" org.springframework.beans.factory.BeanDefinitionStoreException: Invalid bean definition with name 'jsonThemeTransformComponent' defined in class path resource [properties/contexts/jsonRenderingPipelineContext.xml]: Could not resolve placeholder 'univEntServerHost' in string value "https://cas.univ.fr/login?service=https://${univEntServerHost}/uPortal/Login" | |
[java] at org.springframework.beans.factory.config.PlaceholderConfigurerSupport.doProcessProperties(PlaceholderConfigurerSupport.java:209) | |
| |
il faut definir/declarer ces variables "univEntServerHost" dans le build.xml meme avec une valeur bidon, sinon on a ce plantage a cause de l'usage des varaibles d'environement sur les hostnames que l'on a utiliser dans notre parametrage | |
| |
<code> | |
[esup@esup4dev esup-uportal]$ git commit -a -m "declaration des variables univEntServerHostNum et univEntServerHost dans build.xml, JP " | |
[ecampusdev f352068] declaration des variables univEntServerHostNum et univEntServerHost dans build.xml, JP | |
1 files changed, 4 insertions(+), 0 deletions(-) | |
| |
[esup@esup4dev esup-uportal]$ git diff c5d280e build.xml | |
diff --git a/build.xml b/build.xml | |
index 0ed2d4f..219841f 100644 | |
--- a/build.xml | |
+++ b/build.xml | |
@@ -458,6 +458,8 @@ | |
<java fork="true" failonerror="true" dir="${basedir}" classname="org.jasig.portal.shell.PortalShell"> | |
<jvmarg value="-XX:MaxPermSize=256m"/> | |
<sysproperty key="log4j.configuration" value="command-line.log4j.properties" /> | |
+ <sysproperty key="univEntServerHostNum" value="bidon" /> | |
+ <sysproperty key="univEntServerHost" value="bidon" /> | |
<classpath refid="uportal-war-full.classpath" /> | |
<arg value="-s" /> | |
<arg value="${script}" /> | |
@@ -468,6 +470,8 @@ | |
| |
<java fork="true" failonerror="true" dir="${basedir}" classname="org.jasig.portal.shell.PortalShell"> | |
<sysproperty key="log4j.configuration" value="command-line.log4j.properties" /> | |
+ <sysproperty key="univEntServerHostNum" value="bidon" /> | |
+ <sysproperty key="univEntServerHost" value="bidon" /> | |
<classpath refid="uportal-war-full.classpath" /> | |
</java> | |
</else> | |
| |
</code> | |
| |
| |
| |
| ===== database cree ===== |
| |
Au final, on a une base de donnée remplie de plusieurs tables et sequences: | Au final, on a une base de donnée remplie de plusieurs tables et sequences: |
| |
<code> | <code> |
[esup@esup4dev esup-uportal]$ psql -d uportal4dev -U useresup -h 127.0.0.1 -W | [esup@esup4dz ~/esup-uportal] |
Password for user useresup: | $ psql -d uportaldz -U uportaluz -h 127.0.0.1 -W |
psql (8.4.20) | Password for user uportaluz: |
| psql (9.2.10) |
Type "help" for help. | Type "help" for help. |
| |
uportal4dev=> \d | uportaldz=> \d |
List of relations | List of relations |
Schema | Name | Type | Owner | Schema | Name | Type | Owner |
--------+-------------------------------+----------+---------- | --------+-------------------------------+----------+----------- |
public | admins | table | useresup | public | admins | table | uportaluz |
public | announcement | table | useresup | public | announcement | table | uportaluz |
public | announcement_attachment | table | useresup | public | announcement_attachment | table | uportaluz |
public | audience | table | useresup | public | audience | table | uportaluz |
public | authors | table | useresup | public | authors | table | uportaluz |
public | calendar_configuration | table | useresup | public | calendar_configuration | table | uportaluz |
public | calendar_parameter | table | useresup | public | calendar_parameter | table | uportaluz |
public | calendar_preference | table | useresup | public | calendar_preference | table | uportaluz |
public | calendar_role | table | useresup | public | calendar_role | table | uportaluz |
public | calendar_store | table | useresup | public | calendar_store | table | uportaluz |
public | hibernate_sequence | sequence | useresup | public | hibernate_sequence | sequence | uportaluz |
public | hibernate_sequences | table | useresup | public | hibernate_sequences | table | uportaluz |
public | moderators | table | useresup | public | moderators | table | uportaluz |
public | news_configuration | table | useresup | public | news_configuration | table | uportaluz |
public | news_definition | table | useresup | public | news_definition | table | uportaluz |
public | news_parameter | table | useresup | public | news_parameter | table | uportaluz |
public | news_preference | table | useresup | public | news_preference | table | uportaluz |
public | news_role | table | useresup | public | news_role | table | uportaluz |
public | news_set | table | useresup | public | news_set | table | uportaluz |
public | scm_attachment | table | useresup | public | scm_attachment | table | uportaluz |
public | subscription | table | useresup | public | subscription | table | uportaluz |
public | topic | table | useresup | public | topic | table | uportaluz |
public | up_academic_term_detail | table | useresup | public | up_academic_term_detail | table | uportaluz |
public | up_academic_term_detail_seq | sequence | useresup | public | up_academic_term_detail_seq | sequence | uportaluz |
public | up_aggr_group_mapping | table | useresup | public | up_aggr_group_mapping | table | uportaluz |
public | up_aggr_group_mapping_seq | sequence | useresup | public | up_aggr_group_mapping_seq | sequence | uportaluz |
public | up_aggr_portlet_mapping | table | useresup | public | up_aggr_portlet_mapping | table | uportaluz |
public | up_aggr_portlet_mapping_seq | sequence | useresup | public | up_aggr_portlet_mapping_seq | sequence | uportaluz |
public | up_aggr_tab_mapping | table | useresup | public | up_aggr_tab_mapping | table | uportaluz |
public | up_aggr_tab_mapping_seq | sequence | useresup | public | up_aggr_tab_mapping_seq | sequence | uportaluz |
public | up_concurrent_user_aggr | table | useresup | public | up_attachment_seq | sequence | uportaluz |
public | up_concurrent_user_aggr_seq | sequence | useresup | public | up_concurrent_user_aggr | table | uportaluz |
public | up_date_dimension | table | useresup | public | up_concurrent_user_aggr_seq | sequence | uportaluz |
public | up_date_dimension_seq | sequence | useresup | public | up_date_dimension | table | uportaluz |
public | up_dlm_evaluator | table | useresup | public | up_date_dimension_seq | sequence | uportaluz |
public | up_dlm_evaluator_paren | table | useresup | public | up_dlm_evaluator | table | uportaluz |
public | up_dlm_evaluator_seq | sequence | useresup | public | up_dlm_evaluator_paren | table | uportaluz |
public | up_entity_cache_invalidation | table | useresup | public | up_dlm_evaluator_seq | sequence | uportaluz |
public | up_entity_lock | table | useresup | public | up_entity_cache_invalidation | table | uportaluz |
public | up_entity_prop | table | useresup | public | up_entity_lock | table | uportaluz |
public | up_entity_type | table | useresup | public | up_entity_prop | table | uportaluz |
public | up_event_aggr_conf_groups | table | useresup | public | up_entity_type | table | uportaluz |
public | up_event_aggr_conf_groups_exc | table | useresup | public | up_event_aggr_conf_groups | table | uportaluz |
public | up_event_aggr_conf_groups_inc | table | useresup | public | up_event_aggr_conf_groups_exc | table | uportaluz |
public | up_event_aggr_conf_groups_seq | sequence | useresup | public | up_event_aggr_conf_groups_inc | table | uportaluz |
public | up_event_aggr_conf_intrvl | table | useresup | public | up_event_aggr_conf_groups_seq | sequence | uportaluz |
public | up_event_aggr_conf_intrvl_exc | table | useresup | public | up_event_aggr_conf_intrvl | table | uportaluz |
public | up_event_aggr_conf_intrvl_inc | table | useresup | public | up_event_aggr_conf_intrvl_exc | table | uportaluz |
public | up_event_aggr_conf_intrvl_seq | sequence | useresup | public | up_event_aggr_conf_intrvl_inc | table | uportaluz |
public | up_event_aggr_status | table | useresup | public | up_event_aggr_conf_intrvl_seq | sequence | uportaluz |
public | up_event_aggr_status_seq | sequence | useresup | public | up_event_aggr_status | table | uportaluz |
public | up_event_session | table | useresup | public | up_event_aggr_status_seq | sequence | uportaluz |
public | up_event_session_groups | table | useresup | public | up_event_session | table | uportaluz |
public | up_event_session_seq | sequence | useresup | public | up_event_session_groups | table | uportaluz |
public | up_group | table | useresup | public | up_event_session_seq | sequence | uportaluz |
public | up_group_membership | table | useresup | public | up_group | table | uportaluz |
public | up_jgroups_auth | table | useresup | public | up_group_membership | table | uportaluz |
public | up_jgroups_ping | table | useresup | public | up_jgroups_auth | table | uportaluz |
public | up_layout_param | table | useresup | public | up_jgroups_ping | table | uportaluz |
public | up_layout_struct | table | useresup | public | up_layout_param | table | uportaluz |
public | up_login_event_aggr | table | useresup | public | up_layout_struct | table | uportaluz |
public | up_login_event_aggr_seq | sequence | useresup | public | up_login_event_aggr | table | uportaluz |
public | up_message | table | useresup | public | up_login_event_aggr_seq | sequence | uportaluz |
public | up_message_seq | sequence | useresup | public | up_message | table | uportaluz |
public | up_mutex | table | useresup | public | up_message_seq | sequence | uportaluz |
public | up_mutex_seq | sequence | useresup | public | up_mutex | table | uportaluz |
public | up_permission | table | useresup | public | up_mutex_seq | sequence | uportaluz |
public | up_permission_activity | table | useresup | public | up_permission | table | uportaluz |
public | up_permission_activity_seq | sequence | useresup | public | up_permission_activity | table | uportaluz |
public | up_permission_owner | table | useresup | public | up_permission_activity_seq | sequence | uportaluz |
public | up_permission_owner_seq | sequence | useresup | public | up_permission_owner | table | uportaluz |
public | up_person_attr | table | useresup | public | up_permission_owner_seq | sequence | uportaluz |
public | up_person_attr_seq | sequence | useresup | public | up_person_attr | table | uportaluz |
public | up_person_attr_values | table | useresup | public | up_person_attr_seq | sequence | uportaluz |
public | up_person_dir | table | useresup | public | up_person_attr_values | table | uportaluz |
public | up_person_dir_seq | sequence | useresup | public | up_person_dir | table | uportaluz |
public | up_portal_cookies | table | useresup | public | up_person_dir_seq | sequence | uportaluz |
public | up_portal_cookies_seq | sequence | useresup | public | up_portal_cookies | table | uportaluz |
public | up_portlet_cookies | table | useresup | public | up_portal_cookies_seq | sequence | uportaluz |
public | up_portlet_cookies_seq | sequence | useresup | public | up_portlet_cookies | table | uportaluz |
public | up_portlet_def | table | useresup | public | up_portlet_cookies_seq | sequence | uportaluz |
public | up_portlet_def_mdata | table | useresup | public | up_portlet_def | table | uportaluz |
public | up_portlet_def_param | table | useresup | public | up_portlet_def_mdata | table | uportaluz |
public | up_portlet_def_param_seq | sequence | useresup | public | up_portlet_def_param | table | uportaluz |
public | up_portlet_def_seq | sequence | useresup | public | up_portlet_def_param_seq | sequence | uportaluz |
public | up_portlet_ent | table | useresup | public | up_portlet_def_seq | sequence | uportaluz |
public | up_portlet_ent__states | table | useresup | public | up_portlet_ent | table | uportaluz |
public | up_portlet_ent_seq | sequence | useresup | public | up_portlet_ent__states | table | uportaluz |
public | up_portlet_exec_aggr | table | useresup | public | up_portlet_ent_seq | sequence | uportaluz |
public | up_portlet_exec_aggr_seq | sequence | useresup | public | up_portlet_exec_aggr | table | uportaluz |
public | up_portlet_layout_aggr | table | useresup | public | up_portlet_exec_aggr_seq | sequence | uportaluz |
public | up_portlet_pref | table | useresup | public | up_portlet_layout_aggr | table | uportaluz |
public | up_portlet_pref_seq | sequence | useresup | public | up_portlet_pref | table | uportaluz |
public | up_portlet_pref_values | table | useresup | public | up_portlet_pref_seq | sequence | uportaluz |
public | up_portlet_prefs | table | useresup | public | up_portlet_pref_values | table | uportaluz |
public | up_portlet_prefs_seq | sequence | useresup | public | up_portlet_prefs | table | uportaluz |
public | up_portlet_type | table | useresup | public | up_portlet_prefs_seq | sequence | uportaluz |
public | up_portlet_type_seq | sequence | useresup | public | up_portlet_type | table | uportaluz |
public | up_quarter_detail | table | useresup | public | up_portlet_type_seq | sequence | uportaluz |
public | up_quarter_detail_seq | sequence | useresup | public | up_quarter_detail | table | uportaluz |
public | up_raw_events | table | useresup | public | up_quarter_detail_seq | sequence | uportaluz |
public | up_raw_events_seq | sequence | useresup | public | up_raw_events | table | uportaluz |
public | up_search_req_aggr | table | useresup | public | up_raw_events_seq | sequence | uportaluz |
public | up_sequence | table | useresup | public | up_search_req_aggr | table | uportaluz |
public | up_ss_desc | table | useresup | public | up_sequence | table | uportaluz |
public | up_ss_desc_lay_attr | table | useresup | public | up_ss_desc | table | uportaluz |
public | up_ss_desc_lay_attr_elms | table | useresup | public | up_ss_desc_lay_attr | table | uportaluz |
public | up_ss_desc_lay_attr_seq | sequence | useresup | public | up_ss_desc_lay_attr_elms | table | uportaluz |
public | up_ss_desc_output_prop | table | useresup | public | up_ss_desc_lay_attr_seq | sequence | uportaluz |
public | up_ss_desc_output_prop_seq | sequence | useresup | public | up_ss_desc_output_prop | table | uportaluz |
public | up_ss_desc_param | table | useresup | public | up_ss_desc_output_prop_seq | sequence | uportaluz |
public | up_ss_desc_param_seq | sequence | useresup | public | up_ss_desc_param | table | uportaluz |
public | up_ss_desc_seq | sequence | useresup | public | up_ss_desc_param_seq | sequence | uportaluz |
public | up_ss_user_pref | table | useresup | public | up_ss_desc_seq | sequence | uportaluz |
public | up_ss_user_pref_lay_attr | table | useresup | public | up_ss_user_pref | table | uportaluz |
public | up_ss_user_pref_lay_attr_seq | sequence | useresup | public | up_ss_user_pref_lay_attr | table | uportaluz |
public | up_ss_user_pref_lay_attr_val | table | useresup | public | up_ss_user_pref_lay_attr_seq | sequence | uportaluz |
public | up_ss_user_pref_output_prop | table | useresup | public | up_ss_user_pref_lay_attr_val | table | uportaluz |
public | up_ss_user_pref_param | table | useresup | public | up_ss_user_pref_output_prop | table | uportaluz |
public | up_ss_user_pref_seq | sequence | useresup | public | up_ss_user_pref_param | table | uportaluz |
public | up_tab_render_aggr | table | useresup | public | up_ss_user_pref_seq | sequence | uportaluz |
public | up_tab_render_aggr_seq | sequence | useresup | public | up_tab_render_aggr | table | uportaluz |
public | up_time_dimension | table | useresup | public | up_tab_render_aggr_seq | sequence | uportaluz |
public | up_time_dimension_seq | sequence | useresup | public | up_time_dimension | table | uportaluz |
public | up_unique_str | table | useresup | public | up_time_dimension_seq | sequence | uportaluz |
public | up_unique_str_segment | table | useresup | public | up_unique_str | table | uportaluz |
public | up_unique_str_segment__uids | table | useresup | public | up_unique_str_segment | table | uportaluz |
public | up_unique_str_segment_seq | sequence | useresup | public | up_unique_str_segment__uids | table | uportaluz |
public | up_unique_str_seq | sequence | useresup | public | up_unique_str_segment_seq | sequence | uportaluz |
public | up_user | table | useresup | public | up_unique_str_seq | sequence | uportaluz |
public | up_user_fragment_sub_seq | sequence | useresup | public | up_user | table | uportaluz |
public | up_user_fragment_subscription | table | useresup | public | up_user_fragment_sub_seq | sequence | uportaluz |
public | up_user_layout | table | useresup | public | up_user_fragment_subscription | table | uportaluz |
public | up_user_locale | table | useresup | public | up_user_layout | table | uportaluz |
public | up_user_profile | table | useresup | public | up_user_locale | table | uportaluz |
public | up_version | table | useresup | public | up_user_profile | table | uportaluz |
public | up_version_seq | sequence | useresup | public | up_version | table | uportaluz |
(137 rows) | public | up_version_seq | sequence | uportaluz |
| (138 rows) |
</code> | </code> |
| |
| |
<code> | <code> |
uportal4dev=> select * from up_group; | uportaldz=> select * from up_group; |
group_id | creator_id | entity_type_id | group_name | description | group_id | creator_id | entity_type_id | group_name | description |
----------+------------+----------------+------------------------+------------------------------------------ | ----------+------------+----------------+------------------------+------------------------------------------ |
19 | system | 16 | Finances | Portlets financières et comptables | 19 | system | 16 | Actualités | Portlets d'actualités |
20 | system | 16 | Démonstration | Portlets de démonstration | 10 | system | 16 | Administration | Portlets d'administration |
10 | system | 12 | Fragment Owners | Propriétaires de fragments | 20 | system | 16 | Divertissement | Portlets de divertissement |
21 | system | 16 | Recherche | Portlets de recherche | 11 | system | 16 | uPortal | Portlets intégrées dans uPortal |
22 | system | 16 | Divertissement | Portlets de divertissement | 21 | system | 10 | Students | Tous les étudiants |
2 | system | 12 | Portal Administrators | Administrateurs du portail | 12 | system | 16 | Information | Portlets d'information |
0 | system | 12 | Everyone | Toutes les personnes | 0 | system | 10 | Everyone | Toutes les personnes |
11 | system | 12 | Subscribable Fragments | These are fragment layout owner accounts | 13 | system | 10 | Fragment Owners | Propriétaires de fragments |
23 | system | 16 | Conseil | Portlets pour les conseillers | 14 | system | 10 | Subscribable Fragments | These are fragment layout owner accounts |
24 | system | 16 | Tests | Portlets de tests | 22 | system | 16 | Enseignement | Portlets d'enseignement |
25 | system | 16 | Enseignants | Portlets pour les enseignants | 23 | system | 16 | Travail | Portlets métier |
12 | system | 12 | Guests | Anonymes | |
26 | system | 16 | Travail | Portlets métier | |
27 | system | 12 | Staff | Tout le personnel | |
13 | system | 12 | Portal System | Comptes systèmes du portail | |
28 | system | 12 | Faculty | Tous les enseignants | |
29 | system | 16 | Bibliothèque | Portlets de documentation | |
14 | system | 12 | Portal Developers | Développeurs autour du portail | |
15 | system | 16 | Développement | Portlets pour développeurs | |
30 | system | 16 | Actualités | Portlets d'actualités | |
16 | system | 16 | uPortal | Portlets intégrées dans uPortal | |
17 | system | 16 | Administration | Portlets d'administration | |
31 | system | 16 | Services | Portlets de services | |
18 | system | 16 | Information | Portlets d'information | |
32 | system | 16 | Enseignement | Portlets d'enseignement | |
33 | system | 12 | Students | Tous les étudiants | |
1 | system | 16 | All categories | Toutes les catégories de portlets | 1 | system | 16 | All categories | Toutes les catégories de portlets |
| 15 | system | 16 | Développement | Portlets pour développeurs |
| 24 | system | 16 | Démonstration | Portlets de démonstration |
| 25 | system | 16 | Tests | Portlets de tests |
| 26 | system | 16 | Bibliothèque | Portlets de documentation |
| 27 | system | 16 | Finances | Portlets financières et comptables |
| 2 | system | 10 | Portal Administrators | Administrateurs du portail |
| 28 | system | 16 | Services | Portlets de services |
| 29 | system | 10 | Faculty | Tous les enseignants |
| 30 | system | 10 | Staff | Tout le personnel |
| 16 | system | 10 | Portal Developers | Développeurs autour du portail |
| 31 | system | 16 | Recherche | Portlets de recherche |
| 32 | system | 16 | Enseignants | Portlets pour les enseignants |
| 33 | system | 16 | Conseil | Portlets pour les conseillers |
| 17 | system | 10 | Guests | Anonymes |
| 18 | system | 10 | Portal System | Comptes systèmes du portail |
(27 rows) | (27 rows) |
| |
| |
uportal4dev=> select * from up_group_membership; | uportaldz=> select * from up_group_membership; |
group_id | member_service | member_key | member_is_group | group_id | member_service | member_key | member_is_group |
----------+----------------+---------------------+----------------- | ----------+----------------+---------------------+----------------- |
16 | local | 1 | F | 11 | local | 1 | F |
16 | local | 2 | F | 11 | local | 2 | F |
... | 15 | local | 3 | F |
10 | local | academics-lo | F | 11 | local | 4 | F |
10 | local | admin-lo | F | 10 | local | 7 | F |
10 | local | all-lo | F | 10 | local | 8 | F |
10 | local | campus-lo | F | 11 | local | 10 | F |
10 | local | developer-lo | F | 11 | local | 11 | F |
10 | local | faculty-lo | F | 11 | local | 12 | F |
10 | local | fragmentTemplate | F | 11 | local | 13 | F |
10 | local | guest-lo | F | 11 | local | 14 | F |
10 | local | news-lo | F | 11 | local | 15 | F |
10 | local | staff-lo | F | 10 | local | 15 | F |
10 | local | student-lo | F | 11 | local | 17 | F |
10 | local | welcome-lo | F | 15 | local | 18 | F |
10 | local | 11 | T | 10 | local | 19 | F |
2 | local | admin | F | 10 | local | 20 | F |
2 | local | admin-lo | F | 11 | local | 21 | F |
| 12 | local | 22 | F |
| 11 | local | 23 | F |
| 10 | local | 24 | F |
| 11 | local | 25 | F |
| 15 | local | 26 | F |
| 10 | local | 27 | F |
| 12 | local | 28 | F |
| 21 | local | student | F |
| 21 | local | student-lo | F |
0 | pags | authenticated_users | T | 0 | pags | authenticated_users | T |
0 | pags | pags_root | T | 0 | pags | pags_root | T |
0 | local | 28 | T | 0 | local | 29 | T |
... | 0 | local | 17 | T |
20 | local | 81 | F | 0 | local | 18 | T |
18 | local | 82 | F | 0 | local | 30 | T |
(135 rows) | 0 | local | 21 | T |
| 13 | local | academics-lo | F |
| 13 | local | admin-lo | F |
| 13 | local | all-lo | F |
| 13 | local | campus-lo | F |
| 13 | local | developer-lo | F |
| 13 | local | faculty-lo | F |
| 13 | local | fragmentTemplate | F |
| 13 | local | guest-lo | F |
| 13 | local | news-lo | F |
| 13 | local | staff-lo | F |
| 13 | local | student-lo | F |
| 13 | local | welcome-lo | F |
| 13 | local | 14 | T |
| 14 | local | ent-lo | F |
| 14 | local | news-lo | F |
| 1 | local | 22 | T |
| 1 | local | 10 | T |
| 1 | local | 33 | T |
| 1 | local | 24 | T |
| 1 | local | 15 | T |
| 1 | local | 20 | T |
| 1 | local | 27 | T |
| 1 | local | 12 | T |
| 1 | local | 32 | T |
| 1 | local | 26 | T |
| 1 | local | 19 | T |
| 1 | local | 31 | T |
| 1 | local | 28 | T |
| 1 | local | 25 | T |
| 1 | local | 23 | T |
| 1 | local | 11 | T |
| 2 | local | admin | F |
| 2 | local | admin-lo | F |
| 29 | local | faculty | F |
| 29 | local | faculty-lo | F |
| 30 | local | staff | F |
| 30 | local | staff-lo | F |
| 16 | local | admin | F |
| 16 | local | admin-lo | F |
| 16 | local | developer | F |
| 16 | local | developer-lo | F |
| 16 | local | staff | F |
| 16 | local | staff-lo | F |
| 17 | local | guest | F |
| 17 | local | guest-lo | F |
| 18 | local | 13 | T |
| 18 | local | 2 | T |
| .... |
| 12 | local | 82 | F |
| (134 rows) |
</code> | </code> |
| |
| |
<code> | <code> |
[root@esup4dev /]# yum install mod_ssl | [root@esup4dz ~] |
| $ yum install mod_ssl |
Installed: | Installed: |
mod_ssl.i686 1:2.2.15-30.el6.centos | mod_ssl.x86_64 1:2.4.6-31.el7.centos |
Complete! | Complete! |
</code> | </code> |
| |
<code> | <code> |
[root@esup4dev /]# grep SSLCertificate /etc/httpd/conf.d/ssl.conf | [root@esup4dz /etc/httpd/conf.d] |
| $ grep SSLCertificate /etc/httpd/conf.d/ssl.conf |
SSLCertificateFile /etc/pki/tls/certs/cert-xxxx--.tem-tsp.eu.pem | SSLCertificateFile /etc/pki/tls/certs/cert-2877-_.tem-tsp.eu.pem |
SSLCertificateKeyFile /etc/pki/tls/private/secret-temtsp.key | SSLCertificateKeyFile /etc/pki/tls/private/cert-2877.key |
SSLCertificateChainFile /etc/pki/tls/certs/chain-xxxx-.tem-tsp.eu.pem | SSLCertificateChainFile /etc/pki/tls/certs/chain-2877-_.tem-tsp.eu.pem |
</code> | </code> |
| |
<code> | <code> |
[root@esup4dev /]# tail -9 /etc/httpd/conf/httpd.conf | [root@esup4dz /etc/httpd/conf.d] |
| $ tail -9 /etc/httpd/conf/httpd.conf |
| |
ProxyPass /uPortal ajp://localhost:8009/uPortal retry=1 | ProxyPass /uPortal ajp://localhost:8009/uPortal retry=1 |
ProxyPass /WebProxyPortlet ajp://localhost:8009/WebProxyPortlet retry=1 | ProxyPass /WebProxyPortlet ajp://localhost:8009/WebProxyPortlet retry=1 |
ProxyPass /manager ajp://localhost:8009/manager retry=1 | ProxyPass /manager ajp://localhost:8009/manager retry=1 |
| |
</code> | </code> |
| |
| |
http://esup4dev.tem-tsp.eu/uPortal/render.userLayoutRootNode.uP | http://esup4dev.tem-tsp.eu/uPortal/render.userLayoutRootNode.uP |
| |
| doc esup sur pool de DB |
| |
| https://www.esup-portail.org/wiki/pages/viewpage.action?pageId=260898894 |
| |
===== SSL ===== | ===== SSL ===== |
| |
</code> | </code> |
==== esup-filemanager ==== | |
| ===== esup-filemanager 3 ===== |
| |
| https://www.esup-portail.org/wiki/display/PROJCANSTOCK/Esup+File+Manager |
| |
| on va utiliser git pour recuperer le source |
| |
| <code> |
| [esup@esup4dz ~/portlet] |
| $ git clone https://github.com/EsupPortail/esup-filemanager.git |
| Cloning into 'esup-filemanager'... |
| remote: Counting objects: 5383, done. |
| remote: Total 5383 (delta 0), reused 0 (delta 0), pack-reused 5383 |
| Receiving objects: 100% (5383/5383), 1.89 MiB | 1.18 MiB/s, done. |
| Resolving deltas: 100% (1908/1908), done. |
| [esup@esup4dz ~/portlet] |
| $ cd esup-filemanager/ |
| [esup@esup4dz ~/portlet/esup-filemanager] |
| $ ls |
| LICENSE NOTICE pom.xml src |
| </code> |
| |
| visualisation de l'existant |
| <code> |
| [esup@esup4dz ~/portlet/esup-filemanager] |
| $ git config --global color.ui auto |
| [esup@esup4dz ~/portlet/esup-filemanager] |
| $ git branch -a |
| * master |
| remotes/origin/HEAD -> origin/master |
| remotes/origin/esup-filemanager-portlet_1_0 |
| remotes/origin/master |
| |
| [esup@esup4dz ~/portlet/esup-filemanager] |
| $ git remote -v |
| origin https://github.com/EsupPortail/esup-filemanager.git (fetch) |
| origin https://github.com/EsupPortail/esup-filemanager.git (push) |
| [esup@esup4dz ~/portlet/esup-filemanager] |
| $ tig |
| [esup@esup4dz ~/portlet/esup-filemanager] |
| $ git tag |
| esup-filemanager-2.1.0 |
| esup-filemanager-2.2.0 |
| esup-filemanager-2.2.1 |
| esup-filemanager-2.2.2 |
| esup-filemanager-3.0.0 |
| esup-filemanager-3.1.0 |
| |
| </code> |
| |
| on se met le dernier tag/release plutot que de rester sur les "nigthly build" (cf tig) |
| et on met notre propre branche . |
| <code> |
| [esup@esup4dz ~/portlet/esup-filemanager] |
| $ git checkout -b esup-filemanager-3.1.0-tem-tsp esup-filemanager-3.1.0 |
| Switched to a new branch 'esup-filemanager-3.1.0-tem-tsp' |
| |
| [esup@esup4dz ~/portlet/esup-filemanager] |
| $ git branch |
| * esup-filemanager-3.1.0-tem-tsp |
| master |
| </code> |
| |
| ==== test localhost avec pluto ===== |
| |
| pluto container de portlet (tomcat container de servlet ...) permet de tester la portlet simplement |
| |
| on lance la portlet dans la container pluto |
| |
| <code> |
| [esup@esup4dz ~/portlet/esup-filemanager] |
| $ mvn clean portlet-prototyping:run |
| [INFO] Scanning for projects... |
| Downloading: http://repo.jlehtinen.net/maven2/org/apache/maven/plugins/maven-compiler-plugin/2.5.1/maven-compiler-plugin-2.5.1.pom |
| |
| May 26, 2016 12:05:06 PM org.apache.pluto.driver.PortalStartupListener contextInitialized |
| INFO: Starting up Pluto Portal Driver. . . |
| May 26, 2016 12:05:06 PM org.springframework.web.context.ContextLoader initWebApplicationContext |
| INFO: Root WebApplicationContext: initialization started |
| May 26, 2016 12:05:06 PM org.mortbay.log.Slf4jLog info |
| INFO: Loading Spring root WebApplicationContext |
| May 26, 2016 12:05:06 PM org.springframework.core.CollectionFactory <clinit> |
| INFO: JDK 1.4+ collections available |
| May 26, 2016 12:05:06 PM org.springframework.beans.factory.xml.XmlBeanDefinitionReader loadBeanDefinitions |
| INFO: Loading XML bean definitions from ServletContext resource [/WEB-INF/pluto-portal-driver-services-config.xml] |
| May 26, 2016 12:05:06 PM org.springframework.context.support.AbstractRefreshableApplicationContext refreshBeanFactory |
| INFO: Bean factory for application context [Root WebApplicationContext]: org.springframework.beans.factory.support.DefaultListableBeanFactory defining beans [PortletContainer,PlutoServices,PortalDriverServices,PortalContext,DriverConfiguration,AdminConfiguration,ResourceConfigFactory,PortalURLParser,RenderConfigService,SupportedModesService,SupportedWindowStatesService,PortletRequestContextService,EventCoordinationService,FilterManagerService,PortletURLListenerService,PortletContextService,RequestDispatcherService]; root of BeanFactory hierarchy |
| May 26, 2016 12:05:06 PM org.springframework.context.support.AbstractApplicationContext refresh |
| INFO: 17 beans defined in application context [Root WebApplicationContext] |
| May 26, 2016 12:05:06 PM org.springframework.context.support.AbstractApplicationContext initMessageSource |
| INFO: Unable to locate MessageSource with name 'messageSource': using default [org.springframework.context.support.DelegatingMessageSource@a54379e] |
| May 26, 2016 12:05:06 PM org.springframework.context.support.AbstractApplicationContext initApplicationEventMulticaster |
| INFO: Unable to locate ApplicationEventMulticaster with name 'applicationEventMulticaster': using default [org.springframework.context.event.SimpleApplicationEventMulticaster@7b93bc9d] |
| May 26, 2016 12:05:06 PM org.springframework.ui.context.support.UiApplicationContextUtils initThemeSource |
| INFO: Unable to locate ThemeSource with name 'themeSource': using default [org.springframework.ui.context.support.ResourceBundleThemeSource@65ad7f3f] |
| May 26, 2016 12:05:06 PM org.springframework.beans.factory.support.DefaultListableBeanFactory preInstantiateSingletons |
| INFO: Pre-instantiating singletons in factory [org.springframework.beans.factory.support.DefaultListableBeanFactory defining beans [PortletContainer,PlutoServices,PortalDriverServices,PortalContext,DriverConfiguration,AdminConfiguration,ResourceConfigFactory,PortalURLParser,RenderConfigService,SupportedModesService,SupportedWindowStatesService,PortletRequestContextService,EventCoordinationService,FilterManagerService,PortletURLListenerService,PortletContextService,RequestDispatcherService]; root of BeanFactory hierarchy] |
| May 26, 2016 12:05:06 PM net.jlehtinen.portlet.prototyping.portal.PortletPrototypingRenderConfigServiceImpl addPortletPrototypingPage |
| INFO: Configuring Pluto portal for portlet prototyping |
| May 26, 2016 12:05:06 PM net.jlehtinen.portlet.prototyping.portal.PortletPrototypingRenderConfigServiceImpl addPortletPrototypingPage |
| INFO: Portlet context path = /esup-filemanager |
| May 26, 2016 12:05:06 PM net.jlehtinen.portlet.prototyping.portal.PortletPrototypingRenderConfigServiceImpl addPortletPrototypingPage |
| INFO: Portlet names = esup-filemanager |
| May 26, 2016 12:05:06 PM net.jlehtinen.portlet.prototyping.portal.PortletPrototypingRenderConfigServiceImpl addPortletPrototypingPage |
| INFO: Configured 1 portlets |
| May 26, 2016 12:05:06 PM org.apache.pluto.container.impl.PortletContainerImpl infoWithName |
| INFO: Portlet Container [pluto-portal-driver]: Container initialized successfully. |
| May 26, 2016 12:05:06 PM org.springframework.web.context.ContextLoader initWebApplicationContext |
| INFO: Using context class [org.springframework.web.context.support.XmlWebApplicationContext] for root WebApplicationContext |
| May 26, 2016 12:05:06 PM org.springframework.web.context.ContextLoader initWebApplicationContext |
| INFO: Root WebApplicationContext: initialization completed in 408 ms |
| May 26, 2016 12:05:06 PM org.apache.pluto.driver.PortalStartupListener contextInitialized |
| INFO: Initializing Portlet Container. . . |
| May 26, 2016 12:05:06 PM org.apache.pluto.driver.PortalStartupListener contextInitialized |
| INFO: Pluto portlet container started. |
| May 26, 2016 12:05:06 PM org.apache.pluto.driver.PortalStartupListener contextInitialized |
| INFO: ********** Pluto Portal Driver Started ********** |
| |
| |
| May 26, 2016 12:05:06 PM org.mortbay.log.Slf4jLog info |
| INFO: Started SelectChannelConnector@0.0.0.0:8080 |
| [INFO] Started Jetty Server |
| May 26, 2016 12:05:07 PM org.apache.pluto.driver.container.PortletContextManager fireRegistered |
| INFO: Portlet Context '/pluto' registered. |
| May 26, 2016 12:05:07 PM org.apache.pluto.driver.container.PortletContextManager register |
| INFO: Registered portlet application for context '/pluto' |
| May 26, 2016 12:05:07 PM org.apache.pluto.driver.container.PortletContextManager register |
| INFO: Registering 3 portlets for context //pluto |
| May 26, 2016 12:05:07 PM org.apache.pluto.driver.container.PortletContextManager register |
| INFO: Portlet application for context '/pluto' already registered. |
| May 26, 2016 12:05:07 PM org.apache.pluto.driver.container.PortletContextManager register |
| INFO: Portlet application for context '/pluto' already registered. |
| May 26, 2016 12:05:16 PM org.apache.pluto.driver.container.PortletContextManager fireRegistered |
| INFO: Portlet Context '/esup-filemanager' registered. |
| May 26, 2016 12:05:16 PM org.apache.pluto.driver.container.PortletContextManager register |
| INFO: Registered portlet application for context '/esup-filemanager' |
| May 26, 2016 12:05:16 PM org.apache.pluto.driver.container.PortletContextManager register |
| INFO: Registering 1 portlets for context //esup-filemanager |
| May 26, 2016 12:05:16 PM org.mortbay.log.Slf4jLog info |
| INFO: Initializing Spring FrameworkPortlet 'esup-filemanager' |
| |
| </code> |
| |
| c'est accessible via localhost:8080/ (mais si tomcat tourne conflit de port => arreter tomcat ) |
| |
| 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** |
| |
| |
| ==== esup-filemanager 2==== |
| |
=== Sources === | === Sources === |
| |
| |
==== probe ==== | ===== probe ===== |
| |
https://github.com/psi-probe/psi-probe | https://github.com/psi-probe/psi-probe |
[esup@esup4dz ~/portlet/psi-probe] | [esup@esup4dz ~/portlet/psi-probe] |
</code> | </code> |
| |
| installation manuelle |
| |
| <code> |
| [esup@esup4dz ~/portlet/psi-probe] |
| $ cd /var/lib/tomcat/webapps/ |
| [esup@esup4dz /var/lib/tomcat/webapps] |
| $ mkdir probe |
| [esup@esup4dz /var/lib/tomcat/webapps] |
| $ cd probe/ |
| [esup@esup4dz /var/lib/tomcat/webapps/probe] |
| $ unzip /home/esup/portlet/psi-probe/web/target/probe.war |
| ... |
| inflating: META-INF/maven/com.googlecode.psiprobe/web/pom.xml |
| inflating: META-INF/maven/com.googlecode.psiprobe/web/pom.properties |
| |
| </code> |
| |
| definition du context |
| |
| <code> |
| [esup@esup4dz /var/lib/tomcat/webapps/probe] |
| $ cp WEB-INF/context.xml /etc/tomcat/Catalina/localhost/probe.xml |
| </code> |
| |
| reload du context |
| |
| <code> |
| [root@esup4dz ~] |
| $ systemctl restart tomcat.service |
| </code> |
| |
| acces |
| |
| http://esup4dz.tem-tsp.eu:8080/probe/ |
| |
| ===== git update ====== |
| |
| une correction sur simplecontent portlet a été corrigé sur la branche master, on v a mettre a jour notre branche maison dessus |
| |
| <code> |
| [esup@esup4dz ~/esup-uportal] |
| $ git pull origin master |
| remote: Counting objects: 3, done. |
| remote: Compressing objects: 100% (3/3), done. |
| remote: Total 3 (delta 0), reused 0 (delta 0), pack-reused 0 |
| Unpacking objects: 100% (3/3), done. |
| From git://github.com/EsupPortail/esup-uportal |
| * branch master -> FETCH_HEAD |
| Auto-merging pom.xml |
| CONFLICT (content): Merge conflict in pom.xml |
| Automatic merge failed; fix conflicts and then commit the result. |
| </code> |
| |
| Merger pom.xml |
| |
| <code> |
| <!-- POSTGRESQL driver. Uncomment if you need to --> |
| <<<<<<< HEAD |
| <jdbc.groupId>postgresql</jdbc.groupId> |
| <jdbc.artifactId>postgresql</jdbc.artifactId> |
| <jdbc.version>9.0-801.jdbc4</jdbc.version> |
| ======= |
| <!-- |
| <jdbc.groupId>org.postgresql</jdbc.groupId> |
| <jdbc.artifactId>postgresql</jdbc.artifactId> |
| <jdbc.version>9.3-1102-jdbc41</jdbc.version> |
| --> |
| >>>>>>> fb40a9781a992e4501713691bcc9cc14b91e8ed9 |
| |
| </code> |
| |
| on commit localement |
| |
| |
| <code> |
| [esup@esup4dz ~/esup-uportal] |
| $ git commit -a -m "mise a jour sur master de pom.xml pour drivers postgres simplecontent ... JP " |
| [ecampusdz 726fd1f] mise a jour sur master de pom.xml pour drivers postgres simplecontent ... JP |
| </code> |
| |
| tig affiche bien tout ça |
| |
| <code> |
| 2015-05-22 09:49 jehan M─┐ [ecampusdz] mise a jour sur master de pom.xml pour drivers postgres simplecontent ... JP |
| 2015-05-22 09:03 vincent │ o MAJ postgresql jdbc version - notamment pour issue sur CMSPLT - #114 |
| 2015-05-20 18:12 jehan o │ activation driver postgresql dans pom.xml JP |
| </code> |
| |
| |