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 [2016/05/26 10:02] procacci@tem-tsp.eu [esup-filemanager] |
docpublic:systemes:esup:esup_socle_4_c7 [2016/05/27 13:14] (current) procacci@tem-tsp.eu [parametrage] |
||
|---|---|---|---|
| Line 4754: | Line 4754: | ||
| </ | </ | ||
| + | ==== 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:// | ||