This shows you the differences between two versions of the page.
Both sides previous revision Previous revision Next revision | Previous revision | ||
docpublic:systemes:esup:esup_socle_4_c7 [2015/05/22 07:50] procacci@tem-tsp.eu [probe] |
docpublic:systemes:esup:esup_socle_4_c7 [2016/05/27 13:14] (current) procacci@tem-tsp.eu [parametrage] |
||
---|---|---|---|
Line 207: | Line 207: | ||
http:// | http:// | ||
+ | |||
+ | |||
+ | ==== pb demarrage postgres ===== | ||
+ | |||
+ | https:// | ||
+ | |||
+ | < | ||
+ | $ systemctl status postgresql.service | ||
+ | * postgresql.service - PostgreSQL database server | ||
+ | | ||
+ | | ||
+ | Process: 326 ExecStart=/ | ||
+ | May 25 14:58:06 esup4dz pg_ctl[326]: | ||
+ | May 25 14:58:06 esup4dz pg_ctl[326]: | ||
+ | May 25 14:58:06 esup4dz pg_ctl[326]: | ||
+ | May 25 14:58:06 esup4dz pg_ctl[326]: | ||
+ | May 25 14:58:07 esup4dz pg_ctl[326]: | ||
+ | May 25 14:58:07 esup4dz pg_ctl[326]: | ||
+ | May 25 14:58:07 esup4dz systemd[1]: postgresql.service: | ||
+ | </ | ||
+ | |||
+ | |||
+ | resolution : http:// | ||
+ | |||
+ | |||
+ | reduction du nombre de connexion max par defaut et augmentation shmmax | ||
+ | < | ||
+ | [root@esup4dz /var/log] | ||
+ | $ grep max_connections / | ||
+ | max_connections = 25 # (change requires restart) | ||
+ | |||
+ | |||
+ | |||
+ | $ cat / | ||
+ | 33554432 | ||
+ | [root@esup4dz /var/log] | ||
+ | $ sysctl -w kernel.shmmax=44554432 | ||
+ | kernel.shmmax = 44554432 | ||
+ | [root@esup4dz /var/log] | ||
+ | $ cat / | ||
+ | 44554432 | ||
+ | |||
+ | $ systemctl start postgresql.service | ||
+ | [root@esup4dz /var/log] | ||
+ | $ systemctl status postgresql.service | ||
+ | * postgresql.service - PostgreSQL database server | ||
+ | | ||
+ | | ||
+ | </ | ||
===== Pre-requis Java ===== | ===== Pre-requis Java ===== | ||
Line 4642: | Line 4691: | ||
</ | </ | ||
- | ==== esup-filemanager ==== | + | |
+ | ===== esup-filemanager 3 ===== | ||
+ | |||
+ | https:// | ||
+ | |||
+ | on va utiliser git pour recuperer le source | ||
+ | |||
+ | < | ||
+ | [esup@esup4dz ~/ | ||
+ | $ git clone https:// | ||
+ | Cloning into ' | ||
+ | remote: Counting objects: 5383, done. | ||
+ | remote: Total 5383 (delta 0), reused 0 (delta 0), pack-reused 5383 | ||
+ | Receiving objects: 100% (5383/ | ||
+ | Resolving deltas: 100% (1908/ | ||
+ | [esup@esup4dz ~/ | ||
+ | $ cd esup-filemanager/ | ||
+ | [esup@esup4dz ~/ | ||
+ | $ ls | ||
+ | LICENSE | ||
+ | </ | ||
+ | |||
+ | visualisation de l' | ||
+ | < | ||
+ | [esup@esup4dz ~/ | ||
+ | $ git config --global color.ui auto | ||
+ | [esup@esup4dz ~/ | ||
+ | $ git branch -a | ||
+ | * master | ||
+ | remotes/ | ||
+ | remotes/ | ||
+ | remotes/ | ||
+ | |||
+ | [esup@esup4dz ~/ | ||
+ | $ git remote -v | ||
+ | origin https:// | ||
+ | origin https:// | ||
+ | [esup@esup4dz ~/ | ||
+ | $ tig | ||
+ | [esup@esup4dz ~/ | ||
+ | $ 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 | ||
+ | |||
+ | </ | ||
+ | |||
+ | on se met le dernier tag/release plutot que de rester sur les " | ||
+ | et on met notre propre branche . | ||
+ | < | ||
+ | [esup@esup4dz ~/ | ||
+ | $ git checkout -b esup-filemanager-3.1.0-tem-tsp esup-filemanager-3.1.0 | ||
+ | Switched to a new branch ' | ||
+ | |||
+ | [esup@esup4dz ~/ | ||
+ | $ git branch | ||
+ | * esup-filemanager-3.1.0-tem-tsp | ||
+ | master | ||
+ | </ | ||
+ | |||
+ | ==== 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 | ||
+ | |||
+ | < | ||
+ | [esup@esup4dz ~/ | ||
+ | $ mvn clean portlet-prototyping: | ||
+ | [INFO] Scanning for projects... | ||
+ | Downloading: | ||
+ | |||
+ | 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: | ||
+ | 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 < | ||
+ | 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 [/ | ||
+ | May 26, 2016 12:05:06 PM org.springframework.context.support.AbstractRefreshableApplicationContext refreshBeanFactory | ||
+ | INFO: Bean factory for application context [Root WebApplicationContext]: | ||
+ | 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 ' | ||
+ | May 26, 2016 12:05:06 PM org.springframework.context.support.AbstractApplicationContext initApplicationEventMulticaster | ||
+ | INFO: Unable to locate ApplicationEventMulticaster with name ' | ||
+ | May 26, 2016 12:05:06 PM org.springframework.ui.context.support.UiApplicationContextUtils initThemeSource | ||
+ | INFO: Unable to locate ThemeSource with name ' | ||
+ | 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, | ||
+ | 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 = / | ||
+ | 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]: | ||
+ | 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: | ||
+ | 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: | ||
+ | [INFO] Started Jetty Server | ||
+ | May 26, 2016 12:05:07 PM org.apache.pluto.driver.container.PortletContextManager fireRegistered | ||
+ | INFO: Portlet Context '/ | ||
+ | May 26, 2016 12:05:07 PM org.apache.pluto.driver.container.PortletContextManager register | ||
+ | INFO: Registered portlet application for context '/ | ||
+ | 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 '/ | ||
+ | May 26, 2016 12:05:07 PM org.apache.pluto.driver.container.PortletContextManager register | ||
+ | INFO: Portlet application for context '/ | ||
+ | May 26, 2016 12:05:16 PM org.apache.pluto.driver.container.PortletContextManager fireRegistered | ||
+ | INFO: Portlet Context '/ | ||
+ | May 26, 2016 12:05:16 PM org.apache.pluto.driver.container.PortletContextManager register | ||
+ | INFO: Registered portlet application for context '/ | ||
+ | May 26, 2016 12:05:16 PM org.apache.pluto.driver.container.PortletContextManager register | ||
+ | INFO: Registering 1 portlets for context // | ||
+ | May 26, 2016 12:05:16 PM org.mortbay.log.Slf4jLog info | ||
+ | INFO: Initializing Spring FrameworkPortlet ' | ||
+ | |||
+ | </ | ||
+ | |||
+ | c'est accessible via localhost: | ||
+ | |||
+ | on peux aussi y acceder sur le FQDN http:// | ||
+ | |||
+ | ne pas tenir compte du " | ||
+ | |||
+ | < | ||
+ | Error 404 - Not Found. | ||
+ | No context on this server matched or handled this request. | ||
+ | Contexts known to this server are: | ||
+ | |||
+ | / | ||
+ | /pluto ---> org.mortbay.jetty.webapp.WebAppContext@7a3fafbd{/ | ||
+ | </ | ||
+ | |||
+ | ==== parametrage ===== | ||
+ | |||
+ | definir le serveur cas | ||
+ | |||
+ | < | ||
+ | [esup@esup4dz ~/ | ||
+ | $ vim ./ | ||
+ | [esup@esup4dz ~/ | ||
+ | $ cp ./ | ||
+ | [esup@esup4dz ~/ | ||
+ | $ vim ./ | ||
+ | [esup@esup4dz ~/ | ||
+ | $ diff -ur ./ | ||
+ | --- ./ | ||
+ | +++ ./ | ||
+ | @@ -80,7 +80,7 @@ | ||
+ | < | ||
+ | < | ||
+ | < | ||
+ | - < | ||
+ | + < | ||
+ | </ | ||
+ | </ | ||
+ | </ | ||
+ | |||
+ | definir les drives que l'on vaux afficher dans le filemanager | ||
+ | |||
+ | < | ||
+ | [esup@esup4dz ~/ | ||
+ | $ cp ./ | ||
+ | [esup@esup4dz ~/ | ||
+ | $ vim ./ | ||
+ | </ | ||
+ | |||
+ | |||
+ | === compilation === | ||
+ | |||
+ | < | ||
+ | [esup@esup4dz ~/ | ||
+ | $ mvn clean package | ||
+ | [INFO] Scanning for projects... | ||
+ | [INFO] | ||
+ | [INFO] ------------------------------------------------------------------------ | ||
+ | [INFO] Building esup-filemanager 3.1.0 | ||
+ | [INFO] ------------------------------------------------------------------------ | ||
+ | Downloading: | ||
+ | ... | ||
+ | [INFO] Exploding webapp... | ||
+ | [INFO] Assembling webapp esup-filemanager in / | ||
+ | [INFO] Copy webapp webResources to / | ||
+ | [INFO] Generating war / | ||
+ | [INFO] Building 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] ------------------------------------------------------------------------ | ||
+ | </ | ||
+ | |||
+ | === 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 | ||
+ | |||
+ | < | ||
+ | [esup@esup4dz ~/ | ||
+ | $ cd / | ||
+ | </ | ||
+ | |||
+ | puis deploy via ant deployPortletApp | ||
+ | |||
+ | < | ||
+ | [esup@esup4dz ~/ | ||
+ | $ ant deployPortletApp -DportletApp=/ | ||
+ | Buildfile: / | ||
+ | |||
+ | checkForTomcat: | ||
+ | |||
+ | deployPortletApp: | ||
+ | |||
+ | install-parent-pom: | ||
+ | [artifact: | ||
+ | [touch] Creating / | ||
+ | | ||
+ | |||
+ | mvn: | ||
+ | | ||
+ | | ||
+ | | ||
+ | | ||
+ | | ||
+ | | ||
+ | | ||
+ | | ||
+ | | ||
+ | | ||
+ | | ||
+ | | ||
+ | | ||
+ | | ||
+ | | ||
+ | | ||
+ | | ||
+ | | ||
+ | | ||
+ | | ||
+ | | ||
+ | | ||
+ | | ||
+ | | ||
+ | | ||
+ | | ||
+ | | ||
+ | | ||
+ | | ||
+ | | ||
+ | | ||
+ | | ||
+ | | ||
+ | | ||
+ | | ||
+ | | ||
+ | | ||
+ | | ||
+ | | ||
+ | | ||
+ | | ||
+ | | ||
+ | | ||
+ | | ||
+ | | ||
+ | | ||
+ | | ||
+ | [assemblePortlet] Assembling '/ | ||
+ | [assemblePortlet] SLF4J: Failed to load class " | ||
+ | [assemblePortlet] SLF4J: Defaulting to no-operation (NOP) logger implementation | ||
+ | [assemblePortlet] SLF4J: See http:// | ||
+ | |||
+ | fastWarDeploy: | ||
+ | | ||
+ | | ||
+ | [mkdir] Created dir: / | ||
+ | [unwar] Expanding: / | ||
+ | | ||
+ | | ||
+ | |||
+ | BUILD SUCCESSFUL | ||
+ | Total time: 10 seconds | ||
+ | </ | ||
+ | |||
+ | === visualisation Cmd=edit option sur l' | ||
+ | |||
+ | voir les options de personnalisation sur l' | ||
+ | |||
+ | https:// | ||
+ | |||
+ | |||
+ | ==== esup-filemanager | ||
=== Sources === | === Sources === |