<?xml version="1.0" encoding="UTF-8"?>
<rss xmlns:content="http://purl.org/rss/1.0/modules/content/" xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:rdf="http://www.w3.org/1999/02/22-rdf-syntax-ns#" xmlns:taxo="http://purl.org/rss/1.0/modules/taxonomy/" version="2.0">
  <channel>
    <title>topic Right way to package repository web scripts in a JAR? in Alfresco Archive</title>
    <link>https://connect.hyland.com/t5/alfresco-archive/right-way-to-package-repository-web-scripts-in-a-jar/m-p/281965#M235095</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;First, let me say I am not a Java developer, so this may be a bonehead question.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;I've put together a little extension for Alfresco share, which includes a bunch of resource files, customizations, Surf Web Scripts, etc.&amp;nbsp; All of these files are packaged in a JAR.&amp;nbsp; 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.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;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.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;EXCEPT for repository web scripts.&amp;nbsp; I found numerous accounts online for where the repository scripts need to go in a JAR file, but none of them worked for me.&amp;nbsp; 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.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;What am I missing here?&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;I've tried placing the web scripts on the following paths, to no avail:&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;config/alfresco/templates/webscripts&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;alfresco/templates/webscripts&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;alfresco/site-webscripts/templates&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;WEB-INF/classes/alfresco/extension/templates/webscripts&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Any help is much appreciated!&lt;/SPAN&gt;&lt;BR /&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Tue, 27 Aug 2013 17:57:38 GMT</pubDate>
    <dc:creator>davidbalt</dc:creator>
    <dc:date>2013-08-27T17:57:38Z</dc:date>
    <item>
      <title>Right way to package repository web scripts in a JAR?</title>
      <link>https://connect.hyland.com/t5/alfresco-archive/right-way-to-package-repository-web-scripts-in-a-jar/m-p/281965#M235095</link>
      <description>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.&amp;nbsp; All of these files are packaged in a JAR.&amp;nbsp; Yes, I know a WAR would be better, but</description>
      <pubDate>Tue, 27 Aug 2013 17:57:38 GMT</pubDate>
      <guid>https://connect.hyland.com/t5/alfresco-archive/right-way-to-package-repository-web-scripts-in-a-jar/m-p/281965#M235095</guid>
      <dc:creator>davidbalt</dc:creator>
      <dc:date>2013-08-27T17:57:38Z</dc:date>
    </item>
    <item>
      <title>Re: Right way to package repository web scripts in a JAR?</title>
      <link>https://connect.hyland.com/t5/alfresco-archive/right-way-to-package-repository-web-scripts-in-a-jar/m-p/281966#M235096</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;Hi,&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;to become more familiar with the structure of the jar, you can check those documentations :&lt;/SPAN&gt;&lt;BR /&gt;&lt;A href="https://code.google.com/p/share-extras/wiki/SampleProject" rel="nofollow noopener noreferrer"&gt;https://code.google.com/p/share-extras/wiki/SampleProject&lt;/A&gt;&lt;BR /&gt;&lt;A href="https://code.google.com/p/share-extras/wiki/DevelopmentEnvironment" rel="nofollow noopener noreferrer"&gt;https://code.google.com/p/share-extras/wiki/DevelopmentEnvironment&lt;/A&gt;&lt;BR /&gt;&lt;SPAN&gt;Many examples can be found on share-extras. You just have to check how they are made to get helped.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Regarding repository web scripts, the wiki gives you a step by step guide to create a repository web script, and explain the different places where to deploy it, : &lt;/SPAN&gt;&lt;A href="http://wiki.alfresco.com/wiki/Web_Scripts#How_Do_I_Create_a_Web_Script.3F" rel="nofollow noopener noreferrer"&gt;http://wiki.alfresco.com/wiki/Web_Scripts#How_Do_I_Create_a_Web_Script.3F&lt;/A&gt;&lt;SPAN&gt;.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Hope that will help you !&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 28 Aug 2013 13:52:37 GMT</pubDate>
      <guid>https://connect.hyland.com/t5/alfresco-archive/right-way-to-package-repository-web-scripts-in-a-jar/m-p/281966#M235096</guid>
      <dc:creator>ecarbenay</dc:creator>
      <dc:date>2013-08-28T13:52:37Z</dc:date>
    </item>
  </channel>
</rss>

