<?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 Override Existing Webscript in Alfresco Forum</title>
    <link>https://connect.hyland.com/t5/alfresco-forum/override-existing-webscript/m-p/105586#M29871</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;I am trying to override LoginPost.java.&lt;/P&gt;&lt;P&gt;I am following below approach.I am using sdk2 for development.&lt;/P&gt;&lt;P&gt;I have created xxx-context.xml&amp;nbsp;&amp;nbsp;within /alfresco/extension folder with bean(if this approach is not proper hten let me know proper approach for overriding existing webscript).&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;lt;bean id="webscript.org.alfresco.repository.login.post" class="org.alfresco.repo.web.scripts.bean.LoginPost" parent="webscript"&amp;gt;&lt;BR /&gt; &amp;lt;property name="authenticationService" ref="AuthenticationService" /&amp;gt;&lt;BR /&gt; &amp;lt;property name="eventPublisher" ref="eventPublisher" /&amp;gt;&lt;BR /&gt; &amp;lt;/bean&amp;gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;It is working fine within sdk but as I am deploying amps to community then its not working.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I have found issue that it is not taking my customized webscript instead it is taking exsiting loginpost.&lt;/P&gt;&lt;P&gt;I have rename the name of my project&amp;nbsp; jar&amp;nbsp;within alfresco-community\tomcat\webapps\alfresco\WEB-INF\lib\&amp;nbsp; &amp;nbsp; to aaa.jar then its working means jar file is loaded alphabetical order.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;How to solve this issue.&lt;/P&gt;&lt;P&gt;Help will be appreciated.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;B&gt;Jeff Potts&lt;/B&gt;‌&lt;/P&gt;&lt;P&gt;&lt;B&gt;Francesco Corti&lt;/B&gt;‌&lt;/P&gt;&lt;P&gt;Please comment on this.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Fri, 24 May 2019 11:27:37 GMT</pubDate>
    <dc:creator>sp2</dc:creator>
    <dc:date>2019-05-24T11:27:37Z</dc:date>
    <item>
      <title>Override Existing Webscript</title>
      <link>https://connect.hyland.com/t5/alfresco-forum/override-existing-webscript/m-p/105586#M29871</link>
      <description>I am trying to override LoginPost.java.I am following below approach.I am using sdk2 for development.I have created xxx-context.xml&amp;nbsp;&amp;nbsp;within /alfresco/extension folder with bean(if this approach is not proper hten let me know proper approach for overriding existing webscript).&amp;nbsp;&amp;lt;bean id="webscript.</description>
      <pubDate>Fri, 24 May 2019 11:27:37 GMT</pubDate>
      <guid>https://connect.hyland.com/t5/alfresco-forum/override-existing-webscript/m-p/105586#M29871</guid>
      <dc:creator>sp2</dc:creator>
      <dc:date>2019-05-24T11:27:37Z</dc:date>
    </item>
    <item>
      <title>Re: Override Existing Webscript</title>
      <link>https://connect.hyland.com/t5/alfresco-forum/override-existing-webscript/m-p/105587#M29872</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Sanjay,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Which Alfresco version are you using?&lt;BR /&gt;And which version of SDK?&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 28 May 2019 09:00:59 GMT</pubDate>
      <guid>https://connect.hyland.com/t5/alfresco-forum/override-existing-webscript/m-p/105587#M29872</guid>
      <dc:creator>fcorti</dc:creator>
      <dc:date>2019-05-28T09:00:59Z</dc:date>
    </item>
    <item>
      <title>Re: Override Existing Webscript</title>
      <link>https://connect.hyland.com/t5/alfresco-forum/override-existing-webscript/m-p/105588#M29873</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;I have solve it by doing this way.&lt;/P&gt;&lt;P&gt;/alfresco/extension/custom-web-context.xml&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&amp;lt;bean id="webscript.org.alfresco.repository.login.post" class="org.alfresco.repo.web.scripts.bean.CustomLoginPost" parent="webscript"&amp;gt;&lt;BR /&gt; &amp;lt;property name="authenticationService" ref="AuthenticationService" /&amp;gt;&lt;BR /&gt; &amp;lt;/bean&amp;gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 28 May 2019 12:16:24 GMT</pubDate>
      <guid>https://connect.hyland.com/t5/alfresco-forum/override-existing-webscript/m-p/105588#M29873</guid>
      <dc:creator>sp2</dc:creator>
      <dc:date>2019-05-28T12:16:24Z</dc:date>
    </item>
  </channel>
</rss>

