cancel
Showing results for 
Search instead for 
Did you mean: 

Problems creating WebScript

leonardo
Champ in-the-making
Champ in-the-making
Hi All,

I´m following this tutorial : http://www.benh.co.uk/alfresco/surf-part-3-alfresco-wcm-content/

and I have problems testing the webscripts…
this is the error :    freemarker.core.InvalidReferenceException - Expression folder is undefined

Does anyone knows about this error?


Thanks For All.
1 REPLY 1

ben
Champ in-the-making
Champ in-the-making
Hi,

Is the Products web script installed and working correctly on your Alfresco repo? You can check by browsing to the Web Scripts Home i,e, http://localhost:8080/alfresco/service/, select “Browse by web script package”, scroll down and select “/products”. You can then click on the GET link i.e. GET / alfresco/service/products/get and this will run the web script. If it is working it will return a JSON response listing some example products. If it fails to return any products, check your AVM dir structure. It loads the products from the /content/products/source dir.

Other things to check:
1) is your repo running at http://localhost:8080 as I mentioned within the prerequisites?
2) Is the username/pass admin/admin? If not edit in the web-framework-config-custom.xml.

Ben.