<?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 Error while deploying amp file to the war in Alfresco Forum</title>
    <link>https://connect.hyland.com/t5/alfresco-forum/error-while-deploying-amp-file-to-the-war/m-p/87970#M26448</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;I am trying to deploy an amp file that has some customisation in to the war file that is on a remote server. I created the amp file by using documentation&amp;nbsp;&lt;A href="https://docs.alfresco.com/5.1/tasks/alfresco-sdk-tutorials-share-amp-archetype.html" rel="nofollow noopener noreferrer"&gt;https://docs.alfresco.com/5.1/tasks/alfresco-sdk-tutorials-share-amp-archetype.html&lt;/A&gt;.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Everything goes well till here. I obtain amp file from .&lt;SPAN style="color: #58595b; background-color: #ffffff;"&gt;m2/repository/com/ folder.&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #58595b; background-color: #ffffff;"&gt;To install the amp I used this documentation&amp;nbsp;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #58595b; background-color: #ffffff;"&gt;&lt;A href="https://docs.alfresco.com/5.2/tasks/amp-install.html" rel="nofollow noopener noreferrer"&gt;https://docs.alfresco.com/5.2/tasks/amp-install.html&lt;/A&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #58595b; background-color: #ffffff;"&gt;&amp;nbsp;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #58595b; background-color: #ffffff;"&gt;Then I move the amp file to the remote server.and use&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;PRE class="" style="color: #333333; background-color: #f5f5f5; border: 1px solid #888888; margin: 0px 0px 20px; padding: 2px;"&gt;&lt;SPAN class="" style="color: #000000;"&gt;java &lt;/SPAN&gt;&lt;SPAN class="" style="color: #666600;"&gt;-&lt;/SPAN&gt;&lt;SPAN class="" style="color: #000000;"&gt;jar alfresco&lt;/SPAN&gt;&lt;SPAN class="" style="color: #666600;"&gt;-&lt;/SPAN&gt;&lt;SPAN class="" style="color: #000000;"&gt;mmt&lt;/SPAN&gt;&lt;SPAN class="" style="color: #666600;"&gt;.&lt;/SPAN&gt;&lt;SPAN class="" style="color: #000000;"&gt;jar install example&lt;/SPAN&gt;&lt;SPAN class="" style="color: #666600;"&gt;-&lt;/SPAN&gt;&lt;SPAN class="" style="color: #000000;"&gt;amp&lt;/SPAN&gt;&lt;SPAN class="" style="color: #666600;"&gt;.&lt;/SPAN&gt;&lt;SPAN class="" style="color: #000000;"&gt;amp share&lt;/SPAN&gt;&lt;SPAN class="" style="color: #666600;"&gt;.&lt;/SPAN&gt;&lt;SPAN class="" style="color: #000000;"&gt;war &lt;/SPAN&gt;&lt;SPAN class="" style="color: #666600;"&gt;-&lt;/SPAN&gt;&lt;SPAN class="" style="color: #000000;"&gt;preview&lt;/SPAN&gt;&lt;/PRE&gt;&lt;P&gt;When I run this command i encounter my first error. Below is the error.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;05120001 An error was encountered during deployment of the AMP into the WAR: 05120000 ERROR: The amp will overwrite an existing file in the war '/js/example/widgets/templates/TemplateWidget.html'&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;It does give the option to use -force option Below is the command I used with the force command.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;PRE class="" style="color: #333333; background-color: #f5f5f5; border: 1px solid #888888; margin: 0px 0px 20px; padding: 2px;"&gt;&lt;SPAN class="" style="color: #000000;"&gt;java &lt;/SPAN&gt;&lt;SPAN class="" style="color: #666600;"&gt;-&lt;/SPAN&gt;&lt;SPAN class="" style="color: #000000;"&gt;jar alfresco&lt;/SPAN&gt;&lt;SPAN class="" style="color: #666600;"&gt;-&lt;/SPAN&gt;&lt;SPAN class="" style="color: #000000;"&gt;mmt&lt;/SPAN&gt;&lt;SPAN class="" style="color: #666600;"&gt;.&lt;/SPAN&gt;&lt;SPAN class="" style="color: #000000;"&gt;jar install example&lt;/SPAN&gt;&lt;SPAN class="" style="color: #666600;"&gt;-&lt;/SPAN&gt;&lt;SPAN class="" style="color: #000000;"&gt;amp&lt;/SPAN&gt;&lt;SPAN class="" style="color: #666600;"&gt;.&lt;/SPAN&gt;&lt;SPAN class="" style="color: #000000;"&gt;amp share&lt;/SPAN&gt;&lt;SPAN class="" style="color: #666600;"&gt;.&lt;/SPAN&gt;&lt;SPAN class="" style="color: #000000;"&gt;war &lt;/SPAN&gt;&lt;SPAN class="" style="color: #666600;"&gt;-&lt;/SPAN&gt;&lt;SPAN style="color: #000000;"&gt;force&lt;/SPAN&gt;&lt;/PRE&gt;&lt;P&gt;When this command is run, it works fine. Then I delete the share folder from alfresco_home/opt/alfresco/tomcat/webapps and restart alfresco. But no change is made to the share.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Can anyone help. Is there anything I am missing.?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks in advance.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Wed, 12 Jun 2019 05:53:57 GMT</pubDate>
    <dc:creator>prashidhashrest</dc:creator>
    <dc:date>2019-06-12T05:53:57Z</dc:date>
    <item>
      <title>Error while deploying amp file to the war</title>
      <link>https://connect.hyland.com/t5/alfresco-forum/error-while-deploying-amp-file-to-the-war/m-p/87970#M26448</link>
      <description>I am trying to deploy an amp file that has some customisation in to the war file that is on a remote server. I created the amp file by using documentation&amp;nbsp;https://docs.alfresco.com/5.1/tasks/alfresco-sdk-tutorials-share-amp-archetype.html.Everything goes well till here. I obtain amp file from .m2/re</description>
      <pubDate>Wed, 12 Jun 2019 05:53:57 GMT</pubDate>
      <guid>https://connect.hyland.com/t5/alfresco-forum/error-while-deploying-amp-file-to-the-war/m-p/87970#M26448</guid>
      <dc:creator>prashidhashrest</dc:creator>
      <dc:date>2019-06-12T05:53:57Z</dc:date>
    </item>
    <item>
      <title>Re: Error while deploying amp file to the war</title>
      <link>https://connect.hyland.com/t5/alfresco-forum/error-while-deploying-amp-file-to-the-war/m-p/87971#M26449</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Please notice that alfresco and share are two separate applications. If you want to install share extensions, you should do this in the `share.war` file, not the `alfresco.war`.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 12 Jun 2019 07:12:39 GMT</pubDate>
      <guid>https://connect.hyland.com/t5/alfresco-forum/error-while-deploying-amp-file-to-the-war/m-p/87971#M26449</guid>
      <dc:creator>kerkhofsd</dc:creator>
      <dc:date>2019-06-12T07:12:39Z</dc:date>
    </item>
    <item>
      <title>Re: Error while deploying amp file to the war</title>
      <link>https://connect.hyland.com/t5/alfresco-forum/error-while-deploying-amp-file-to-the-war/m-p/87972#M26450</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;I hope that you have checked whether the amp file is installed properly or not using the following command:&lt;/P&gt;&lt;BLOCKQUOTE class="jive_macro_quote jive-quote jive_text_macro"&gt;&lt;P&gt;java -jar bin/alfresco-mmt.jar list tomcat/webapps/share.war -force&lt;/P&gt;&lt;/BLOCKQUOTE&gt;&lt;P&gt;If you get your amp listed then it has installed properly and the issue might be somewhere else.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards,&lt;/P&gt;&lt;P&gt;Kintu&lt;/P&gt;&lt;P&gt;&lt;A href="http://www.contcentric.com" rel="nofollow noopener noreferrer"&gt;ContCentric&lt;/A&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 12 Jun 2019 09:30:23 GMT</pubDate>
      <guid>https://connect.hyland.com/t5/alfresco-forum/error-while-deploying-amp-file-to-the-war/m-p/87972#M26450</guid>
      <dc:creator>kintu_barot</dc:creator>
      <dc:date>2019-06-12T09:30:23Z</dc:date>
    </item>
    <item>
      <title>Re: Error while deploying amp file to the war</title>
      <link>https://connect.hyland.com/t5/alfresco-forum/error-while-deploying-amp-file-to-the-war/m-p/87973#M26451</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;I have used share.war as this share extension. I just copied that command from documentation so it is alfresco there.&amp;nbsp; I am changing it now.&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks for pointing out the mistake in my question. I will make the change in the question.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 12 Jun 2019 15:46:18 GMT</pubDate>
      <guid>https://connect.hyland.com/t5/alfresco-forum/error-while-deploying-amp-file-to-the-war/m-p/87973#M26451</guid>
      <dc:creator>prashidhashrest</dc:creator>
      <dc:date>2019-06-12T15:46:18Z</dc:date>
    </item>
    <item>
      <title>Re: Error while deploying amp file to the war</title>
      <link>https://connect.hyland.com/t5/alfresco-forum/error-while-deploying-amp-file-to-the-war/m-p/87974#M26452</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;When I run above mentioned command, it does show as one of installed amps.&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Any idea on where I look for other issues.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks in advance.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 12 Jun 2019 15:51:34 GMT</pubDate>
      <guid>https://connect.hyland.com/t5/alfresco-forum/error-while-deploying-amp-file-to-the-war/m-p/87974#M26452</guid>
      <dc:creator>prashidhashrest</dc:creator>
      <dc:date>2019-06-12T15:51:34Z</dc:date>
    </item>
    <item>
      <title>Re: Error while deploying amp file to the war</title>
      <link>https://connect.hyland.com/t5/alfresco-forum/error-while-deploying-amp-file-to-the-war/m-p/87975#M26453</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;If your amp is listed it means it has successfully been installed.&lt;/P&gt;&lt;P&gt;The issue might be in your code or maybe you're missing something.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards,&lt;/P&gt;&lt;P&gt;Kintu&lt;/P&gt;&lt;P&gt;&lt;A href="http://www.contcentric.com" rel="nofollow noopener noreferrer"&gt;ContCentric&lt;/A&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 13 Jun 2019 04:04:21 GMT</pubDate>
      <guid>https://connect.hyland.com/t5/alfresco-forum/error-while-deploying-amp-file-to-the-war/m-p/87975#M26453</guid>
      <dc:creator>kintu_barot</dc:creator>
      <dc:date>2019-06-13T04:04:21Z</dc:date>
    </item>
  </channel>
</rss>

