AnsweredAssumed Answered

Can't found template (webscript status 500)

Question asked by tarl on Jan 22, 2010
Latest reply on Jan 28, 2010 by eruditionist
I created a webscript which is supposed to add an aspect to specific space with a POST form:
addAspect.post.desc.xml
<webscript>
<shortname>Add Aspect to Project</shortname>
<description>add aspect to root project space</description>
<url>/addAspect</url>
<format default="html">extension</format>
<authentication>admin</authentication>
</webscript>
addAspect.post.js
var   props = new Array(1),
   spaceId = args.redmineIdentifier,
   strnodeReference = args.alfrescoNoderef;
projectNode= search.luceneSearch('ID:"'+strnodeReference+'"');
props["my:redID"] = spaceId;
projectNode[0].addAspect("my:redmineIdentifier", props);
model.resultString = "Syncronization Done!!!!";
addAspect.post.html.ftl
<html>
  <body>
     <p>info: ${resultString.name}</p>
  </body>
</html>
and the HTML form
<html>
<head>
</head>
<body>
<form action="http://localhost:8080/alfresco/service/addAspect" method="post">

         <input name="redmineIdentifier" type="hidden" value="toto" />

         <input name="alfrescoNoderef" type="hidden" value="workspace://SpacesStore/500d66d9-6e4c-450b-9296-cfbba2d7ba69" />
         <input name="commit" type="submit" value="Synchronization" />   
</form>

</body>
</html>
All those files are in the Webscript space of the data dictionary but I get this error:

The Web Script /alfresco/service/addAspect has responded with a status of 500 - Erreur Interne de Servlet.

500 Description:    Le serveur a recontrer une erreur interne qui l''a empêché de satisfaire la requête.

Message:   Wrapped Exception (with status template): IO Error during processing of the template 'com/eads/icam/addAspect.post.html.ftl'. Veuillez contacter votre administrateur système.

Exception:   java.io.FileNotFoundException - Template com/eads/icam/addAspect.post.html.ftl not found.
I really don't understand why! if somebody has an idea or a solution it ll be great!

regards

Outcomes