cancel
Showing results for 
Search instead for 
Did you mean: 

Basic java web scripts project build/setup

ungawunga
Champ in-the-making
Champ in-the-making
I hate to ask such a basic question, but I'm a .Net developer, not a Java developer. I've written a bunch of javascript based web scripts successfully, but I've reached the end of what I can accomplish via javascript and would like to use Java for some upcoming functionality I need to develop. I have no problem writing the java code. My problem is that I have no idea how to set up the project in Eclipse to build and deploy java base web scripts.

For example: http://wiki.alfresco.com/wiki/Java-backed_Web_Scripts_Samples#SimpleDeclarativeWebScript.java

I'd love to see a sample project for the above code that shows the directory structure that need to be set up, built, and deployed.

I know its not necessarily an Alfresco question, but it would greatly help me out.

Thanks.
4 REPLIES 4

muralidharand
Star Contributor
Star Contributor
Hi,

Please find the below URL. I created a java backed hello wolrd webscript for alfresco repository.
http://mralfresco.blogspot.in/2013/02/alfresco-repo-hello-world-java-backed.html

Hope this helps you.

ungawunga
Champ in-the-making
Champ in-the-making
Thanks. Any idea where I can find a jar file that contains
org.springframework.extensions.webscripts?

Its not in the 4.2c Alfresco.war or share.war, nor in the 4.0 SDK jar files. Can't find it anywhere.

You will find that jars inside <alfresco_home>/tomcat/webapps/alfresco/WEB-INF/lib

ungawunga
Champ in-the-making
Champ in-the-making
Thanks, I've got that. Has the DeclarativeWebScript class been moved?
org.springframework.extensions.* isn't included in Alfresco 4.2c WAR file.

–edit–
Found it in spring-webscripts-1.2.0-SNAPSHOT.jar

Thanks all.