cancel
Showing results for 
Search instead for 
Did you mean: 

Not able to see MySpaces in Alfresco integrated with Liferay

lakshya
Champ in-the-making
Champ in-the-making
Hello,
I have deployed Alfresco.war of Enterprise 3 in Liferay 5.1.2.
I am not able to view My Spaces. It gives error after clicking on it.

Exception :

Web Script Status 500 - Internal Error

The Web Script /alfresco/168s/ui/myspaces has responded with a status of 500 - Internal Error.

500 Description: An error inside the HTTP server which prevented it from fulfilling the request.
 
Message: Wrapped Exception (with status template): Error during processing of the template 'Error on line 34, column 4 in org/alfresco/portlets/myspaces.get.html.ftl userhome is undefined. It cannot be assigned to home'. Please contact your system administrator.
  
Exception: freemarker.core.InvalidReferenceException - Error on line 34, column 4 in org/alfresco/portlets/myspaces.get.html.ftl userhome is undefined. It cannot be assigned to home
  
freemarker.core.Assignment.accept(Assignment.java:111)
freemarker.core.Environment.visit(Environment.java:208)
freemarker.core.IfBlock.accept(IfBlock.java:82)
freemarker.core.Environment.visit(Environment.java:208)
freemarker.core.MixedContent.accept(MixedContent.java:92)
freemarker.core.Environment.visit(Environment.java:208)
freemarker.core.Environment.process(Environment.java:188)
freemarker.template.Template.process(Template.java:237)
org.alfresco.repo.template.FreeMarkerProcessor.process(FreeMarkerProcessor.java:201)
org.alfresco.web.scripts.AbstractWebScript.renderTemplate(AbstractWebScript.java:504)
org.alfresco.web.scripts.DeclarativeWebScript.renderFormatTemplate(DeclarativeWebScript.java:241)
org.alfresco.web.scripts.DeclarativeWebScript.execute(DeclarativeWebScript.java:147)
org.alfresco.repo.web.scripts.RepositoryContainer$1.execute(RepositoryContainer.java:311)
org.alfresco.repo.transaction.RetryingTransactionHelper.doInTransaction(RetryingTransactionHelper.java:320)
org.alfresco.repo.transaction.RetryingTransactionHelper.doInTransaction(RetryingTransactionHelper.java:227)
org.alfresco.repo.web.scripts.RepositoryContainer.transactionedExecute(RepositoryContainer.java:360)
org.alfresco.repo.web.scripts.RepositoryContainer.transactionedExecuteAs(RepositoryContainer.java:382)
org.alfresco.repo.web.scripts.RepositoryContainer.executeScript(RepositoryContainer.java:264)
org.alfresco.web.scripts.AbstractRuntime.executeScript(AbstractRuntime.java:260)
org.alfresco.web.scripts.portlet.WebScriptPortlet$PortletRuntime.executeScript(WebScriptPortlet.java:302)
org.alfresco.web.scripts.AbstractRuntime.executeScript(AbstractRuntime.java:139)
org.alfresco.web.scripts.portlet.WebScriptPortlet.doView(WebScriptPortlet.java:201)
org.alfresco.web.scripts.portlet.WebScriptPortlet.render(WebScriptPortlet.java:125)
com.sun.portal.portletcontainer.appengine.filter.FilterChainImpl.doFilter(FilterChainImpl.java:121)
com.liferay.portal.kernel.portlet.PortletFilterUtil.doFilter(PortletFilterUtil.java:69)
com.liferay.portal.kernel.servlet.PortletServlet.service(PortletServlet.java:96)
javax.servlet.http.HttpServlet.service(HttpServlet.java:803)
org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:290)
org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:206)
org.apache.catalina.core.ApplicationDispatcher.invoke(ApplicationDispatcher.java:630)
org.apache.catalina.core.ApplicationDispatcher.doInclude(ApplicationDispatcher.java:535)
org.apache.catalina.core.ApplicationDispatcher.include(ApplicationDispatcher.java:472)
com.liferay.portlet.InvokerPortletImpl.invoke(InvokerPortletImpl.java:575)
com.liferay.portlet.InvokerPortletImpl.invokeRender(InvokerPortletImpl.java:646)
com.liferay.portlet.InvokerPortletImpl.render(InvokerPortletImpl.java:414)
org.apache.jsp.html.portal.render_005fportlet_jsp._jspService(render_005fportlet_jsp.java:1383)
org.apache.jasper.runtime.HttpJspBase.service(HttpJspBase.java:70)
javax.servlet.http.HttpServlet.service(HttpServlet.java:803)
org.apache.jasper.servlet.JspServletWrapper.service(JspServletWrapper.java:374)
org.apache.jasper.servlet.JspServlet.serviceJspFile(JspServlet.java:337)
org.apache.jasper.servlet.JspServlet.service(JspServlet.java:266)
javax.servlet.http.HttpServlet.service(HttpServlet.java:803)
org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:290)
org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:206)
org.apache.catalina.core.ApplicationDispatcher.invoke(ApplicationDispatcher.java:630)
org.apache.catalina.core.ApplicationDispatcher.doInclude(ApplicationDispatcher.java:535)
org.apache.catalina.core.ApplicationDispatcher.include(ApplicationDispatcher.java:472)
com.liferay.portal.util.PortalImpl.renderPortlet(PortalImpl.java:2391)
com.liferay.portal.util.PortalImpl.renderPortlet(PortalImpl.java:2341)
com.liferay.portal.util.PortalUtil.renderPortlet(PortalUtil.java:773)
com.liferay.portal.action.RenderPortletAction.execute(RenderPortletAction.java:96)
com.liferay.portal.action.UpdateLayoutAction.addPortlet(UpdateLayoutAction.java:260)
com.liferay.portal.action.UpdateLayoutAction.execute(UpdateLayoutAction.java:211)
org.apache.struts.action.RequestProcessor.processActionPerform(RequestProcessor.java:431)
org.apache.struts.action.RequestProcessor.process(RequestProcessor.java:236)
com.liferay.portal.struts.PortalRequestProcessor.process(PortalRequestProcessor.java:164)
org.apache.struts.action.ActionServlet.process(ActionServlet.java:1196)
org.apache.struts.action.ActionServlet.doPost(ActionServlet.java:432)
javax.servlet.http.HttpServlet.service(HttpServlet.java:710)
com.liferay.portal.servlet.MainServlet.callParentService(MainServlet.java:443)
com.liferay.portal.servlet.MainServlet.service(MainServlet.java:708)
javax.servlet.http.HttpServlet.service(HttpServlet.java:803)
org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:290)
org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:206)
com.liferay.portal.kernel.servlet.BaseFilter.processFilter(BaseFilter.java:132)
com.liferay.portal.servlet.filters.strip.StripFilter.processFilter(StripFilter.java:117)
com.liferay.portal.kernel.servlet.BaseFilter.doFilter(BaseFilter.java:71)
org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:235)
org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:206)
com.liferay.portal.kernel.servlet.BaseFilter.processFilter(BaseFilter.java:132)
com.liferay.portal.servlet.filters.compression.CompressionFilter.processFilter(CompressionFilter.java:141)
com.liferay.portal.kernel.servlet.BaseFilter.doFilter(BaseFilter.java:71)
org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:235)
org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:206)
com.liferay.portal.kernel.servlet.BaseFilter.processFilter(BaseFilter.java:132)
com.liferay.portal.servlet.filters.secure.SecureFilter.processFilter(SecureFilter.java:282)
com.liferay.portal.kernel.servlet.BaseFilter.doFilter(BaseFilter.java:71)
org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:235)
org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:206)
com.liferay.portal.kernel.servlet.BaseFilter.processFilter(BaseFilter.java:132)
com.liferay.portal.servlet.filters.virtualhost.VirtualHostFilter.doFilter(VirtualHostFilter.java:186)
org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:235)
org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:206)
com.liferay.portal.kernel.servlet.BaseFilter.processFilter(BaseFilter.java:132)
com.liferay.portal.kernel.servlet.BaseFilter.doFilter(BaseFilter.java:74)
org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:235)
org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:206)
org.tuckey.web.filters.urlrewrite.UrlRewriteFilter.doFilter(UrlRewriteFilter.java:738)
org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:235)
org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:206)
org.apache.catalina.core.StandardWrapperValve.invoke(StandardWrapperValve.java:233)
org.apache.catalina.core.StandardContextValve.invoke(StandardContextValve.java:175)
org.apache.catalina.authenticator.AuthenticatorBase.invoke(AuthenticatorBase.java:433)
org.apache.catalina.core.StandardHostValve.invoke(StandardHostValve.java:128)
org.apache.catalina.valves.ErrorReportValve.invoke(ErrorReportValve.java:102)
org.apache.catalina.core.StandardEngineValve.invoke(StandardEngineValve.java:109)
org.apache.catalina.connector.CoyoteAdapter.service(CoyoteAdapter.java:286)
org.apache.coyote.http11.Http11Processor.process(Http11Processor.java:844)
org.apache.coyote.http11.Http11Protocol$Http11ConnectionHandler.process(Http11Protocol.java:583)
org.apache.tomcat.util.net.JIoEndpoint$Worker.run(JIoEndpoint.java:447)
java.lang.Thread.run(Thread.java:619)
  
Exception: org.alfresco.service.cmr.repository.TemplateException - Error during processing of the template 'Error on line 34, column 4 in org/alfresco/portlets/myspaces.get.html.ftl userhome is undefined. It cannot be assigned to home'. Please contact your system administrator.
  
org.alfresco.repo.template.FreeMarkerProcessor.process(FreeMarkerProcessor.java:205)
  
Exception: org.alfresco.web.scripts.WebScriptException - Wrapped Exception (with status template): Error during processing of the template 'Error on line 34, column 4 in org/alfresco/portlets/myspaces.get.html.ftl userhome is undefined. It cannot be assigned to home'. Please contact your system administrator.
  
org.alfresco.web.scripts.AbstractWebScript.createStatusException(AbstractWebScript.java:594)
  
Server: Alfresco Enterprise v3.0.0 (r11498) schema 501
Time: Dec 17, 2008 3:21:51 PM
  
Diagnostics: Inspect Web Script (org/alfresco/portlets/myspaces.get)



Can anyone help to get rid of this.


Thnx..
3 REPLIES 3

lakshya
Champ in-the-making
Champ in-the-making
portlet.xml we are using is

<?xml version="1.0" encoding="UTF-8"?>
<portlet-app xmlns="http://java.sun.com/xml/ns/portlet/portlet-app_1_0.xsd" version="1.0" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:schemaLocation="http://java.sun.com/xml/ns/portlet/portlet-app_1_0.xsd http://java.sun.com/xml/ns/portlet/portlet-app_1_0.xsd">
<portlet>
      <description>Alfresco Client Portlet</description>
      <portlet-name>AlfrescoClient</portlet-name>
      <portlet-class>org.alfresco.web.app.portlet.AlfrescoFacesPortlet</portlet-class>
      <init-param>
         <name>default-view</name>
         <value>/jsp/login.jsp</value>
      </init-param>
      <supports>
         <mime-type>text/html</mime-type>
         <portlet-mode>VIEW</portlet-mode>
         <portlet-mode>HELP</portlet-mode>
      </supports>
      <portlet-info>
         <title>Alfresco Client Portlet</title>
         <short-title>alfresco-client-portlet</short-title>
      </portlet-info>
   </portlet>
   <portlet>
      <description>My Tasks</description>
      <portlet-name>AlfrescoMyTasks</portlet-name>
      <portlet-class>org.alfresco.web.scripts.portlet.WebScriptPortlet</portlet-class>
      <init-param>
         <name>authenticator</name>
         <value>webscripts.authenticator.jsr168.webclient</value>
      </init-param>
      <init-param>
         <name>scriptUrl</name>
         <value>/alfresco/168s/ui/mytasks</value>
      </init-param>
      <supports>
         <mime-type>text/html</mime-type>
         <portlet-mode>VIEW</portlet-mode>
      </supports>
      <portlet-info>
         <title>My Tasks</title>
         <short-title>My Tasks</short-title>
      </portlet-info>
   </portlet>
   <portlet>
      <description>Document List</description>
      <portlet-name>AlfrescoDocList</portlet-name>
      <portlet-class>org.alfresco.web.scripts.portlet.WebScriptPortlet</portlet-class>
      <init-param>
         <name>authenticator</name>
         <value>webscripts.authenticator.jsr168.webclient</value>
      </init-param>
      <init-param>
         <name>scriptUrl</name>
         <value>/alfresco/168s/ui/doclist</value>
      </init-param>
      <supports>
         <mime-type>text/html</mime-type>
         <portlet-mode>VIEW</portlet-mode>
      </supports>
      <portlet-info>
         <title>Document List</title>
         <short-title>Document List</short-title>
      </portlet-info>
   </portlet>
   <portlet>
      <description>My Spaces</description>
      <portlet-name>AlfrescoMySpaces</portlet-name>
      <portlet-class>org.alfresco.web.scripts.portlet.WebScriptPortlet</portlet-class>
      <init-param>
         <name>authenticator</name>
         <value>webscripts.authenticator.jsr168.webclient</value>
      </init-param>
      <init-param>
         <name>scriptUrl</name>
         <value>/alfresco/168s/ui/myspaces</value>
      </init-param>
      <supports>
         <mime-type>text/html</mime-type>
         <portlet-mode>VIEW</portlet-mode>
      </supports>
      <portlet-info>
         <title>My Spaces</title>
         <short-title>My Spaces</short-title>
      </portlet-info>
   </portlet>
   <portlet>
      <description>My Web Forms</description>
      <portlet-name>AlfrescoMyWebForms</portlet-name>
      <portlet-class>org.alfresco.web.scripts.portlet.WebScriptPortlet</portlet-class>
      <init-param>
         <name>authenticator</name>
         <value>webscripts.authenticator.jsr168.webclient</value>
      </init-param>
      <init-param>
         <name>scriptUrl</name>
         <value>/alfresco/168s/ui/mywebforms</value>
      </init-param>
      <supports>
         <mime-type>text/html</mime-type>
         <portlet-mode>VIEW</portlet-mode>
      </supports>
      <portlet-info>
         <title>My Web Forms</title>
         <short-title>My Web Forms</short-title>
      </portlet-info>
   </portlet>
   <portlet>
      <description>My Web Files</description>
      <portlet-name>AlfrescoMyWebFiles</portlet-name>
      <portlet-class>org.alfresco.web.scripts.portlet.WebScriptPortlet</portlet-class>
      <init-param>
         <name>authenticator</name>
         <value>webscripts.authenticator.jsr168.webclient</value>
      </init-param>
      <init-param>
         <name>scriptUrl</name>
         <value>/alfresco/168s/ui/mywebfiles</value>
      </init-param>
      <supports>
         <mime-type>text/html</mime-type>
         <portlet-mode>VIEW</portlet-mode>
      </supports>
      <portlet-info>
         <title>My Web Files</title>
         <short-title>My Web Files</short-title>
      </portlet-info>
   </portlet>
   <user-attribute>
      <name>user.home-info.online.email</name>
   </user-attribute>
</portlet-app>

We are not able to see 'Company Home' and 'User Home' options.
but able to create a new user.


Any pointers . ..

jefrainmx
Champ in-the-making
Champ in-the-making
Have you solve this issue?

rivetlogic
Champ on-the-rise
Champ on-the-rise
Hi,

One possible alternative is to use AWPr: http://forums.alfresco.com/en/viewtopic.php?f=32&t=18314

Hope this helps,

–Alaaeldin