<?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 web scripts placed in class path folder not recognized in Alfresco Archive</title>
    <link>https://connect.hyland.com/t5/alfresco-archive/web-scripts-placed-in-class-path-folder-not-recognized/m-p/215118#M168248</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;I placed a simple webscript in class path folder: {Alfresco_installation}\tomcat\webapps\alfresco\WEB-INF\classes\alfresco\extension\templates\webscripts\com\dev\simpletwo&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;went to &lt;/SPAN&gt;&lt;BR /&gt;&lt;A href="http://localhost:8080/alfresco/service/index" rel="nofollow noopener noreferrer"&gt;http://localhost:8080/alfresco/service/index&lt;/A&gt;&lt;SPAN&gt; and refreshed web scripts, but my web script is not being recognized.&amp;nbsp; &lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;What is wrong?&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;simpletwo.get.desc.xml&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;&amp;lt;webscript&amp;gt;&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;&amp;lt;shortname&amp;gt;Simple Two&amp;lt;/shortname&amp;gt;&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;&amp;lt;description&amp;gt;Simple Two web script&amp;lt;/description&amp;gt;&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;&amp;lt;url&amp;gt;/simpletwo?name={nameArgument}&amp;lt;/url&amp;gt;&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;&amp;lt;authentication&amp;gt;user&amp;lt;/authentication&amp;gt; &lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;&amp;lt;transaction&amp;gt;required&amp;lt;/transaction&amp;gt;&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;&amp;lt;/webscript&amp;gt;&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;simpletwo.get.html.ftl&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;&amp;lt;html&amp;gt;&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;&amp;lt;body&amp;gt;&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;&amp;lt;p&amp;gt;Simple 2, ${args.name}!&amp;lt;/p&amp;gt;&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;&amp;lt;/body&amp;gt;&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;&amp;lt;/html&amp;gt;&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;According to the alfresco wiki on web scripts, we can place web scripts in the following:&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;BLOCKQUOTE class="jive-quote"&gt;These files need to be stored in a folder somewhere. They can live in either the Alfresco Repository or the Java ClassPath. The following folders are listed in the sequence in which Alfresco searches for Web Script implementation files:&lt;BR /&gt;&lt;BR /&gt;&amp;nbsp;&amp;nbsp; 1. repository folder: /Company Home/Data Dictionary/Web Scripts Extensions&lt;BR /&gt;&amp;nbsp;&amp;nbsp; 2. repository folder: /Company Home/Data Dictionary/Web Scripts&lt;BR /&gt;&amp;nbsp;&amp;nbsp; 3. class path folder: /alfresco/extension/templates/webscripts&lt;BR /&gt;&amp;nbsp;&amp;nbsp; 4. class path folder: /alfresco/templates/webscripts &lt;BR /&gt;&lt;BR /&gt;Within any of these folders, you can use subfolders to organize web scripts.&lt;BR /&gt;&lt;BR /&gt;New web scripts will not be visible until the "Refresh Web Scripts" link is clicked on the /alfresco/service/ page.&lt;/BLOCKQUOTE&gt;&lt;BR /&gt;&lt;A href="http://wiki.alfresco.com/wiki/Web_Scripts" rel="nofollow noopener noreferrer"&gt;http://wiki.alfresco.com/wiki/Web_Scripts&lt;/A&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;using Alfresco EE 3.2 on Vista&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;to get the web script identified by alfresco, need to load to &lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;&amp;nbsp;&amp;nbsp; 1. repository folder: /Company Home/Data Dictionary/Web Scripts Extensions&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;and refresh.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;but other paths should work?&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Tue, 23 Feb 2010 11:02:14 GMT</pubDate>
    <dc:creator>targa2000</dc:creator>
    <dc:date>2010-02-23T11:02:14Z</dc:date>
    <item>
      <title>web scripts placed in class path folder not recognized</title>
      <link>https://connect.hyland.com/t5/alfresco-archive/web-scripts-placed-in-class-path-folder-not-recognized/m-p/215118#M168248</link>
      <description>I placed a simple webscript in class path folder: {Alfresco_installation}\tomcat\webapps\alfresco\WEB-INF\classes\alfresco\extension\templates\webscripts\com\dev\simpletwowent to http://localhost:8080/alfresco/service/index and refreshed web scripts, but my web script is not being recognized.&amp;nbsp; What</description>
      <pubDate>Tue, 23 Feb 2010 11:02:14 GMT</pubDate>
      <guid>https://connect.hyland.com/t5/alfresco-archive/web-scripts-placed-in-class-path-folder-not-recognized/m-p/215118#M168248</guid>
      <dc:creator>targa2000</dc:creator>
      <dc:date>2010-02-23T11:02:14Z</dc:date>
    </item>
    <item>
      <title>Re: web scripts placed in class path folder not recognized</title>
      <link>https://connect.hyland.com/t5/alfresco-archive/web-scripts-placed-in-class-path-folder-not-recognized/m-p/215119#M168249</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;Which version of Alfresco you are using.&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;In 3.2 tomcat/webapps/alfresco/WEB-INF/classes/alfresco/extension/ folder has the bootstrap scripts and&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;if you drop your webscripts into &lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;tomcat/webapps/alfresco/WEB-INF/classes/alfresco/templates/webscripts, then it should pick the webscripts&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;after a refresh of the webscripts&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 23 Feb 2010 12:05:33 GMT</pubDate>
      <guid>https://connect.hyland.com/t5/alfresco-archive/web-scripts-placed-in-class-path-folder-not-recognized/m-p/215119#M168249</guid>
      <dc:creator>ssaravanan</dc:creator>
      <dc:date>2010-02-23T12:05:33Z</dc:date>
    </item>
    <item>
      <title>Re: web scripts placed in class path folder not recognized</title>
      <link>https://connect.hyland.com/t5/alfresco-archive/web-scripts-placed-in-class-path-folder-not-recognized/m-p/215120#M168250</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;it only picked it up on restart of tomcat.&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 23 Feb 2010 12:18:22 GMT</pubDate>
      <guid>https://connect.hyland.com/t5/alfresco-archive/web-scripts-placed-in-class-path-folder-not-recognized/m-p/215120#M168250</guid>
      <dc:creator>targa2000</dc:creator>
      <dc:date>2010-02-23T12:18:22Z</dc:date>
    </item>
    <item>
      <title>Re: web scripts placed in class path folder not recognized</title>
      <link>https://connect.hyland.com/t5/alfresco-archive/web-scripts-placed-in-class-path-folder-not-recognized/m-p/215121#M168251</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;Anything you put on the extensions folder will definitely get picked only after restart.&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;If you drop your webscripts into &lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;tomcat/webapps/alfresco/WEB-INF/classes/alfresco/templates/webscripts&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;Then a refresh will serve the purpose.&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;As I told earlier,&amp;nbsp; tomcat/webapps/alfresco/WEB-INF/classes/alfresco/extension/ folder has the bootstrap scripts&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;so anything you drop in that folder will get picked up only at restart.&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 23 Feb 2010 12:23:24 GMT</pubDate>
      <guid>https://connect.hyland.com/t5/alfresco-archive/web-scripts-placed-in-class-path-folder-not-recognized/m-p/215121#M168251</guid>
      <dc:creator>ssaravanan</dc:creator>
      <dc:date>2010-02-23T12:23:24Z</dc:date>
    </item>
    <item>
      <title>Re: web scripts placed in class path folder not recognized</title>
      <link>https://connect.hyland.com/t5/alfresco-archive/web-scripts-placed-in-class-path-folder-not-recognized/m-p/215122#M168252</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;It's never a good idea to modify files inside the deployed webapp folder; as soon as the .war file gets redeployed all your changes will be lost!&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Instead, replace &lt;/SPAN&gt;&lt;STRONG&gt;webapps\alfresco\WEB-INF\&lt;/STRONG&gt;&lt;SPAN&gt; with &lt;/SPAN&gt;&lt;STRONG&gt;shared\&lt;/STRONG&gt;&lt;SPAN&gt; and deploy your webscript there.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Thanks,&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;Mike&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 23 Feb 2010 12:26:41 GMT</pubDate>
      <guid>https://connect.hyland.com/t5/alfresco-archive/web-scripts-placed-in-class-path-folder-not-recognized/m-p/215122#M168252</guid>
      <dc:creator>mikeh</dc:creator>
      <dc:date>2010-02-23T12:26:41Z</dc:date>
    </item>
    <item>
      <title>Re: web scripts placed in class path folder not recognized</title>
      <link>https://connect.hyland.com/t5/alfresco-archive/web-scripts-placed-in-class-path-folder-not-recognized/m-p/215123#M168253</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;Hi guys,&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;i'm using alfresco 3.0 labs and i have a similar problem with loading webscripts. &lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;I placed some webscripts in class path folder: {Alfresco_installation}\tomcat\webapps\alfresco\WEB-INF\classes\alfresco\extension\templates\webscripts. My webscripts are organized like folderx/foldery/webscript-file. &lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;I am not able to load this webscripts even restarting alfresco. I have moved the webscripts outside the folder structure without results. Moving the webscripts to&amp;nbsp; {Alfresco_installation}\tomcat\shared\classes\alfresco\templates\webscripts works.&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;I have other things under {Alfresco_installation}\tomcat\shared\classes\alfresco including configuration file and webscripts.&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;Any idea? &lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;It is possible that the two directory:&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;- {Alfresco_installation}\tomcat\webapps\alfresco\WEB-INF\classes\alfresco\extension\templates\webscripts&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;- {Alfresco_installation}\tomcat\shared\classes\alfresco\templates\webscripts&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt; clash in some way? I mean the classpath relative path is the same.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Any help would appreciated.&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 28 Oct 2010 13:26:01 GMT</pubDate>
      <guid>https://connect.hyland.com/t5/alfresco-archive/web-scripts-placed-in-class-path-folder-not-recognized/m-p/215123#M168253</guid>
      <dc:creator>dc_noze</dc:creator>
      <dc:date>2010-10-28T13:26:01Z</dc:date>
    </item>
  </channel>
</rss>

