cancel
Showing results for 
Search instead for 
Did you mean: 

Folder structure in Eclipse for a Java backed Script

d_franz
Champ on-the-rise
Champ on-the-rise
I am trying to write a java backed script for Alfresco. But I can't get the simple Script from http://wiki.alfresco.com/wiki/Java-backed_Web_Scripts_Samples#SimpleWebScript.java get to run.

There are mentioned that I need:
SimpleWebScript.java
web-scripts-application-context.xml
simple.get.desc.xml

But there is no description in which folder I have to place it.

I downloaded the example project for a repository module from https://addons.alfresco.com/addons/example-repository-customizations-eclipse-project. But even with this I cannot see how the file structure have to be.

Is there a step for step tutorial with all files???
1 REPLY 1

abarisone
Star Contributor
Star Contributor
Hi,
take a look to this post https://forums.alfresco.com/en/viewtopic.php?f=53&t=45048
Normally these files are put in tomcat\webapps\alfresco\WEB-INF\classes\alfresco\extension\templates\webscripts folder
You can put simple.get.desc.xml here.
If you need to develop Java backed webscripts take a look here https://forums.alfresco.com/en/viewtopic.php?f=36&t=43013 and here https://forums.alfresco.com/en/viewtopic.php?f=36&t=46136
Your compiled Java class can be put into a jar named as you wish under tomcat\webapps\alfresco\WEB-INF.
Here http://wiki.alfresco.com/wiki/Java-backed_Web_Scripts_Samples#Locations_of_the_files you can find the right location of files and here http://bpeters.tumblr.com/post/4206811462/alfresco-java-based-spring-web-script you get a full example.

Regards,
Andrea