AnsweredAssumed Answered

[LABS3] problem WEB SCRIPT SIMPLE

Question asked by yang on Sep 11, 2009
Latest reply on Sep 11, 2009 by yang
Hello,

I am french people and i write and speak very bad english but I go to try to explain my problem

I read book of MUNWAR SHARIFF and i try to execute web script simple

file greeting.get.desc.xml


    <webscript>
       <shortname>Bienvenue</shortname>
       <description>Formule de politesse</description>
       <url>/sample/greeting</url>
       <authentification>user</authentification>
    </webscript>



File greeting.get.html.ftl

   Hello ${person.properties.username}




I followed the step
When i execute http://localhost:8080/alfresco/service/sample/greeting
i obtain error :

   The Web Script /alfresco/service/sample/greeting 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): Error during processing of the template 'Expression person is undefined on line 1, column 9 in org/alfresco/sample/greeting.get.html.ftl.'. Veuillez contacter votre administrateur système.
      
    Exception:   freemarker.core.InvalidReferenceException - Expression person is undefined on line 1, column 9 in org/alfresco/sample/greeting.get.html.ftl.
      
       freemarker.core.TemplateObject.assertNonNull(TemplateObject.java:124)


Thank you for help

Outcomes