cancel
Showing results for 
Search instead for 
Did you mean: 

Alfresco Share dashlets

kollymars
Champ in-the-making
Champ in-the-making
I have installed the Alfresco Share.  It is kind of working, however some of the dashlets are not working.  Specifically the RSS and the Alfresco Network dashlets are giving errors.  I am running on RHEL5 and intalled using the CentOS instructions on the wiki.  The error is:



Alfresco    Web Script Status 500 - Internal Error

The Web Script /share/service/components/dashlets/alfresco-network 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:   Failed to load script '/org/alfresco/components/dashlets/alfresco-network.get.js (in classpath store file:/usr/share/tomcat5/webapps/share/WEB-INF/classes/alfresco/site-webscripts)': ReferenceError: "XML" is not defined. (AlfrescoScript#1)
   
Exception:   org.mozilla.javascript.EcmaError - ReferenceError: "XML" is not defined. (AlfrescoScript#1)
   
   org.mozilla.javascript.ScriptRuntime.constructError(ScriptRuntime.java:3350)
   org.mozilla.javascript.ScriptRuntime.constructError(ScriptRuntime.java:3340)
   org.mozilla.javascript.ScriptRuntime.notFoundError(ScriptRuntime.java:3413)
   org.mozilla.javascript.ScriptRuntime.name(ScriptRuntime.java:1612)
   org.mozilla.javascript.gen.c18._c0(AlfrescoScript:1)
   org.mozilla.javascript.gen.c18.call(AlfrescoScript)
   org.mozilla.javascript.ContextFactory.doTopCall(ContextFactory.java:393)
   org.mozilla.javascript.ScriptRuntime.doTopCall(ScriptRuntime.java:2834)
   org.mozilla.javascript.gen.c18.call(AlfrescoScript)
   org.mozilla.javascript.gen.c18.exec(AlfrescoScript)
   org.mozilla.javascript.Context.evaluateString(Context.java:1196)
   org.alfresco.web.scripts.PresentationScriptProcessor.executeScriptImpl(PresentationScriptProcessor.java:234)
   org.alfresco.web.scripts.PresentationScriptProcessor.executeScript(PresentationScriptProcessor.java:115)
   org.alfresco.web.scripts.AbstractWebScript.executeScript(AbstractWebScript.java:615)
   org.alfresco.web.scripts.DeclarativeWebScript.execute(DeclarativeWebScript.java:105)
   org.alfresco.web.scripts.PresentationContainer.executeScript(PresentationContainer.java:46)
   org.alfresco.web.scripts.LocalWebScriptRuntimeContainer.executeScript(LocalWebScriptRuntimeContainer.java:182)
   org.alfresco.web.scripts.AbstractRuntime.executeScript(AbstractRuntime.java:240)
   org.alfresco.web.scripts.AbstractRuntime.executeScript(AbstractRuntime.java:139)
   org.alfresco.web.scripts.WebScriptRenderer.execute(WebScriptRenderer.java:272)
   org.alfresco.web.site.RenderUtil.renderComponent(RenderUtil.java:465)
   org.alfresco.web.site.PresentationUtil.renderComponent(PresentationUtil.java:202)
   org.alfresco.web.site.taglib.ComponentTag.doStartTag(ComponentTag.java:107)
   org.alfresco.tools.TagUtil.execute(TagUtil.java:143)
   org.alfresco.tools.TagUtil.execute(TagUtil.java:79)
   org.alfresco.web.scripts.FreemarkerTagSupportDirective.executeTag(FreemarkerTagSupportDirective.java:95)
   org.alfresco.web.scripts.FreemarkerTagSupportDirective.executeTag(FreemarkerTagSupportDirective.java:73)
   org.alfresco.web.scripts.ComponentFreemarkerTagDirective.execute(ComponentFreemarkerTagDirective.java:118)
   freemarker.core.Environment.visit(Environment.java:261)
   freemarker.core.UnifiedCall.accept(UnifiedCall.java:126)
   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.web.scripts.PresentationTemplateProcessor.process(PresentationTemplateProcessor.java:146)
   org.alfresco.web.scripts.FreemarkerRenderer.execute(FreemarkerRenderer.java:219)
   org.alfresco.web.site.RenderUtil.executeRenderer(RenderUtil.java:869)
   org.alfresco.web.site.RenderUtil.executeRenderer(RenderUtil.java:846)
   org.alfresco.web.site.RenderUtil.renderRegion(RenderUtil.java:376)
   org.alfresco.web.site.PresentationUtil.renderRegion(PresentationUtil.java:164)
   org.alfresco.web.site.taglib.RegionTag.doStartTag(RegionTag.java:113)
   org.alfresco.tools.TagUtil.execute(TagUtil.java:143)
   org.alfresco.tools.TagUtil.execute(TagUtil.java:79)
   org.alfresco.web.scripts.FreemarkerTagSupportDirective.executeTag(FreemarkerTagSupportDirective.java:95)
   org.alfresco.web.scripts.RegionFreemarkerTagDirective.execute(RegionFreemarkerTagDirective.java:128)
   freemarker.core.Environment.visit(Environment.java:261)
   freemarker.core.UnifiedCall.accept(UnifiedCall.java:126)
   freemarker.core.Environment.visit(Environment.java:208)
   freemarker.core.IteratorBlock$Context.runLoop(IteratorBlock.java:179)
   freemarker.core.Environment.visit(Environment.java:415)
   freemarker.core.IteratorBlock.accept(IteratorBlock.java:102)
   freemarker.core.Environment.visit(Environment.java:208)
   freemarker.core.MixedContent.accept(MixedContent.java:92)
   freemarker.core.Environment.visit(Environment.java:208)
   freemarker.core.IteratorBlock$Context.runLoop(IteratorBlock.java:179)
   freemarker.core.Environment.visit(Environment.java:415)
   freemarker.core.IteratorBlock.accept(IteratorBlock.java:102)
   freemarker.core.Environment.visit(Environment.java:208)
   freemarker.core.MixedContent.accept(MixedContent.java:92)
   freemarker.core.Environment.visit(Environment.java:208)
   freemarker.core.Macro$Context.runMacro(Macro.java:164)
   freemarker.core.Environment.visit(Environment.java:601)
   freemarker.core.UnifiedCall.accept(UnifiedCall.java:106)
   freemarker.core.Environment.visit(Environment.java:208)
   freemarker.core.IfBlock.accept(IfBlock.java:82)
   freemarker.core.Environment.visit(Environment.java:208)
   freemarker.core.Macro$Context.runMacro(Macro.java:164)
   freemarker.core.Environment.visit(Environment.java:601)
   freemarker.core.UnifiedCall.accept(UnifiedCall.java:106)
   freemarker.core.Environment.visit(Environment.java:208)
   freemarker.core.MixedContent.accept(MixedContent.java:92)
   freemarker.core.Environment.visit(Environment.java:208)
   freemarker.core.Environment.visit(Environment.java:393)
   freemarker.core.BodyInstruction.accept(BodyInstruction.java:93)
   freemarker.core.Environment.visit(Environment.java:208)
   freemarker.core.MixedContent.accept(MixedContent.java:92)
   freemarker.core.Environment.visit(Environment.java:208)
   freemarker.core.Macro$Context.runMacro(Macro.java:164)
   freemarker.core.Environment.visit(Environment.java:601)
   freemarker.core.UnifiedCall.accept(UnifiedCall.java:106)
   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.web.scripts.PresentationTemplateProcessor.process(PresentationTemplateProcessor.java:146)
   org.alfresco.web.scripts.FreemarkerRenderer.execute(FreemarkerRenderer.java:219)
   org.alfresco.web.site.RenderUtil.renderTemplate(RenderUtil.java:268)
   org.alfresco.web.site.RenderUtil.renderPage(RenderUtil.java:172)
   org.alfresco.web.site.PresentationUtil.renderPage(PresentationUtil.java:88)
   org.alfresco.web.site.servlet.DispatcherServlet.dispatchPage(DispatcherServlet.java:455)
   org.alfresco.web.site.servlet.DispatcherServlet.dispatch(DispatcherServlet.java:356)
   org.alfresco.web.site.servlet.DispatcherServlet.service(DispatcherServlet.java:144)
   javax.servlet.http.HttpServlet.service(HttpServlet.java:803)
   org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:269)
   org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:188)
   org.apache.catalina.core.StandardWrapperValve.invoke(StandardWrapperValve.java:210)
   org.apache.catalina.core.StandardContextValve.invoke(StandardContextValve.java:174)
   org.apache.catalina.core.StandardHostValve.invoke(StandardHostValve.java:127)
   org.apache.catalina.valves.ErrorReportValve.invoke(ErrorReportValve.java:117)
   org.apache.catalina.core.StandardEngineValve.invoke(StandardEngineValve.java:108)
   org.apache.catalina.connector.CoyoteAdapter.service(CoyoteAdapter.java:151)
   org.apache.coyote.http11.Http11Processor.process(Http11Processor.java:870)
   org.apache.coyote.http11.Http11BaseProtocol$Http11ConnectionHandler.processConnection(Http11BaseProtocol.java:665)
   org.apache.tomcat.util.net.PoolTcpEndpoint.processSocket(PoolTcpEndpoint.java:528)
   org.apache.tomcat.util.net.LeaderFollowerWorkerThread.runIt(LeaderFollowerWorkerThread.java:81)
   org.apache.tomcat.util.threads.ThreadPool$ControlRunnable.run(ThreadPool.java:685)
   java.lang.Thread.run(Thread.java:619)
   
Exception:   org.alfresco.web.scripts.WebScriptException - ReferenceError: "XML" is not defined. (AlfrescoScript#1)
   
   org.alfresco.web.scripts.PresentationScriptProcessor.executeScriptImpl(PresentationScriptProcessor.java:239)
   
Exception:   org.alfresco.web.scripts.WebScriptException - Failed to load script '/org/alfresco/components/dashlets/alfresco-network.get.js (in classpath store file:/usr/share/tomcat5/webapps/share/WEB-INF/classes/alfresco/site-webscripts)': ReferenceError: "XML" is not defined. (AlfrescoScript#1)
   
   org.alfresco.web.scripts.PresentationScriptProcessor.executeScript(PresentationScriptProcessor.java:120)

It is probably something simple that I am missing.  Any help is appreciated
5 REPLIES 5

zaizi
Champ in-the-making
Champ in-the-making
Is the machine you've installed Share on connected to the interweb? RSS and Alfresco Network dashlets needs to look pull down content from the web.

sbuckle
Champ in-the-making
Champ in-the-making
Can you check what version of Rhino you are using? If you did a check out then it should be 1.6R7. The "XML" class is part of E4X, which was introduced in version 1.6 of Rhino so it should be there if you have the right version.

kollymars
Champ in-the-making
Champ in-the-making
Thanks for your replies.  The machine that share is running on is connected to the internet.  Also, I am running rhino-1.6-0.1.r5.1jpp.  It is interesting that in the message section is says that (in classpath store file:/usr/share/tomcat5/webapps/share/WEB-INF/classes/alfresco/site-webscripts)'  my installation is in /var/lib/tomcat5…

Not sure how to change that..

sbuckle
Champ in-the-making
Champ in-the-making
Take a look at "alfresco.sh" in Tomcat home and make sure that the APPSERVER environment variable is set correctly. If you did a checkout then the appropriate version of Rhino should be in /webapps/alfresco/WEB-INF/lib.

Did you download the WAR file or did you install from scratch? There are various instructions on the wiki for how to install on Linux. For example:  http://wiki.alfresco.com/wiki/Installing_Alfresco_Community_WAR_on_Centos_5

kollymars
Champ in-the-making
Champ in-the-making
The install that I did was from the wiki for the CentOS install.  I did a fresh install (several times).  The rhino version that is in the directory that you reference is different than the one from the rpm that I used.

Also, I do not find a file named alfresco.sh in my installation.