cancel
Showing results for 
Search instead for 
Did you mean: 

Creating AMP file

komal
Champ in-the-making
Champ in-the-making
Hi All ,
  I want to create an "Alfresco Module"  for this i need to create an AMP file . Please suggest me how to create an AMP file.

Thanks
4 REPLIES 4

mikeh
Star Contributor
Star Contributor

komal
Champ in-the-making
Champ in-the-making
Hi
   i visited this link " http://wiki.alfresco.com/wiki/AMP_Files " but not find the exact solution. i have created the dir structure as mentioned here and then i zip this folder and rename it to .amp , then paste this amp file  to /alfresco/amps folder and run apply_amps.bat  the following error occurs :


This script will apply all the AMPs in D:\alfresco2.2.0\amps to the alfresco.war file in D:\alfresco2.2.0\tomcat\webapps
Press control-c to stop this script . . .
Press any key to continue . . .
Exception in thread "main" java.lang.reflect.InvocationTargetException
        at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
        at sun.reflect.NativeMethodAccessorImpl.invoke(Unknown Source)
        at sun.reflect.DelegatingMethodAccessorImpl.invoke(Unknown Source)
        at java.lang.reflect.Method.invoke(Unknown Source)
        at com.simontuffs.onejar.Boot.run(Boot.java:287)
        at com.simontuffs.onejar.Boot.main(Boot.java:137)
Caused by: java.lang.NoClassDefFoundError: org/safehaus/uuid/UUIDGenerator
        at org.alfresco.repo.module.tool.ModuleManagementTool.generateGuid(ModuleManagementTool.java:809)
        at org.alfresco.repo.module.tool.ModuleManagementTool.copyToWar(ModuleManagementTool.java:570)
        at org.alfresco.repo.module.tool.ModuleManagementTool.copyToWar(ModuleManagementTool.java:597)
        at org.alfresco.repo.module.tool.ModuleManagementTool.installModule(ModuleManagementTool.java:359)
        at org.alfresco.repo.module.tool.ModuleManagementTool.installModules(ModuleManagementTool.java:168)
        at org.alfresco.repo.module.tool.ModuleManagementTool.installModules(ModuleManagementTool.java:151)
        at org.alfresco.repo.module.tool.ModuleManagementTool.main(ModuleManagementTool.java:782)
        … 6 more
Caused by: java.lang.ClassNotFoundException: org.safehaus.uuid.UUIDGenerator
        at com.simontuffs.onejar.JarClassLoader.findClass(JarClassLoader.java:535)
        at java.lang.ClassLoader.loadClass(Unknown Source)
        at java.lang.ClassLoader.loadClass(Unknown Source)
        at java.lang.ClassLoader.loadClassInternal(Unknown Source)
        … 13 more
About to clean out tomcat/webapps/alfresco directory and temporary files…
Press control-c to stop this script . . .
Press any key to continue . . .

Thanks & Regards

calle
Champ in-the-making
Champ in-the-making
You need the jug-lgpl-2.0.0.jar in the classpath.

libman
Champ in-the-making
Champ in-the-making
Why do you not use the alfresco-mmt.jar file from Alfresco/bin? Download the SDK and check the build files of the examples.