AnsweredAssumed Answered

Métadonnées sur Share

Question asked by vquiblier on Jul 17, 2009
Latest reply on Jul 17, 2009 by vquiblier
Bonjour,
j'ai réussi un créer un nouvel aspect dans Alfresco Explorer afin par exemple d'afficher la reference documentaire, un nom de client etc…
En fait j'ai remplacer du code dans le fichier exempleModel.xml et web-custom-client-config-custom.xml situés dans Alfresco/tomcat/shared/classes/alfresco/extension
Je vois le nouvel aspect dans Alfresco Explorer mais quand j'importe mon document sur Share je ne retrouve pas mes nouveaux aspects, de plus j'obtiens une erreur sur mon site "test" sur lequel j'ai importer mes documents avec leur nouveau aspect.
The Web Script /share/service/components/dashlets/docsummary 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/docsummary.get.js (in classpath store file:C:/Alfresco/tomcat/webapps/share/WEB-INF/classes/alfresco/site-webscripts)': SyntaxError: il manque ']' après une liste d'éléments (file:C:/Alfresco/tomcat/webapps/share/WEB-INF/classes/alfresco/site-webscripts/org/alfresco/components/dashlets/docsummary.get.js#5(eval)#540)
   
Exception:   org.mozilla.javascript.EcmaError - SyntaxError: il manque ']' après une liste d'éléments (file:C:/Alfresco/tomcat/webapps/share/WEB-INF/classes/alfresco/site-webscripts/org/alfresco/components/dashlets/docsummary.get.js#5(eval)#540)
   
   org.mozilla.javascript.ScriptRuntime.constructError(ScriptRuntime.java:3350)
   org.mozilla.javascript.DefaultErrorReporter.error(DefaultErrorReporter.java:89)
   org.mozilla.javascript.Parser.addError(Parser.java:140)
   org.mozilla.javascript.Parser.reportError(Parser.java:154)
   org.mozilla.javascript.Parser.primaryExpr(Parser.java:1950)
   org.mozilla.javascript.Parser.memberExpr(Parser.java:1729)
   org.mozilla.javascript.Parser.unaryExpr(Parser.java:1590)
   org.mozilla.javascript.Parser.mulExpr(Parser.java:1519)
   org.mozilla.javascript.Parser.addExpr(Parser.java:1500)
   org.mozilla.javascript.Parser.shiftExpr(Parser.java:1480)
   org.mozilla.javascript.Parser.relExpr(Parser.java:1454)
   org.mozilla.javascript.Parser.eqExpr(Parser.java:1410)
   org.mozilla.javascript.Parser.bitAndExpr(Parser.java:1399)
   org.mozilla.javascript.Parser.bitXorExpr(Parser.java:1388)
   org.mozilla.javascript.Parser.bitOrExpr(Parser.java:1377)
   org.mozilla.javascript.Parser.andExpr(Parser.java:1365)
   org.mozilla.javascript.Parser.orExpr(Parser.java:1353)
   org.mozilla.javascript.Parser.condExpr(Parser.java:1336)
   org.mozilla.javascript.Parser.assignExpr(Parser.java:1321)
   org.mozilla.javascript.Parser.plainProperty(Parser.java:2135)
   org.mozilla.javascript.Parser.primaryExpr(Parser.java:2011)
   org.mozilla.javascript.Parser.memberExpr(Parser.java:1729)
   org.mozilla.javascript.Parser.unaryExpr(Parser.java:1590)
   org.mozilla.javascript.Parser.mulExpr(Parser.java:1519)
   org.mozilla.javascript.Parser.addExpr(Parser.java:1500)
   org.mozilla.javascript.Parser.shiftExpr(Parser.java:1480)
   org.mozilla.javascript.Parser.relExpr(Parser.java:1454)
   org.mozilla.javascript.Parser.eqExpr(Parser.java:1410)
   org.mozilla.javascript.Parser.bitAndExpr(Parser.java:1399)
   org.mozilla.javascript.Parser.bitXorExpr(Parser.java:1388)
   org.mozilla.javascript.Parser.bitOrExpr(Parser.java:1377)
   org.mozilla.javascript.Parser.andExpr(Parser.java:1365)
   org.mozilla.javascript.Parser.orExpr(Parser.java:1353)
   org.mozilla.javascript.Parser.condExpr(Parser.java:1336)
   org.mozilla.javascript.Parser.assignExpr(Parser.java:1321)
   org.mozilla.javascript.Parser.expr(Parser.java:1308)
   org.mozilla.javascript.Parser.primaryExpr(Parser.java:2045)
   org.mozilla.javascript.Parser.memberExpr(Parser.java:1729)
   org.mozilla.javascript.Parser.unaryExpr(Parser.java:1590)
   org.mozilla.javascript.Parser.mulExpr(Parser.java:1519)
   org.mozilla.javascript.Parser.addExpr(Parser.java:1500)
   org.mozilla.javascript.Parser.shiftExpr(Parser.java:1480)
   org.mozilla.javascript.Parser.relExpr(Parser.java:1454)
   org.mozilla.javascript.Parser.eqExpr(Parser.java:1410)
   org.mozilla.javascript.Parser.bitAndExpr(Parser.java:1399)
   org.mozilla.javascript.Parser.bitXorExpr(Parser.java:1388)
   org.mozilla.javascript.Parser.bitOrExpr(Parser.java:1377)
   org.mozilla.javascript.Parser.andExpr(Parser.java:1365)
   org.mozilla.javascript.Parser.orExpr(Parser.java:1353)
   org.mozilla.javascript.Parser.condExpr(Parser.java:1336)
   org.mozilla.javascript.Parser.assignExpr(Parser.java:1321)
   org.mozilla.javascript.Parser.expr(Parser.java:1308)
   org.mozilla.javascript.Parser.statementHelper(Parser.java:1205)
   org.mozilla.javascript.Parser.statement(Parser.java:655)
   org.mozilla.javascript.Parser.parse(Parser.java:377)
   org.mozilla.javascript.Parser.parse(Parser.java:315)
   org.mozilla.javascript.Context.compileImpl(Context.java:2320)
   org.mozilla.javascript.Context.compileString(Context.java:1348)
   org.mozilla.javascript.ScriptRuntime.evalSpecial(ScriptRuntime.java:2276)
   org.mozilla.javascript.ScriptRuntime.callSpecial(ScriptRuntime.java:2143)
   org.mozilla.javascript.optimizer.OptRuntime.callSpecial(OptRuntime.java:165)
   org.mozilla.javascript.gen.c13._c0(file:C:/Alfresco/tomcat/webapps/share/WEB-INF/classes/alfresco/site-webscripts/org/alfresco/components/dashlets/docsummary.get.js:5)
   org.mozilla.javascript.gen.c13.call(file:C:/Alfresco/tomcat/webapps/share/WEB-INF/classes/alfresco/site-webscripts/org/alfresco/components/dashlets/docsummary.get.js)
   org.mozilla.javascript.ContextFactory.doTopCall(ContextFactory.java:393)
   org.mozilla.javascript.ScriptRuntime.doTopCall(ScriptRuntime.java:2834)
   org.mozilla.javascript.gen.c13.call(file:C:/Alfresco/tomcat/webapps/share/WEB-INF/classes/alfresco/site-webscripts/org/alfresco/components/dashlets/docsummary.get.js)
   org.mozilla.javascript.gen.c13.exec(file:C:/Alfresco/tomcat/webapps/share/WEB-INF/classes/alfresco/site-webscripts/org/alfresco/components/dashlets/docsummary.get.js)
   org.alfresco.web.scripts.PresentationScriptProcessor.executeScriptImpl(PresentationScriptProcessor.java:265)
   org.alfresco.web.scripts.PresentationScriptProcessor.executeScript(PresentationScriptProcessor.java:157)
   org.alfresco.web.scripts.AbstractWebScript.executeScript(AbstractWebScript.java:827)
   org.alfresco.web.scripts.DeclarativeWebScript.execute(DeclarativeWebScript.java:90)
   org.alfresco.web.scripts.PresentationContainer.executeScript(PresentationContainer.java:60)
   org.alfresco.web.scripts.LocalWebScriptRuntimeContainer.executeScript(LocalWebScriptRuntimeContainer.java:169)
   org.alfresco.web.scripts.AbstractRuntime.executeScript(AbstractRuntime.java:261)
   org.alfresco.web.scripts.AbstractRuntime.executeScript(AbstractRuntime.java:139)
   org.alfresco.web.scripts.WebScriptProcessor.executeBody(WebScriptProcessor.java:329)
   org.alfresco.web.framework.render.AbstractProcessor.execute(AbstractProcessor.java:85)
   org.alfresco.web.framework.render.RenderHelper.processComponent(RenderHelper.java:332)
   org.alfresco.web.framework.render.RenderUtil.renderRawComponent(RenderUtil.java:451)
   org.alfresco.web.framework.render.RenderUtil.renderRawComponent(RenderUtil.java:434)
   org.alfresco.web.framework.render.bean.ComponentRenderer.body(ComponentRenderer.java:135)
   org.alfresco.web.framework.render.RenderUtil.renderRegionComponents(RenderUtil.java:328)
   org.alfresco.web.site.taglib.RegionIncludeTag.doStartTag(RegionIncludeTag.java:43)
   org.alfresco.tools.TagUtil.execute(TagUtil.java:147)
   org.alfresco.tools.TagUtil.execute(TagUtil.java:81)
   org.alfresco.web.scripts.FreemarkerTagSupportDirective.executeTag(FreemarkerTagSupportDirective.java:89)
   org.alfresco.web.scripts.GenericFreemarkerTagDirective.execute(GenericFreemarkerTagDirective.java:127)
   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.FreemarkerProcessor.executeBody(FreemarkerProcessor.java:240)
   org.alfresco.web.framework.render.AbstractProcessor.execute(AbstractProcessor.java:85)
   org.alfresco.web.framework.render.RenderHelper.processRenderable(RenderHelper.java:276)
   org.alfresco.web.framework.render.bean.ChromeRenderer.body(ChromeRenderer.java:60)
   org.alfresco.web.framework.render.AbstractRenderer.render(AbstractRenderer.java:105)
   org.alfresco.web.framework.render.bean.RegionRenderer.body(RegionRenderer.java:134)
   org.alfresco.web.framework.render.AbstractRenderer.render(AbstractRenderer.java:105)
   org.alfresco.web.framework.render.RenderUtil.startRegionRenderer(RenderUtil.java:273)
   org.alfresco.web.framework.render.RenderUtil.renderRegion(RenderUtil.java:213)
   org.alfresco.web.framework.render.PresentationUtil.renderRegion(PresentationUtil.java:124)
   org.alfresco.web.site.taglib.RegionTag.doStartTag(RegionTag.java:109)
   org.alfresco.tools.TagUtil.execute(TagUtil.java:147)
   org.alfresco.tools.TagUtil.execute(TagUtil.java:81)
   org.alfresco.web.scripts.FreemarkerTagSupportDirective.executeTag(FreemarkerTagSupportDirective.java:89)
   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.FreemarkerProcessor.executeBody(FreemarkerProcessor.java:240)
   org.alfresco.web.framework.render.AbstractProcessor.execute(AbstractProcessor.java:85)
   org.alfresco.web.framework.render.RenderHelper.processTemplate(RenderHelper.java:376)
   org.alfresco.web.framework.render.bean.TemplateInstanceRenderer.body(TemplateInstanceRenderer.java:135)
   org.alfresco.web.framework.render.AbstractRenderer.render(AbstractRenderer.java:105)
   org.alfresco.web.framework.render.bean.PageRenderer.body(PageRenderer.java:81)
   org.alfresco.web.framework.render.AbstractRenderer.render(AbstractRenderer.java:105)
   org.alfresco.web.framework.render.RenderUtil.startPageRenderer(RenderUtil.java:144)
   org.alfresco.web.framework.render.RenderUtil.renderPage(RenderUtil.java:117)
   org.alfresco.web.framework.render.PresentationUtil.renderPage(PresentationUtil.java:85)
   org.alfresco.web.site.servlet.DispatcherServlet.dispatchPage(DispatcherServlet.java:459)
   org.alfresco.web.site.servlet.DispatcherServlet.dispatch(DispatcherServlet.java:336)
   org.alfresco.web.site.servlet.DispatcherServlet.service(DispatcherServlet.java:153)
   javax.servlet.http.HttpServlet.service(HttpServlet.java:717)
   org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:290)
   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:191)
   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:845)
   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.web.scripts.WebScriptException - SyntaxError: il manque ']' après une liste d'éléments (file:C:/Alfresco/tomcat/webapps/share/WEB-INF/classes/alfresco/site-webscripts/org/alfresco/components/dashlets/docsummary.get.js#5(eval)#540)
   
   org.alfresco.web.scripts.PresentationScriptProcessor.executeScriptImpl(PresentationScriptProcessor.java:275)
   
Exception:   org.alfresco.web.scripts.WebScriptException - Failed to load script '/org/alfresco/components/dashlets/docsummary.get.js (in classpath store file:C:/Alfresco/tomcat/webapps/share/WEB-INF/classes/alfresco/site-webscripts)': SyntaxError: il manque ']' après une liste d'éléments (file:C:/Alfresco/tomcat/webapps/share/WEB-INF/classes/alfresco/site-webscripts/org/alfresco/components/dashlets/docsummary.get.js#5(eval)#540)
   
   org.alfresco.web.scripts.PresentationScriptProcessor.executeScript(PresentationScriptProcessor.java:161)
   
Server:   Alfresco Enterprise v3.1.0 (142) schema 1 008
Time:   17 juil. 2009 09:07:18

Si quelqu'un a une idée, merci de me dépanner

Outcomes