Basic java web scripts project build/setup

Options
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
‎02-22-2013 04:08 PM
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.
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.
Labels:
- Labels:
-
Archive
4 REPLIES 4
Options
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
‎02-22-2013 07:36 PM
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.
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.

Options
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
‎02-25-2013 03:01 PM
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.
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.

Options
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
‎02-26-2013 12:04 AM
You will find that jars inside <alfresco_home>/tomcat/webapps/alfresco/WEB-INF/lib

Options
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
‎02-26-2013 11:09 AM
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.
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.
