cancel
Showing results for 
Search instead for 
Did you mean: 

how can i deploy the custom model to Alfresco Community 5.0.c?

sepgs2004
Star Contributor
Star Contributor
I worked with this tutorial and created a repository AMP and a share AMP.
Tutorial link http://ecmarchitect.com/alfresco-developer-series-tutorials/content/tutorial/tutorial.html#localizin...

In this tutorial, in order to install the AMP into our Alfresco Web app, it asks one to copy the .amp file into the folder: ALFRESCO_HOME/amps/, then running the ALFRESCO_HOME/bin/apply_amps.sh
I did follow this for the repository AMP. I do not know if the same applies to share AMP. So I did not copy the share AMP anywhere.

However I do not see any of my custom type or its aspect on the share site.

Can you guide me?
Gnanasekaran Sakthivel
5 REPLIES 5

mitpatoliya
Star Collaborator
Star Collaborator
Share related AMP you need to place under "ALFRESCO_HOME/amps_share" folder and run that same apply_amp.sh, restart your server

sepgs2004
Star Contributor
Star Contributor
Thanks for your time

My Alfresco Community Edition 5.0.c is installed in folder: C:\Alfresco
I stopped Alfresco Tomcat service

I have copied the yyy-repo.war into folder C:\Alfresco\amps, and copied the yyy-share.amp into folder C:\Alfresco\amps_share

I ran the apply_amps.bat file

I think there is an error. I will work on this. Let me know if you have any idea on this.
Here is what it says on the console.



This script will apply all the AMPs in C:\Alfresco\amps to the alfresco.war and share.war files in C:\Alfresco\tomcat\webapps
Press control-c to stop this script . . .
Press any key to continue . . .
04270001 An error was encountered during deployment of the AMP into the WAR: 04270000 ERROR: The amp will overwrite an existing file in the war '/WEB-INF/lib/slf4j-api-1.7.5.jar'. Execution halted.
y specifying -force , you can force installation of AMP regardless of the current war state.
Module 'org_alfresco_module_wcmquickstart' installed in 'C:\Alfresco\tomcat\webapps\alfresco.war'
   -    Title:        Web Quick Start
   -    Version:      1.0
   -    Install Date: Wed May 27 17:25:14 EDT 2015
   -    Description:   Web Quick Start
Module 'org.alfresco.module.vti' installed in 'C:\Alfresco\tomcat\webapps\alfresco.war'
   -    Title:        Vti
   -    Version:      1.3
   -    Install Date: Wed May 27 17:25:10 EDT 2015
   -    Description:   Alfresco Vti Extension, provides Sharepoint protocol
Module 'org.alfresco.integrations.google.docs' installed in 'C:\Alfresco\tomcat\webapps\alfresco.war'
   -    Title:        Alfresco Google Docs Integration
   -    Version:      2.0.8
   -    Install Date: Wed May 27 17:25:08 EDT 2015
   -    Description:   Alfresco Docs Integration
04270001 An error was encountered during deployment of the AMP into the WAR: 04270000 ERROR: The amp will overwrite an existing file in the war '/WEB-INF/lib/slf4j-api-1.7.5.jar'. Execution halted.
y specifying -force , you can force installation of AMP regardless of the current war state.
Module 'org_alfresco_module_wcmquickstartshare' installed in 'C:\Alfresco\tomcat\webapps\share.war'
   -    Title:        Web Quick Start Share
   -    Version:      1.1
   -    Install Date: Wed May 27 17:25:24 EDT 2015
   -    Description:   Web Quick Start Share Module
Module 'org.alfresco.integrations.share.google.docs' installed in 'C:\Alfresco\tomcat\webapps\share.war'
   -    Title:        Alfresco / Google Docs Share Module
   -    Version:      2.0.8
   -    Install Date: Wed May 27 17:25:19 EDT 2015
   -    Description:   The Share side artifacts of the Alfresco / Google Docs Integration.
.
About to clean out tomcat/webapps/alfresco directory and temporary files…
Press any key to continue . . .




Gnanasekaran Sakthivel

sepgs2004
Star Contributor
Star Contributor
In the batch file, there are 4 commands that executes the same jar with different options..
For each command pretty it complains of the same error.

04270001 An error was encountered during deployment of the AMP into the WAR:
04270000 ERROR: The amp will overwrite an existing file
in the war '/WEB-INF/lib/slf4j-api-1.7.5.jar'. Execution halted.
y specifying -force , you can force installation of AMP
regardless of the current war state.


Besides the fact that I do not see my custom type in Alfresco Share UI, and although this error says that the "execution halted", until now, I do not know if this error blocks the function of the jar.

Here are the 4 commands if it helps any:

"%JAVA_HOME%\bin\java" -jar "%ALF_HOME%bin\alfresco-mmt.jar" install "%ALF_HOME%amps" "%CATALINA_HOME%\webapps\alfresco.war" -directory%ALF_AMP_PARAMS%
"%JAVA_HOME%\bin\java" -jar "%ALF_HOME%bin\alfresco-mmt.jar" list "%CATALINA_HOME%\webapps\alfresco.war"
"%JAVA_HOME%\bin\java" -jar "%ALF_HOME%bin\alfresco-mmt.jar" install "%ALF_HOME%amps_share" "%CATALINA_HOME%\webapps\share.war" -directory%ALF_AMP_PARAMS%
"%JAVA_HOME%\bin\java" -jar "%ALF_HOME%bin\alfresco-mmt.jar" list "%CATALINA_HOME%\webapps\share.war"
Gnanasekaran Sakthivel

sepgs2004
Star Contributor
Star Contributor
if i remove my amps from Alfresco amps or amps_share, then ran the apply_all_amps.bat file, i see no error.
it has to do with my amps…
Gnanasekaran Sakthivel

sepgs2004
Star Contributor
Star Contributor
After I used the -force option, I could see my type in the Alfresco Share UI.
For now, I am good.
Thanks for your help
Gnanasekaran Sakthivel