AnsweredAssumed Answered

Right way to package repository web scripts in a JAR?

Question asked by davidbalt on Aug 27, 2013
Latest reply on Aug 28, 2013 by ecarbenay
First, let me say I am not a Java developer, so this may be a bonehead question.

I've put together a little extension for Alfresco share, which includes a bunch of resource files, customizations, Surf Web Scripts, etc.  All of these files are packaged in a JAR.  Yes, I know a WAR would be better, but for rapid turnaround I have been using a JAR for now, since all I have to do is place it in the lib/ folder and restart alfresco to see it applied.

Everything is working OK with the JAR, except of course I have no idea why most of the files have to be in the particular folder structures that apparently they need to be in… but it is working.

EXCEPT for repository web scripts.  I found numerous accounts online for where the repository scripts need to go in a JAR file, but none of them worked for me.  Right now I have been forced to place the repo scripts into Data Dictionary/Web Scripts in order to get them working, but I'd like to have all the file associated with my project in a single JAR file if at all feasible.

What am I missing here?

I've tried placing the web scripts on the following paths, to no avail:

config/alfresco/templates/webscripts
alfresco/templates/webscripts
alfresco/site-webscripts/templates
WEB-INF/classes/alfresco/extension/templates/webscripts

Any help is much appreciated!

Outcomes