cancel
Showing results for 
Search instead for 
Did you mean: 

Webscript as AMP

sofia
Champ in-the-making
Champ in-the-making
Hello Community,

I've created a "Hello-World" webscript and packaged it as an AMP . I've applied MMT to deploy the AMP ,and restarted Alfresco. In this folder "WEB-INF\classes\alfresco\module "  I found these 2 files: module.properties and modifications.install .But when I  get to "http://localhost:8080/share/page/modules/deploy" , The module doesn't appear there.


Do You have any idea why I can't find the new module in the list ??


Regards,
Sofia.
7 REPLIES 7

kaynezhang
World-Class Innovator
World-Class Innovator
http://localhost:8080/share/page/modules/deploy is used to deploy Share Extensibility Modules ,and the module you develop is AMP module. They are different,so of course the amp dose not appear.

sofia
Champ in-the-making
Champ in-the-making
Thank you for answering, But please how can I access them ?

kaynezhang
World-Class Innovator
World-Class Innovator
You can visit
 http://localhost:8080/alfresco/service/index/all
and in this page search your webscript to check whether your webscript is deployed successfully.
You can use MMT(Module Management Tool) list commant to list all the currently installed modules

sofia
Champ in-the-making
Champ in-the-making
Thank You. I have already listed the modules , and I made sure that mine is installed . But when I get to :" http://localhost:8080/share/service/index/all " , I don't find my webscript there

kaynezhang
World-Class Innovator
World-Class Innovator
If the webscript you developed is alfresco webscript ,you should goto <strong>http://localhost:8080/alfresco/service/index/all<strong> instead of<strong>http://localhost:8080/share/service/index/all</strong>

And make sure your webscripts are placed under following path pattern

classpath:webscripts
classpath:alfresco/webscripts
classpath:alfresco/templates/webscripts
claspath:alfresco/extension/templates/webscripts

sofia
Champ in-the-making
Champ in-the-making
Hello,
Sorry, actually the structure of my AMP was wrong , that's why the new webscripts don't appear.

Regards,
Sofia.

kaynezhang
World-Class Innovator
World-Class Innovator
Ok good luck