cancel
Showing results for 
Search instead for 
Did you mean: 

Creating AMP - ERROR: missing 'module.properties' file

fabrizio90
Champ in-the-making
Champ in-the-making
Hi all,

i'm trying to create an AMP for this addon: https://github.com/share-extras/reset-password-dialog

Following the instruction and using properly the ANT command, i've created the JAR.

In order to get the addon working on Alfresco 4.2.d, the developers says: "you must deploy the Login page Reset Password Dialog module in Share's Module Deployment console in order to enable the capabilities."

So, i need the AMP file.

According to this post (https://forums.alfresco.com/comment/136827#comment-136827), i've created a folder with a "bin" folder which contains the JAR file, and the "module.properties" in the root of the main folder. After that, i've zipped the folder, changed the extension in amp, followed the instruction to install an AMP file (this: http://wiki.alfresco.com/wiki/Module_Management_Tool).

But the console give me this error:

Exception in thread "main" java.lang.reflect.InvocationTargetException
   at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
   at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:57)
   at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
   at java.lang.reflect.Method.invoke(Method.java:606)
   at com.simontuffs.onejar.Boot.run(Boot.java:247)
   at com.simontuffs.onejar.Boot.main(Boot.java:105)
Caused by: org.alfresco.repo.module.tool.ModuleManagementToolException: No module.properties file has been found in the installing .amp file '/Users/Fabrizio/Desktop/Recovery.amp'



How can i solve this? Please help me!

Cheers from Italy! Ciao!
3 REPLIES 3

kaynezhang
World-Class Innovator
World-Class Innovator
Login page Reset Password Dialog module is an share extension module not an amp ,You should deploy it in Share's Module Deployment console instead of deploying it using mmt tool.
1.build the project you'll get a reset-password-dialog-<version>.jar file put it into the tomcat/shared/lib.
2.If You are using 4.2.c onwards,Open you browser and Navigate to page http://127.0.0.1:8080/share/service/modules/deploy ,in this page enable the module you deployed

First of all thx Smiley Wink

in the "http://127.0.0.1:8080/share/service/modules/deploy" page, i've selected the jar.

what i've to select in the "evaluator" section? i can't click on update..

EDIT: nevermind, i've done!

kaynezhang
World-Class Innovator
World-Class Innovator
I have not use this extension module before ,maybe default.extensibility.evaluator is ok.