AnsweredAssumed Answered

Problems deploying SimpleWebScript

Question asked by fmarchioni on Jul 4, 2008
Latest reply on Jun 25, 2015 by wajdi.ghribi
Hi all !
I'd like to test the example found in the documentation.
I have compiled the class and added it under webapps\alfresco\WEB-INF\classes,
then I have updated module-context.xml with the Bean definition
finally declared the Web Script
  <shortname>The World's Simplest Webscript</shortname>
  <description>Hands back a little bit of JSON</description>
  <format default="">argument</format>

Now when I try to invoke the script


I get the following error:

Message: Web Script format 'null' is not registered 
Exception: org.alfresco.web.scripts.WebScriptException - Web Script format 'null' is not registered 

I have tried changing the format to "html", then I get a different error…seems it's missing the response document…

Message: IO Error during processing of the template 'org/alfresco/sample/simple.get.html.ftl'. Please contact your system administrator. 
Exception: - Template org/alfresco/sample/simple.get.html.ftl not found. 

Can anybody help me to fix it ?
thanks a lot