<?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 Re: java backed webscript not using FTL deployed via amp URGENT in Alfresco Archive</title>
    <link>https://connect.hyland.com/t5/alfresco-archive/java-backed-webscript-not-using-ftl-deployed-via-amp-urgent/m-p/225026#M178156</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;thanks for the reply &lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;my descriptor file is named &lt;/SPAN&gt;&lt;SPAN style="color:#0000FF;"&gt;&lt;STRONG&gt;sampler.post.desc.xml &lt;/STRONG&gt;&lt;/SPAN&gt;&lt;SPAN&gt;and the bean id is declared as &lt;/SPAN&gt;&lt;STRONG style="color: #0000FF;"&gt;webscript.packagename.sampler.myjavaclass.post&lt;/STRONG&gt;&lt;SPAN&gt;.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;and i've tried removing the format as well. I'm still interested in finding out why this is happening so any other suggestions would still be helpful.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;on another note:&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;Now I tried it without the amp file and just deployed based on the alfresco war file. I updated the web-scripts-application-context.xml to include my bean, same bean as above, and placed my sampler.post.desc.xml in the repository via the add content in Company Home &amp;gt; Data Dictionary &amp;gt; Web Scripts Extensions &lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;using &lt;/SPAN&gt;&lt;A href="https://myserver/alfresco/wcservice/sampler/myjavaclass" rel="nofollow noopener noreferrer"&gt;https://myserver/alfresco/wcservice/sampler/myjavaclass&lt;/A&gt;&lt;SPAN&gt; and I get this error:&lt;/SPAN&gt;&lt;BR /&gt;&lt;PRE class="language-none line-numbers"&gt;&lt;CODE&gt;&lt;BR /&gt; The method specified in the Request-Line is not allowed for the resource identified by the Request-URI.&lt;BR /&gt;&lt;BR /&gt;org.alfresco.web.scripts.WebScriptException - Script url /sampler/myjavaclass does not support the method GET&lt;BR /&gt;&lt;BR /&gt;org.alfresco.web.scripts.AbstractRuntime.executeScript(AbstractRuntime.java:113)&lt;BR /&gt;org.alfresco.web.scripts.servlet.WebScriptServlet.service(WebScriptServlet.java:122)&lt;BR /&gt;…more &lt;BR /&gt;&lt;SPAN class="line-numbers-rows"&gt;&lt;SPAN&gt;‍&lt;/SPAN&gt;&lt;SPAN&gt;‍&lt;/SPAN&gt;&lt;SPAN&gt;‍&lt;/SPAN&gt;&lt;SPAN&gt;‍&lt;/SPAN&gt;&lt;SPAN&gt;‍&lt;/SPAN&gt;&lt;SPAN&gt;‍&lt;/SPAN&gt;&lt;SPAN&gt;‍&lt;/SPAN&gt;&lt;SPAN&gt;‍&lt;/SPAN&gt;&lt;SPAN&gt;‍&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/CODE&gt;&lt;/PRE&gt;&lt;SPAN&gt;thanks&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Wed, 16 Sep 2009 02:34:10 GMT</pubDate>
    <dc:creator>renaissance</dc:creator>
    <dc:date>2009-09-16T02:34:10Z</dc:date>
    <item>
      <title>java backed webscript not using FTL deployed via amp URGENT</title>
      <link>https://connect.hyland.com/t5/alfresco-archive/java-backed-webscript-not-using-ftl-deployed-via-amp-urgent/m-p/225024#M178154</link>
      <description>Hi,I've been pondering on this error for a number of days now and it has become very counter productive. I am deploying a module via an amp file of my customisations for the webscripts and configurations. The structure of the amp file is as follows:-config&amp;nbsp;&amp;nbsp; -alfresco&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; -module&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; -my-module</description>
      <pubDate>Wed, 16 Sep 2009 02:04:54 GMT</pubDate>
      <guid>https://connect.hyland.com/t5/alfresco-archive/java-backed-webscript-not-using-ftl-deployed-via-amp-urgent/m-p/225024#M178154</guid>
      <dc:creator>renaissance</dc:creator>
      <dc:date>2009-09-16T02:04:54Z</dc:date>
    </item>
    <item>
      <title>Re: java backed webscript not using FTL deployed via amp URGENT</title>
      <link>https://connect.hyland.com/t5/alfresco-archive/java-backed-webscript-not-using-ftl-deployed-via-amp-urgent/m-p/225025#M178155</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;In your desc.xml try take out the default="" attribute or put a format for the default, either json, or html, etc.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;And as for the method not supported error, make sure your description/webscript file names are correct (.get. / .post.) and also goes the same for your bean definition.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Thanks&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;&lt;img id="smileyhappy" class="emoticon emoticon-smileyhappy" src="https://connect.hyland.com/i/smilies/16x16_smiley-happy.png" alt="Smiley Happy" title="Smiley Happy" /&gt;&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 16 Sep 2009 02:25:08 GMT</pubDate>
      <guid>https://connect.hyland.com/t5/alfresco-archive/java-backed-webscript-not-using-ftl-deployed-via-amp-urgent/m-p/225025#M178155</guid>
      <dc:creator>hyperation</dc:creator>
      <dc:date>2009-09-16T02:25:08Z</dc:date>
    </item>
    <item>
      <title>Re: java backed webscript not using FTL deployed via amp URGENT</title>
      <link>https://connect.hyland.com/t5/alfresco-archive/java-backed-webscript-not-using-ftl-deployed-via-amp-urgent/m-p/225026#M178156</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;thanks for the reply &lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;my descriptor file is named &lt;/SPAN&gt;&lt;SPAN style="color:#0000FF;"&gt;&lt;STRONG&gt;sampler.post.desc.xml &lt;/STRONG&gt;&lt;/SPAN&gt;&lt;SPAN&gt;and the bean id is declared as &lt;/SPAN&gt;&lt;STRONG style="color: #0000FF;"&gt;webscript.packagename.sampler.myjavaclass.post&lt;/STRONG&gt;&lt;SPAN&gt;.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;and i've tried removing the format as well. I'm still interested in finding out why this is happening so any other suggestions would still be helpful.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;on another note:&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;Now I tried it without the amp file and just deployed based on the alfresco war file. I updated the web-scripts-application-context.xml to include my bean, same bean as above, and placed my sampler.post.desc.xml in the repository via the add content in Company Home &amp;gt; Data Dictionary &amp;gt; Web Scripts Extensions &lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;using &lt;/SPAN&gt;&lt;A href="https://myserver/alfresco/wcservice/sampler/myjavaclass" rel="nofollow noopener noreferrer"&gt;https://myserver/alfresco/wcservice/sampler/myjavaclass&lt;/A&gt;&lt;SPAN&gt; and I get this error:&lt;/SPAN&gt;&lt;BR /&gt;&lt;PRE class="language-none line-numbers"&gt;&lt;CODE&gt;&lt;BR /&gt; The method specified in the Request-Line is not allowed for the resource identified by the Request-URI.&lt;BR /&gt;&lt;BR /&gt;org.alfresco.web.scripts.WebScriptException - Script url /sampler/myjavaclass does not support the method GET&lt;BR /&gt;&lt;BR /&gt;org.alfresco.web.scripts.AbstractRuntime.executeScript(AbstractRuntime.java:113)&lt;BR /&gt;org.alfresco.web.scripts.servlet.WebScriptServlet.service(WebScriptServlet.java:122)&lt;BR /&gt;…more &lt;BR /&gt;&lt;SPAN class="line-numbers-rows"&gt;&lt;SPAN&gt;‍&lt;/SPAN&gt;&lt;SPAN&gt;‍&lt;/SPAN&gt;&lt;SPAN&gt;‍&lt;/SPAN&gt;&lt;SPAN&gt;‍&lt;/SPAN&gt;&lt;SPAN&gt;‍&lt;/SPAN&gt;&lt;SPAN&gt;‍&lt;/SPAN&gt;&lt;SPAN&gt;‍&lt;/SPAN&gt;&lt;SPAN&gt;‍&lt;/SPAN&gt;&lt;SPAN&gt;‍&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/CODE&gt;&lt;/PRE&gt;&lt;SPAN&gt;thanks&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 16 Sep 2009 02:34:10 GMT</pubDate>
      <guid>https://connect.hyland.com/t5/alfresco-archive/java-backed-webscript-not-using-ftl-deployed-via-amp-urgent/m-p/225026#M178156</guid>
      <dc:creator>renaissance</dc:creator>
      <dc:date>2009-09-16T02:34:10Z</dc:date>
    </item>
    <item>
      <title>Re: java backed webscript not using FTL deployed via amp URGENT</title>
      <link>https://connect.hyland.com/t5/alfresco-archive/java-backed-webscript-not-using-ftl-deployed-via-amp-urgent/m-p/225027#M178157</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;On Firefox, download the add-on call Poster and use that to do a POST call to the webscript.&amp;nbsp; If that works, then there's nothing wrong with the web script.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Thanks&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;&lt;img id="smileyhappy" class="emoticon emoticon-smileyhappy" src="https://connect.hyland.com/i/smilies/16x16_smiley-happy.png" alt="Smiley Happy" title="Smiley Happy" /&gt;&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 16 Sep 2009 20:28:47 GMT</pubDate>
      <guid>https://connect.hyland.com/t5/alfresco-archive/java-backed-webscript-not-using-ftl-deployed-via-amp-urgent/m-p/225027#M178157</guid>
      <dc:creator>hyperation</dc:creator>
      <dc:date>2009-09-16T20:28:47Z</dc:date>
    </item>
    <item>
      <title>Re: java backed webscript not using FTL deployed via amp URGENT</title>
      <link>https://connect.hyland.com/t5/alfresco-archive/java-backed-webscript-not-using-ftl-deployed-via-amp-urgent/m-p/225028#M178158</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;I've got the solution to my post and for the benefit of those who might have the same problem here it goes.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;1. First and foremost if your using a POST don't test the URL directly on a browser. The browser will use a GET hence the Not supported Method GET error.&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;2. Make sure that your bean is recognised in the context. If the bean is not correctly configured, calls to the module id will call the default Alfresco DeclarativeWebScript class. This was whats causing my confusion as to why I was getting a DeclarativeWebScript error dump while I had implemented the AbstractWebScript class on my controller. MAke sure that the bean ID matches the qualified name of the descriptor. &lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;PRE class="language-none line-numbers"&gt;&lt;CODE&gt;&lt;BR /&gt;com&lt;BR /&gt;&amp;nbsp; something&lt;BR /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; myDescriptor.get.desc.xml&lt;BR /&gt;&lt;BR /&gt;bean should be&lt;BR /&gt;&amp;lt;bean id="webscript.com.something.myDescriptor.post" …/&amp;gt;&lt;BR /&gt;&lt;SPAN class="line-numbers-rows"&gt;&lt;SPAN&gt;‍&lt;/SPAN&gt;&lt;SPAN&gt;‍&lt;/SPAN&gt;&lt;SPAN&gt;‍&lt;/SPAN&gt;&lt;SPAN&gt;‍&lt;/SPAN&gt;&lt;SPAN&gt;‍&lt;/SPAN&gt;&lt;SPAN&gt;‍&lt;/SPAN&gt;&lt;SPAN&gt;‍&lt;/SPAN&gt;&lt;SPAN&gt;‍&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/CODE&gt;&lt;/PRE&gt;&lt;BR /&gt;&lt;SPAN&gt;Now that thats resolved my next question is where should modlue specific property files be placed? In my amp file I've currently got it in &lt;/SPAN&gt;&lt;BR /&gt;&lt;PRE class="language-none line-numbers"&gt;&lt;CODE&gt;config/alfresco/module/module id/mypropertyfile.properties &lt;BR /&gt;&lt;BR /&gt;This gets extracted to WEB-INF/classes/alfresco/module/module id/mypropertyfile.properties &lt;BR /&gt;&lt;SPAN class="line-numbers-rows"&gt;&lt;SPAN&gt;‍&lt;/SPAN&gt;&lt;SPAN&gt;‍&lt;/SPAN&gt;&lt;SPAN&gt;‍&lt;/SPAN&gt;&lt;SPAN&gt;‍&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/CODE&gt;&lt;/PRE&gt;&lt;BR /&gt;&lt;SPAN&gt;I assume that this is ok since it is inside the classpath. But my controller class is saying differently. It can't locate my property file.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Any ideas on where is should go?&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;And thanks Hyp… for the suggestions.&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 16 Sep 2009 22:41:24 GMT</pubDate>
      <guid>https://connect.hyland.com/t5/alfresco-archive/java-backed-webscript-not-using-ftl-deployed-via-amp-urgent/m-p/225028#M178158</guid>
      <dc:creator>renaissance</dc:creator>
      <dc:date>2009-09-16T22:41:24Z</dc:date>
    </item>
    <item>
      <title>Re: java backed webscript not using FTL deployed via amp URGENT</title>
      <link>https://connect.hyland.com/t5/alfresco-archive/java-backed-webscript-not-using-ftl-deployed-via-amp-urgent/m-p/225029#M178159</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;I had seen a JIRA(# ?) dealing with the problem. It turns out that the ……resourceBundleBootstrap.class does not recognize a location other than either alfresco/messages or alfresco/extension for the path to your properties. I received a NullPointerException in the JSF until I restructured.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;So, short story long, place them under alfresco/extension or alfresco/messages.&amp;nbsp; Kind of defeats the purpose for having a named module…&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 28 Sep 2009 13:40:03 GMT</pubDate>
      <guid>https://connect.hyland.com/t5/alfresco-archive/java-backed-webscript-not-using-ftl-deployed-via-amp-urgent/m-p/225029#M178159</guid>
      <dc:creator>kbootz</dc:creator>
      <dc:date>2009-09-28T13:40:03Z</dc:date>
    </item>
  </channel>
</rss>

