Hi,
I'm a new Activiti user currently evaluating its functionality.
I downloaded and successfully installed activiti-5.0.beta2.zip using Ant on a Debian Linux v 5.0.6 64 bit Environment running on an Oracle VirtualBox guest VM.
My Java environment is;
java version "1.6.0_0"
OpenJDK Runtime Environment (build 1.6.0_0-b11)
OpenJDK 64-Bit Server VM (build 1.6.0_0-b11, mixed mode)
I have set JAVA_HOME to the jdk directory and run the startup.sh scripts which appear to run ok.
My Tomcat is v 6.0.29
Browser is Epiphany Web Browser 2.22.3
I can log in to explorer, probe, cycle and modeler and it confirms the sample login details on the top bar of the browser as Kermit the Frog with the logout option.
I also have some functionality in the bottom part of the browser screen which appears to be working ok for each of the modules. However, beneath the login bar where I believe the navigation controls should be I am getting the following exception;
The Web Script /activiti-explorer/service/component/navigation 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: 10030005 Failed to load script 'org.springframework.extensions.webscripts.ResourceStore$WebApplicationStoreScriptContent@5496bf47': 10030004 org.mozilla.javascript.NativeJavaArray cannot be cast to org.mozilla.javascript.NativeArray
Exception: java.lang.ClassCastException - org.mozilla.javascript.NativeJavaArray cannot be cast to org.mozilla.javascript.NativeArray
org.mozilla.javascript.NativeArray.js_concat(NativeArray.java:1324)
org.mozilla.javascript.NativeArray.execIdCall(NativeArray.java:297)
org.mozilla.javascript.IdFunctionObject.call(IdFunctionObject.java:127)
org.mozilla.javascript.optimizer.OptRuntime.call1(OptRuntime.java:66)
org.mozilla.javascript.gen.c5._c1(/WEB-INF/webscripts/navigation/navigation.get.js:9)
org.mozilla.javascript.gen.c5.call(/WEB-INF/webscripts/navigation/navigation.get.js)
org.mozilla.javascript.optimizer.OptRuntime.callName0(OptRuntime.java:108)
org.mozilla.javascript.gen.c5._c0(/WEB-INF/webscripts/navigation/navigation.get.js:54)
org.mozilla.javascript.gen.c5.call(/WEB-INF/webscripts/navigation/navigation.get.js)
org.mozilla.javascript.ContextFactory.doTopCall(ContextFactory.java:401)
org.mozilla.javascript.ScriptRuntime.doTopCall(ScriptRuntime.java:3003)
org.mozilla.javascript.gen.c5.call(/WEB-INF/webscripts/navigation/navigation.get.js)
org.mozilla.javascript.gen.c5.exec(/WEB-INF/webscripts/navigation/navigation.get.js)
org.springframework.extensions.webscripts.processor.JSScriptProcessor.executeScriptImpl(JSScriptProcessor.java:292)
org.springframework.extensions.webscripts.processor.JSScriptProcessor.executeScript(JSScriptProcessor.java:178)
org.springframework.extensions.webscripts.AbstractWebScript.executeScript(AbstractWebScript.java:952)
org.springframework.extensions.webscripts.DeclarativeWebScript.execute(DeclarativeWebScript.java:86)
org.springframework.extensions.webscripts.PresentationContainer.executeScript(PresentationContainer.java:69)
org.springframework.extensions.webscripts.LocalWebScriptRuntimeContainer.executeScript(LocalWebScriptRuntimeContainer.java:182)
org.springframework.extensions.webscripts.AbstractRuntime.executeScript(AbstractRuntime.java:307)
org.springframework.extensions.webscripts.AbstractRuntime.executeScript(AbstractRuntime.java:178)
org.springframework.extensions.webscripts.WebScriptProcessor.executeBody(WebScriptProcessor.java:275)
org.springframework.extensions.surf.render.AbstractProcessor.execute(AbstractProcessor.java:79)
org.springframework.extensions.surf.render.RenderService.processComponent(RenderService.java:468)
org.springframework.extensions.surf.render.RenderService.renderRawComponent(RenderService.java:970)
org.springframework.extensions.surf.render.RenderService.renderRawComponent(RenderService.java:957)
org.springframework.extensions.surf.taglib.ComponentIncludeTag.doStartTag(ComponentIncludeTag.java:39)
org.apache.jsp.WEB_002dINF.chrome.component.discrete_jsp._jspx_meth_surf_005fcomponentInclude_005f0(discrete_jsp.java:106)
org.apache.jsp.WEB_002dINF.chrome.component.discrete_jsp._jspService(discrete_jsp.java:82)
org.apache.jasper.runtime.HttpJspBase.service(HttpJspBase.java:70)
javax.servlet.http.HttpServlet.service(HttpServlet.java:717)
org.apache.jasper.servlet.JspServletWrapper.service(JspServletWrapper.java:377)
org.apache.jasper.servlet.JspServlet.serviceJspFile(JspServlet.java:313)
org.apache.jasper.servlet.JspServlet.service(JspServlet.java:260)
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.ApplicationDispatcher.invoke(ApplicationDispatcher.java:646)
org.apache.catalina.core.ApplicationDispatcher.doInclude(ApplicationDispatcher.java:551)
org.apache.catalina.core.ApplicationDispatcher.include(ApplicationDispatcher.java:488)
org.springframework.extensions.surf.render.bean.JSPProcessor.doInclude(JSPProcessor.java:173)
org.springframework.extensions.surf.render.bean.JSPProcessor.executeBody(JSPProcessor.java:126)
org.springframework.extensions.surf.render.AbstractProcessor.execute(AbstractProcessor.java:79)
org.springframework.extensions.surf.render.RenderService.processRenderable(RenderService.java:390)
org.springframework.extensions.surf.render.bean.ChromeRenderer.body(ChromeRenderer.java:49)
org.springframework.extensions.surf.render.AbstractRenderer.render(AbstractRenderer.java:131)
org.springframework.extensions.surf.render.bean.ComponentRenderer.body(ComponentRenderer.java:107)
org.springframework.extensions.surf.render.RenderService.renderRegionComponents(RenderService.java:827)
org.springframework.extensions.surf.taglib.RegionIncludeTag.doStartTag(RegionIncludeTag.java:36)
org.apache.jsp.WEB_002dINF.chrome.template.empty_jsp._jspx_meth_surf_005fregionInclude_005f0(empty_jsp.java:82)
org.apache.jsp.WEB_002dINF.chrome.template.empty_jsp._jspService(empty_jsp.java:59)
org.apache.jasper.runtime.HttpJspBase.service(HttpJspBase.java:70)
javax.servlet.http.HttpServlet.service(HttpServlet.java:717)
org.apache.jasper.servlet.JspServletWrapper.service(JspServletWrapper.java:377)
org.apache.jasper.servlet.JspServlet.serviceJspFile(JspServlet.java:313)
org.apache.jasper.servlet.JspServlet.service(JspServlet.java:260)
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.ApplicationDispatcher.invoke(ApplicationDispatcher.java:646)
org.apache.catalina.core.ApplicationDispatcher.doInclude(ApplicationDispatcher.java:551)
org.apache.catalina.core.ApplicationDispatcher.include(ApplicationDispatcher.java:488)
org.springframework.extensions.surf.render.bean.JSPProcessor.doInclude(JSPProcessor.java:173)
org.springframework.extensions.surf.render.bean.JSPProcessor.executeBody(JSPProcessor.java:126)
org.springframework.extensions.surf.render.AbstractProcessor.execute(AbstractProcessor.java:79)
org.springframework.extensions.surf.render.RenderService.processRenderable(RenderService.java:390)
org.springframework.extensions.surf.render.bean.ChromeRenderer.body(ChromeRenderer.java:49)
org.springframework.extensions.surf.render.AbstractRenderer.render(AbstractRenderer.java:131)
org.springframework.extensions.surf.render.bean.RegionRenderer.body(RegionRenderer.java:114)
org.springframework.extensions.surf.render.AbstractRenderer.render(AbstractRenderer.java:131)
org.springframework.extensions.surf.render.RenderService.startRegionRenderer(RenderService.java:779)
org.springframework.extensions.surf.render.RenderService.renderRegion(RenderService.java:723)
org.springframework.extensions.surf.render.PresentationUtil.renderRegion(PresentationUtil.java:134)
org.springframework.extensions.surf.taglib.RegionTag.doStartTag(RegionTag.java:101)
org.springframework.extensions.surf.render.TagService.execute(TagService.java:214)
org.springframework.extensions.surf.render.TagService.execute(TagService.java:148)
org.springframework.extensions.webscripts.FreemarkerTagSupportDirective.executeTag(FreemarkerTagSupportDirective.java:92)
org.springframework.extensions.webscripts.RegionFreemarkerTagDirective.execute(RegionFreemarkerTagDirective.java:122)
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.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.springframework.extensions.webscripts.processor.FTLTemplateProcessor.process(FTLTemplateProcessor.java:156)
org.springframework.extensions.webscripts.WebTemplateProcessor.executeBody(WebTemplateProcessor.java:312)
org.springframework.extensions.surf.render.AbstractProcessor.execute(AbstractProcessor.java:79)
org.springframework.extensions.surf.render.RenderService.processTemplate(RenderService.java:582)
org.springframework.extensions.surf.render.bean.TemplateInstanceRenderer.body(TemplateInstanceRenderer.java:124)
org.springframework.extensions.surf.render.AbstractRenderer.render(AbstractRenderer.java:131)
org.springframework.extensions.surf.render.bean.PageRenderer.body(PageRenderer.java:70)
org.springframework.extensions.surf.render.AbstractRenderer.render(AbstractRenderer.java:131)
org.springframework.extensions.surf.render.RenderService.startPageRenderer(RenderService.java:664)
org.springframework.extensions.surf.render.RenderService.renderPage(RenderService.java:641)
org.springframework.extensions.surf.render.PresentationUtil.renderPage(PresentationUtil.java:95)
org.springframework.extensions.surf.mvc.PageView.dispatchPage(PageView.java:349)
org.springframework.extensions.surf.mvc.PageView.renderView(PageView.java:290)
org.springframework.extensions.surf.mvc.AbstractWebFrameworkView.renderMergedOutputModel(AbstractWebFrameworkView.java:136)
org.springframework.web.servlet.view.AbstractView.render(AbstractView.java:250)
org.springframework.web.servlet.DispatcherServlet.render(DispatcherServlet.java:1060)
org.springframework.web.servlet.DispatcherServlet.doDispatch(DispatcherServlet.java:798)
org.springframework.web.servlet.DispatcherServlet.doService(DispatcherServlet.java:716)
org.springframework.web.servlet.FrameworkServlet.processRequest(FrameworkServlet.java:647)
org.springframework.web.servlet.FrameworkServlet.doGet(FrameworkServlet.java:552)
javax.servlet.http.HttpServlet.service(HttpServlet.java:617)
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.ApplicationDispatcher.invoke(ApplicationDispatcher.java:646)
org.apache.catalina.core.ApplicationDispatcher.processRequest(ApplicationDispatcher.java:436)
org.apache.catalina.core.ApplicationDispatcher.doForward(ApplicationDispatcher.java:374)
org.apache.catalina.core.ApplicationDispatcher.forward(ApplicationDispatcher.java:302)
org.tuckey.web.filters.urlrewrite.NormalRewrittenUrl.doRewrite(NormalRewrittenUrl.java:195)
org.tuckey.web.filters.urlrewrite.RuleChain.handleRewrite(RuleChain.java:159)
org.tuckey.web.filters.urlrewrite.RuleChain.doRules(RuleChain.java:141)
org.tuckey.web.filters.urlrewrite.UrlRewriter.processRequest(UrlRewriter.java:90)
org.tuckey.web.filters.urlrewrite.UrlRewriteFilter.doFilter(UrlRewriteFilter.java:417)
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:191)
org.apache.catalina.core.StandardHostValve.invoke(StandardHostValve.java:127)
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:298)
org.apache.coyote.http11.Http11Processor.process(Http11Processor.java:857)
org.apache.coyote.http11.Http11Protocol$Http11ConnectionHandler.process(Http11Protocol.java:588)
org.apache.tomcat.util.net.JIoEndpoint$Worker.run(JIoEndpoint.java:489)
java.lang.Thread.run(Thread.java:636)
Exception: org.springframework.extensions.webscripts.WebScriptException - 10030004 org.mozilla.javascript.NativeJavaArray cannot be cast to org.mozilla.javascript.NativeArray
org.springframework.extensions.webscripts.processor.JSScriptProcessor.executeScriptImpl(JSScriptProcessor.java:302)
Exception: org.springframework.extensions.webscripts.WebScriptException - 10030005 Failed to load script 'org.springframework.extensions.webscripts.ResourceStore$WebApplicationStoreScriptContent@5496bf47': 10030004 org.mozilla.javascript.NativeJavaArray cannot be cast to org.mozilla.javascript.NativeArray
org.springframework.extensions.webscripts.processor.JSScriptProcessor.executeScript(JSScriptProcessor.java:182)
Server: Alfresco - v1.0.0 (Milestone 3 349) schema 1,000
Time: 03-Nov-2010 12:07:07
Diagnostics: Inspect Web Script (webscripts/navigation/navigation.get)
The diagnostic link gives;
Web Script: webscripts/navigation/navigation.get
Generated from /activiti-explorer/service/script/webscripts/navigation/navigation.get on 03-Nov-2010 12:58:02
Script Properties
Id: webscripts/navigation/navigation.get
Short Name: Explorer Navigation
Description: The navigation menu for the Explorer application
Authentication: none
Transaction: none
Method: GET
URL Template: /component/navigation
Format Style: any
Default Format: html
Negotiated Formats: [undefined]
Implementation: class org.springframework.extensions.webscripts.DeclarativeWebScript
Extensions: [undefined]
Store: /WEB-INF
File: webscripts/navigation/navigation.get.js
<import resource="/webscripts/activiti.surf.lib.js">
<import resource="/webscripts/activiti.process.lib.js">
model.pages = getSitePages();
File: webscripts/navigation/navigation.get.html.ftl
<#assign el=args.htmlid?js_string/>
<ul class="activiti-menu pages">
<#list pages as p>
<li>
<a href="${url.context}/${p.id?js_string}" class="<#if context.page.id == p.id>current<#else>normal</#if> <#if !p_has_next>last</#if>">${p.title?html}</a>
</li>
</#list>
</ul>
<script type="text/javascript">//<![CDATA[
new Activiti.component.Navigation("${el}").setMessages(${messages});
//]]></script>
File: webscripts/navigation/navigation.get.properties
button.start-process=Start New Process…
File: webscripts/navigation/navigation.get.desc.xml
<webscript>
<shortname>Explorer Navigation</shortname>
<description>The navigation menu for the Explorer application</description>
<url>/component/navigation</url>
</webscript>
File: webscripts/navigation/navigation.get.head.ftl
<script type="text/javascript" src="${url.context}/res/components/navigation/navigation.js"></script>
Store: classpath:surf/webscripts
[No implementation files]
Store: classpath:webscripts
[No implementation files]
I have inspected the navigation.get.js and activiti.surf.lib.js and they appear to be intact.
Any help or suggestions would be gratefully received;
Regards…..Donal