AnsweredAssumed Answered

Action javascript problem

Question asked by gaith on May 6, 2008
Latest reply on May 6, 2008 by dgenard
hi,
i try to add new action  action dubiln core like that:
<action id="dublin-core">
           <permissions>
               <permission allow="true">CreateChildren</permission>
           </permissions>
           <label-id>Dublin_Core</label-id>
           <image>/images/icons/add.gif</image>
           <script>/ajax2/greybox/gb_scripts.js</script>
</action
>


the link is shown correctly but when o try to execute the action i have an error::::



org.alfresco.error.AlfrescoRuntimeException: Error during command servlet processing: Unable to resolve item Path: /ajax2/greybox/gb_scripts.js
at org.alfresco.web.app.servlet.CommandServlet.service(CommandServlet.java:194)
at javax.servlet.http.HttpServlet.service(HttpServlet.java:803)
at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:269)
at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:188)
at org.apache.catalina.core.StandardWrapperValve.invoke(StandardWrapperValve.java:210)
at org.apache.catalina.core.StandardContextValve.invoke(StandardContextValve.java:174)
at org.apache.catalina.core.StandardHostValve.invoke(StandardHostValve.java:127)
at org.apache.catalina.valves.ErrorReportValve.invoke(ErrorReportValve.java:117)
at org.apache.catalina.core.StandardEngineValve.invoke(StandardEngineValve.java:108)
at org.apache.catalina.connector.CoyoteAdapter.service(CoyoteAdapter.java:151)
at org.apache.coyote.http11.Http11Processor.process(Http11Processor.java:870)
at org.apache.coyote.http11.Http11BaseProtocol$Http11ConnectionHandler.processConnection(Http11BaseProtocol.java:665)
at org.apache.tomcat.util.net.PoolTcpEndpoint.processSocket(PoolTcpEndpoint.java:528)
at org.apache.tomcat.util.net.LeaderFollowerWorkerThread.runIt(LeaderFollowerWorkerThread.java:81)
at org.apache.tomcat.util.threads.ThreadPool$ControlRunnable.run(ThreadPool.java:685)
at java.lang.Thread.run(Thread.java:595)
Caused by: java.lang.IllegalArgumentException: Unable to resolve item Path: /ajax2/greybox/gb_scripts.js
at org.alfresco.web.app.servlet.BaseServlet.resolveNamePath(BaseServlet.java:347)
at org.alfresco.web.app.servlet.command.ScriptCommandProcessor.validateArguments(ScriptCommandProcessor.java:80)
at org.alfresco.web.app.servlet.CommandServlet.service(CommandServlet.java:139)
… 15 more

Outcomes