Hi everyone…. I was just trying to run a sample java backed web script…. When I copy pasted the SimpleWebScript Example from alfresco wiki to eclipse where My SDk is set up… It Fails to find the class org.alfresco.web.scripts.AbstractWebScript… as a result shows an error message in import org.alfresco.web.scripts.AbstractWebScript line… Is there any other jar files i need to add… I have already added all the jars in alfresco embedded and alfresco remote.. and all the other examples ran fine.. I just failed to create the class file of the simplewebscrpt…. Can any body tell me what to do… I need to figure this out quickly… Any help pleaseee….
In Alfresco versions prior to 3.0, this class lives in the alfresco-web-client.jar. In Alfresco 3.0 onwards, you'll find it in alfresco-webscript-framework.jar.
Hi thanx a lot for u r reply the other day. Now i ran into another problem. I was trying to add users into alfresco using web scripts. To do that I need to get hold of the peopleService bean. As a result I was trying to get hold of the webApplicationContext of alfresco from the webscripts.
Can you anyone plz tell me how to get around it. Is this funtion no longer there in version 3.0 ? If it is not then how do I get hold of the webapplicationContext from a web script.