Alfresco - Liferay : intégration de portlet avec webscript

cancel
Showing results for 
Search instead for 
Did you mean: 
zomurn
Member II

Alfresco - Liferay : intégration de portlet avec webscript

Bonjour,

Depuis quelques jours, je cherche à faire fonctionner le webscript cmisrepo déjà présent dans le alfresco.war
Alors, en la matière j'ai de très bonnes sources :

http://blogs.alfresco.com/wp/luissala/2010/02/24/new-portlet-development-options-for-alfresco/
et
http://blogs.rivetlogic.com/aelnattar/

Cependant dans le premier lien, j'ai suivi le tutorial pas à pas et ça ne marche pas. En particulier le webscript cmisrepo.* auquel il fait référence n'existe que dans alfresco.war (en remote donc) alors que lui le précise dans share.war - Je précise que je travaille sur liferay 6 GA3 (la dernière) et Alfresco Community 3.3g (la dernière). J'ai pensé qu'il fallait copier le webscript dans share.war. Mais cela ne marche pas mieux.
Alors dans le share.war, j'ai copier/coller le webscript "cmisrepo" du alfresco.war, et en plus j'ai cree une page Share avec le template-instance et template-type qui va bien. Dans le fichier template .ftl de la page, je reference le webscript avec :
<@region id="cmisrepo" scope="page" protected=true />
Ce webscript je le vois bien dans /share/service/index.  Le contexte est donc /share/page et pas /share/service alors je ne sais pas si cela pose problème. Quand je clique sur le lien GET dans /share/service/index (via le share.war deployé dans le liferay), le rendu .ftl plante. J'ai la même erreur d'affichage au sein de la portlet :

12:51:49,983  ERROR [extensions.webscripts.AbstractRuntime] Exception from executeScript - redirecting to status template error: 08030001 Failed to load script 'classpath*:alfresco/site-webscripts/org/alfresco/components/cmisrepo/cmisrepo.get.js': 08030000 com.ctc.wstx.exc.WstxIOException: Server returned HTTP response code: 503 for URL: http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd
org.springframework.extensions.webscripts.WebScriptException: 08030001 Failed to load script 'classpath*:alfresco/site-webscripts/org/alfresco/components/cmisrepo/cmisrepo.get.js': 08030000 com.ctc.wstx.exc.WstxIOException: Server returned HTTP response code: 503 for URL: http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd
   at org.springframework.extensions.webscripts.processor.JSScriptProcessor.executeScript(JSScriptProcessor.java:182)
   at org.springframework.extensions.webscripts.AbstractWebScript.executeScript(AbstractWebScript.java:971)
   at org.springframework.extensions.webscripts.DeclarativeWebScript.execute(DeclarativeWebScript.java:86)
   at org.springframework.extensions.webscripts.PresentationContainer.executeScript(PresentationContainer.java:69)
   at org.springframework.extensions.webscripts.LocalWebScriptRuntimeContainer.executeScript(LocalWebScriptRuntimeContainer.java:203)
   at org.springframework.extensions.webscripts.AbstractRuntime.executeScript(AbstractRuntime.java:319)
   at org.springframework.extensions.webscripts.AbstractRuntime.executeScript(AbstractRuntime.java:177)
   at org.springframework.extensions.webscripts.servlet.mvc.WebScriptView.renderMergedOutputModel(WebScriptView.java:99)
   at org.springframework.web.servlet.view.AbstractView.render(AbstractView.java:250)
   at org.springframework.web.servlet.DispatcherServlet.render(DispatcherServlet.java:1060)
   at org.springframework.web.servlet.DispatcherServlet.doDispatch(DispatcherServlet.java:798)
   at org.springframework.web.servlet.DispatcherServlet.doService(DispatcherServlet.java:716)
   at org.springframework.web.servlet.FrameworkServlet.processRequest(FrameworkServlet.java:647)
   at org.springframework.web.servlet.FrameworkServlet.doGet(FrameworkServlet.java:552)
   at javax.servlet.http.HttpServlet.service(HttpServlet.java:617)
   at javax.servlet.http.HttpServlet.service(HttpServlet.java:717)
   at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:290)
   at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:206)
   at org.apache.catalina.core.ApplicationDispatcher.invoke(ApplicationDispatcher.java:646)
   at org.apache.catalina.core.ApplicationDispatcher.doInclude(ApplicationDispatcher.java:551)
   at org.apache.catalina.core.ApplicationDispatcher.include(ApplicationDispatcher.java:488)
   at com.liferay.portlet.PortletRequestDispatcherImpl.dispatch(PortletRequestDispatcherImpl.java:315)
   at com.liferay.portlet.PortletRequestDispatcherImpl.include(PortletRequestDispatcherImpl.java:133)
   at org.alfresco.web.portlet.ProxyPortlet.doView(ProxyPortlet.java:159)
   at org.alfresco.web.portlet.ProxyPortlet.render(ProxyPortlet.java:89)
   at com.liferay.portlet.FilterChainImpl.doFilter(FilterChainImpl.java:101)
   at com.liferay.portal.kernel.portlet.PortletFilterUtil.doFilter(PortletFilterUtil.java:64)
   at com.liferay.portal.kernel.servlet.PortletServlet.service(PortletServlet.java:92)
   at javax.servlet.http.HttpServlet.service(HttpServlet.java:717)
   at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:290)
   at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:206)
   at org.apache.catalina.core.ApplicationDispatcher.invoke(ApplicationDispatcher.java:646)
   at org.apache.catalina.core.ApplicationDispatcher.doInclude(ApplicationDispatcher.java:551)
   at org.apache.catalina.core.ApplicationDispatcher.include(ApplicationDispatcher.java:488)
   at com.liferay.portlet.InvokerPortletImpl.invoke(InvokerPortletImpl.java:638)
   at com.liferay.portlet.InvokerPortletImpl.invokeRender(InvokerPortletImpl.java:723)
   at com.liferay.portlet.InvokerPortletImpl.render(InvokerPortletImpl.java:425)
   at org.apache.jsp.html.portal.render_005fportlet_jsp._jspService(Unknown Source)
   at org.apache.jasper.runtime.HttpJspBase.service(HttpJspBase.java:70)
   at javax.servlet.http.HttpServlet.service(HttpServlet.java:717)
   at org.apache.jasper.servlet.JspServletWrapper.service(JspServletWrapper.java:377)
   at org.apache.jasper.servlet.JspServlet.serviceJspFile(JspServlet.java:313)
   at org.apache.jasper.servlet.JspServlet.service(JspServlet.java:260)
   at javax.servlet.http.HttpServlet.service(HttpServlet.java:717)
   at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:290)
   at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:206)
   at org.apache.catalina.core.ApplicationDispatcher.invoke(ApplicationDispatcher.java:646)
   at org.apache.catalina.core.ApplicationDispatcher.doInclude(ApplicationDispatcher.java:551)
   at org.apache.catalina.core.ApplicationDispatcher.include(ApplicationDispatcher.java:488)
   at com.liferay.portal.util.PortalImpl.renderPortlet(PortalImpl.java:3723)
   at com.liferay.portal.util.PortalUtil.renderPortlet(PortalUtil.java:1180)
   at com.liferay.portlet.layoutconfiguration.util.RuntimePortletUtil.processPortlet(RuntimePortletUtil.java:160)
   at com.liferay.portlet.layoutconfiguration.util.RuntimePortletUtil.processPortlet(RuntimePortletUtil.java:94)
   at com.liferay.portlet.layoutconfiguration.util.RuntimePortletUtil.processTemplate(RuntimePortletUtil.java:256)
   at com.liferay.portlet.layoutconfiguration.util.RuntimePortletUtil.processTemplate(RuntimePortletUtil.java:181)
   at org.apache.jsp.html.portal.layout.view.portlet_jsp._jspService(Unknown Source)
   at org.apache.jasper.runtime.HttpJspBase.service(HttpJspBase.java:70)
   at javax.servlet.http.HttpServlet.service(HttpServlet.java:717)
   at org.apache.jasper.servlet.JspServletWrapper.service(JspServletWrapper.java:377)
   at org.apache.jasper.servlet.JspServlet.serviceJspFile(JspServlet.java:313)
   at org.apache.jasper.servlet.JspServlet.service(JspServlet.java:260)
   at javax.servlet.http.HttpServlet.service(HttpServlet.java:717)
   at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:290)
   at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:206)
   at org.apache.catalina.core.ApplicationDispatcher.invoke(ApplicationDispatcher.java:646)
   at org.apache.catalina.core.ApplicationDispatcher.doInclude(ApplicationDispatcher.java:551)
   at org.apache.catalina.core.ApplicationDispatcher.include(ApplicationDispatcher.java:488)
   at com.liferay.portal.action.LayoutAction.includeLayoutContent(LayoutAction.java:361)
   at com.liferay.portal.action.LayoutAction.processLayout(LayoutAction.java:618)
   at com.liferay.portal.action.LayoutAction.execute(LayoutAction.java:229)
   at org.apache.struts.action.RequestProcessor.processActionPerform(RequestProcessor.java:431)
   at org.apache.struts.action.RequestProcessor.process(RequestProcessor.java:236)
   at com.liferay.portal.struts.PortalRequestProcessor.process(PortalRequestProcessor.java:152)
   at org.apache.struts.action.ActionServlet.process(ActionServlet.java:1196)
   at org.apache.struts.action.ActionServlet.doGet(ActionServlet.java:414)
   at javax.servlet.http.HttpServlet.service(HttpServlet.java:617)
   at com.liferay.portal.servlet.MainServlet.callParentService(MainServlet.java:508)
   at com.liferay.portal.servlet.MainServlet.service(MainServlet.java:485)
   at javax.servlet.http.HttpServlet.service(HttpServlet.java:717)
   at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:290)
   at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:206)
   at com.liferay.portal.kernel.servlet.BaseFilter.processFilter(BaseFilter.java:196)
   at com.liferay.portal.kernel.servlet.BaseFilter.doFilter(BaseFilter.java:126)
   at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:235)
   at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:206)
   at com.liferay.portal.kernel.servlet.BaseFilter.processFilter(BaseFilter.java:196)
   at com.liferay.portal.kernel.servlet.BaseFilter.doFilter(BaseFilter.java:126)
   at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:235)
   at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:206)
   at com.liferay.portal.kernel.servlet.BaseFilter.processFilter(BaseFilter.java:196)
   at com.liferay.portal.servlet.filters.strip.StripFilter.processFilter(StripFilter.java:309)
   at com.liferay.portal.kernel.servlet.BaseFilter.doFilter(BaseFilter.java:123)
   at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:235)
   at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:206)
   at com.liferay.portal.kernel.servlet.BaseFilter.processFilter(BaseFilter.java:196)
   at com.liferay.portal.kernel.servlet.BaseFilter.doFilter(BaseFilter.java:126)
   at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:235)
   at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:206)
   at com.liferay.portal.kernel.servlet.BaseFilter.processFilter(BaseFilter.java:196)
   at com.liferay.portal.servlet.filters.gzip.GZipFilter.processFilter(GZipFilter.java:137)
   at com.liferay.portal.kernel.servlet.BaseFilter.doFilter(BaseFilter.java:123)
   at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:235)
   at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:206)
   at com.liferay.portal.kernel.servlet.BaseFilter.processFilter(BaseFilter.java:196)
   at com.liferay.portal.servlet.filters.secure.SecureFilter.processFilter(SecureFilter.java:182)
   at com.liferay.portal.kernel.servlet.BaseFilter.doFilter(BaseFilter.java:123)
   at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:235)
   at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:206)
   at com.liferay.portal.kernel.servlet.BaseFilter.processFilter(BaseFilter.java:196)
   at com.liferay.portal.servlet.filters.autologin.AutoLoginFilter.processFilter(AutoLoginFilter.java:254)
   at com.liferay.portal.kernel.servlet.BaseFilter.doFilter(BaseFilter.java:123)
   at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:235)
   at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:206)
   at org.apache.catalina.core.ApplicationDispatcher.invoke(ApplicationDispatcher.java:646)
   at org.apache.catalina.core.ApplicationDispatcher.processRequest(ApplicationDispatcher.java:436)
   at org.apache.catalina.core.ApplicationDispatcher.doForward(ApplicationDispatcher.java:374)
   at org.apache.catalina.core.ApplicationDispatcher.forward(ApplicationDispatcher.java:302)
   at com.liferay.portal.servlet.FriendlyURLServlet.service(FriendlyURLServlet.java:133)
   at javax.servlet.http.HttpServlet.service(HttpServlet.java:717)
   at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:290)
   at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:206)
   at com.liferay.portal.kernel.servlet.BaseFilter.processFilter(BaseFilter.java:196)
   at com.liferay.portal.kernel.servlet.BaseFilter.doFilter(BaseFilter.java:126)
   at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:235)
   at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:206)
   at com.liferay.portal.kernel.servlet.BaseFilter.processFilter(BaseFilter.java:196)
   at com.liferay.portal.kernel.servlet.BaseFilter.doFilter(BaseFilter.java:126)
   at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:235)
   at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:206)
   at com.liferay.portal.kernel.servlet.BaseFilter.processFilter(BaseFilter.java:196)
   at com.liferay.portal.servlet.filters.strip.StripFilter.processFilter(StripFilter.java:261)
   at com.liferay.portal.kernel.servlet.BaseFilter.doFilter(BaseFilter.java:123)
   at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:235)
   at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:206)
   at com.liferay.portal.kernel.servlet.BaseFilter.processFilter(BaseFilter.java:196)
   at com.liferay.portal.kernel.servlet.BaseFilter.doFilter(BaseFilter.java:126)
   at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:235)
   at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:206)
   at com.liferay.portal.kernel.servlet.BaseFilter.processFilter(BaseFilter.java:196)
   at com.liferay.portal.servlet.filters.gzip.GZipFilter.processFilter(GZipFilter.java:126)
   at com.liferay.portal.kernel.servlet.BaseFilter.doFilter(BaseFilter.java:123)
   at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:235)
   at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:206)
   at com.liferay.portal.kernel.servlet.BaseFilter.processFilter(BaseFilter.java:196)
   at com.liferay.portal.servlet.filters.secure.SecureFilter.processFilter(SecureFilter.java:182)
   at com.liferay.portal.kernel.servlet.BaseFilter.doFilter(BaseFilter.java:123)
   at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:235)
   at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:206)
   at com.liferay.portal.kernel.servlet.BaseFilter.processFilter(BaseFilter.java:196)
   at com.liferay.portal.servlet.filters.i18n.I18nFilter.processFilter(I18nFilter.java:221)
   at com.liferay.portal.kernel.servlet.BaseFilter.doFilter(BaseFilter.java:123)
   at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:235)
   at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:206)
   at com.liferay.portal.kernel.servlet.BaseFilter.processFilter(BaseFilter.java:196)
   at com.liferay.portal.kernel.servlet.BaseFilter.doFilter(BaseFilter.java:126)
   at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:235)
   at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:206)
   at com.liferay.portal.kernel.servlet.BaseFilter.processFilter(BaseFilter.java:196)
   at com.liferay.portal.servlet.filters.cache.CacheFilter.processFilter(CacheFilter.java:385)
   at com.liferay.portal.kernel.servlet.BaseFilter.doFilter(BaseFilter.java:123)
   at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:235)
   at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:206)
   at com.liferay.portal.kernel.servlet.BaseFilter.processFilter(BaseFilter.java:196)
   at com.liferay.portal.servlet.filters.etag.ETagFilter.processFilter(ETagFilter.java:45)
   at com.liferay.portal.kernel.servlet.BaseFilter.doFilter(BaseFilter.java:123)
   at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:235)
   at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:206)
   at com.liferay.portal.kernel.servlet.BaseFilter.processFilter(BaseFilter.java:196)
   at com.liferay.portal.servlet.filters.autologin.AutoLoginFilter.processFilter(AutoLoginFilter.java:254)
   at com.liferay.portal.kernel.servlet.BaseFilter.doFilter(BaseFilter.java:123)
   at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:235)
   at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:206)
   at org.apache.catalina.core.ApplicationDispatcher.invoke(ApplicationDispatcher.java:646)
   at org.apache.catalina.core.ApplicationDispatcher.processRequest(ApplicationDispatcher.java:436)
   at org.apache.catalina.core.ApplicationDispatcher.doForward(ApplicationDispatcher.java:374)
   at org.apache.catalina.core.ApplicationDispatcher.forward(ApplicationDispatcher.java:302)
   at com.liferay.portal.servlet.filters.virtualhost.VirtualHostFilter.processFilter(VirtualHostFilter.java:310)
   at com.liferay.portal.kernel.servlet.BaseFilter.doFilter(BaseFilter.java:123)
   at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:235)
   at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:206)
   at com.liferay.portal.kernel.servlet.BaseFilter.processFilter(BaseFilter.java:196)
   at com.liferay.portal.kernel.servlet.BaseFilter.doFilter(BaseFilter.java:126)
   at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:235)
   at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:206)
   at com.liferay.portal.kernel.servlet.BaseFilter.processFilter(BaseFilter.java:196)
   at com.liferay.portal.kernel.servlet.BaseFilter.doFilter(BaseFilter.java:126)
   at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:235)
   at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:206)
   at org.tuckey.web.filters.urlrewrite.UrlRewriteFilter.doFilter(UrlRewriteFilter.java:738)
   at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:235)
   at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:206)
   at com.liferay.portal.kernel.servlet.BaseFilter.processFilter(BaseFilter.java:196)
   at com.liferay.portal.servlet.filters.threadlocal.ThreadLocalFilter.processFilter(ThreadLocalFilter.java:35)
   at com.liferay.portal.kernel.servlet.BaseFilter.doFilter(BaseFilter.java:123)
   at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:235)
   at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:206)
   at org.apache.catalina.core.StandardWrapperValve.invoke(StandardWrapperValve.java:233)
   at org.apache.catalina.core.StandardContextValve.invoke(StandardContextValve.java:191)
   at org.apache.catalina.authenticator.AuthenticatorBase.invoke(AuthenticatorBase.java:465)
   at org.apache.catalina.core.StandardHostValve.invoke(StandardHostValve.java:127)
   at org.apache.catalina.valves.ErrorReportValve.invoke(ErrorReportValve.java:102)
   at org.apache.catalina.core.StandardEngineValve.invoke(StandardEngineValve.java:109)
   at org.apache.catalina.connector.CoyoteAdapter.service(CoyoteAdapter.java:298)
   at org.apache.coyote.http11.Http11Processor.process(Http11Processor.java:852)
   at org.apache.coyote.http11.Http11Protocol$Http11ConnectionHandler.process(Http11Protocol.java:588)
   at org.apache.tomcat.util.net.JIoEndpoint$Worker.run(JIoEndpoint.java:489)
   at java.lang.Thread.run(Thread.java:619)
Caused by: org.springframework.extensions.webscripts.WebScriptException: 08030000 com.ctc.wstx.exc.WstxIOException: Server returned HTTP response code: 503 for URL: http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd
   at org.springframework.extensions.webscripts.processor.JSScriptProcessor.executeScriptImpl(JSScriptProcessor.java:298)
   at org.springframework.extensions.webscripts.processor.JSScriptProcessor.executeScript(JSScriptProcessor.java:178)
   … 206 more
Caused by: org.apache.abdera.parser.ParseException: com.ctc.wstx.exc.WstxIOException: Server returned HTTP response code: 503 for URL: http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd
   at org.apache.abdera.parser.stax.FOMBuilder.next(FOMBuilder.java:260)
   at org.apache.abdera.parser.stax.FOMBuilder.getFomDocument(FOMBuilder.java:333)
   at org.apache.abdera.parser.stax.FOMParser.getDocument(FOMParser.java:72)
   at org.apache.abdera.parser.stax.FOMParser.parse(FOMParser.java:207)
   at org.apache.abdera.parser.stax.FOMParser.parse(FOMParser.java:145)
   at org.apache.abdera.util.AbstractParser.parse(AbstractParser.java:94)
   at org.springframework.extensions.webscripts.atom.AbderaServiceImpl.parse(AbderaServiceImpl.java:156)
   at org.springframework.extensions.webscripts.atom.AbderaServiceImpl.parseService(AbderaServiceImpl.java:177)
   at org.springframework.extensions.webscripts.atom.AtomService.toService(AtomService.java:232)
   at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
   at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39)
   at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
   at java.lang.reflect.Method.invoke(Method.java:597)
   at org.mozilla.javascript.MemberBox.invoke(MemberBox.java:155)
   at org.mozilla.javascript.NativeJavaMethod.call(NativeJavaMethod.java:243)
   at org.mozilla.javascript.optimizer.OptRuntime.call1(OptRuntime.java:66)
   at org.mozilla.javascript.gen.c1._c0(jar:file:/C:/liferay-portal-6.0.5/tomcat-6.0.26/webapps/share/WEB-INF/lib/fr.intuitiv.module.fds.share.web-0.0.1-SNAPSHOT.jar!/alfresco/site-webscripts/org/alfresco/components/cmisrepo/cmisrepo.get.js:7)
   at org.mozilla.javascript.gen.c1.call(jar:file:/C:/liferay-portal-6.0.5/tomcat-6.0.26/webapps/share/WEB-INF/lib/fr.intuitiv.module.fds.share.web-0.0.1-SNAPSHOT.jar!/alfresco/site-webscripts/org/alfresco/components/cmisrepo/cmisrepo.get.js)
   at org.mozilla.javascript.ContextFactory.doTopCall(ContextFactory.java:393)
   at org.mozilla.javascript.ScriptRuntime.doTopCall(ScriptRuntime.java:2834)
   at org.mozilla.javascript.gen.c1.call(jar:file:/C:/liferay-portal-6.0.5/tomcat-6.0.26/webapps/share/WEB-INF/lib/fr.intuitiv.module.fds.share.web-0.0.1-SNAPSHOT.jar!/alfresco/site-webscripts/org/alfresco/components/cmisrepo/cmisrepo.get.js)
   at org.mozilla.javascript.gen.c1.exec(jar:file:/C:/liferay-portal-6.0.5/tomcat-6.0.26/webapps/share/WEB-INF/lib/fr.intuitiv.module.fds.share.web-0.0.1-SNAPSHOT.jar!/alfresco/site-webscripts/org/alfresco/components/cmisrepo/cmisrepo.get.js)
   at org.springframework.extensions.webscripts.processor.JSScriptProcessor.executeScriptImpl(JSScriptProcessor.java:292)
   … 207 more
Caused by: com.ctc.wstx.exc.WstxIOException: Server returned HTTP response code: 503 for URL: http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd
   at com.ctc.wstx.sr.StreamScanner.throwFromIOE(StreamScanner.java:683)
   at com.ctc.wstx.sr.BasicStreamReader.next(BasicStreamReader.java:1086)
   at org.apache.abdera.parser.stax.FOMBuilder.getNextElementToParse(FOMBuilder.java:163)
   at org.apache.abdera.parser.stax.FOMBuilder.next(FOMBuilder.java:187)
   … 229 more
Caused by: java.io.IOException: Server returned HTTP response code: 503 for URL: http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd
   at sun.net.www.protocol.http.HttpURLConnection.getInputStream(HttpURLConnection.java:1313)
   at java.net.URL.openStream(URL.java:1010)
   at com.ctc.wstx.util.URLUtil.optimizedStreamFromURL(URLUtil.java:113)
   at com.ctc.wstx.io.DefaultInputResolver.sourceFromURL(DefaultInputResolver.java:256)
   at com.ctc.wstx.io.DefaultInputResolver.resolveEntity(DefaultInputResolver.java:96)
   at com.ctc.wstx.sr.ValidatingStreamReader.findDtdExtSubset(ValidatingStreamReader.java:468)
   at com.ctc.wstx.sr.ValidatingStreamReader.finishDTD(ValidatingStreamReader.java:358)
   at com.ctc.wstx.sr.BasicStreamReader.skipToken(BasicStreamReader.java:3349)
   at com.ctc.wstx.sr.BasicStreamReader.nextFromProlog(BasicStreamReader.java:1988)
   at com.ctc.wstx.sr.BasicStreamReader.next(BasicStreamReader.java:1069)
   … 231 more


Le code de cmisrepo.get.js est (issue de alfresco.war) :

script:
{
    var serviceUrl = (args.service === null) ? "/api/repository" : args.service;
    var conn = remote.connect("alfresco");
    var result = conn.get(stringUtils.urlEncodeComponent(serviceUrl));
   
    var service = atom.toService(result.response);
    var workspace = service.workspaces.get(0);
    model.repo = workspace.getExtension(atom.names.cmisra_repositoryInfo);
}



Une idée pour faire marche ceci ?

Merci.
1 Reply
zomurn
Member II

Re: Alfresco - Liferay : intégration de portlet avec webscript

Je viens de tester que si je ne mais aucun contenu dans le webscript cmisrepo.get.js (celui qui fait planter) et donc que dans la réponse associée (cmisrepo.get.html.ftl) je mets un truc bidon (du style afficher "Hello World"), cela marche. Je vois bien dans ma portlet le hello word.
J'ai l'impression que le contrôleur (.get.js) ne marche pas correctement avec l'intégration de share.war dans liferay.