Hi,I am trying to package my dashlet in an AMP package. The dashlet consists in- a jsp page located in tomcat/webapps/alfresco/jsp/dashboards/dashlets/MyDashlet.jsp- a template freemarker stored in the data dictionnary- this code added to web-client-config-custom.xml : <config evaluator="string-compare" condition="Dashboards">
<dashboards>
<dashlets>
<dashlet id="MyDashlet" label="My dashlet" description="My dashlet"
jsp="/jsp/dashboards/dashlets/MyDashlet.jsp" />
</dashlets>
</dashboards>
</config>
That works, I can add my custom dashlet to "My Alfresco".I then tried to create a module (AMP) to package my dashlet and others next customizations properly. I red the documentation and created my module that contains the following :- config– alfresco/module/alfrescoISFB— module-context.xml :<?xml version='1.0' encoding='UTF-8'?>
<!DOCTYPE beans PUBLIC '-//SPRING//DTD BEAN//EN' 'http://www.springframework.org/dtd/spring-beans.dtd'>
<beans>
<import resource="classpath:alfresco/module/alfrescoISFB/web-client-config-custom.xml" />
</beans>
— web-client-config-custom.xml :<alfresco-config>
<config evaluator="string-compare" condition="Dashboards">
<dashboards>
<dashlets>
<dashlet id="MyDashlet" label="My dashlet" description="My dashlet"
jsp="/jsp/MyDashlet.jsp" />
</dashlets>
</dashboards>
</config>
</alfresco-config>
- lib– alfrescoISFB.jar— META-INF/MANIFEST.****- web– css– images– jsp— MyDashlet.jsp– scripts- file-mapping.properties :/WEB-INF=/WEB-INF
- module.properties :module.id=alfrescoISFB
module.title=Personnalisations d'Alfresco pour le projet
module.description=Personnalisations d'Alfresco pour le projet
module.version=1.0
module.repo.version.min=2.1
I installed the module :java -jar bin/alfresco-mmt.jar install alfrescoISFB.amp alfresco.war -verbose
I started Alfresco. When I connect with a user who has added MyDashlet to his "My Alfresco", I get the following error :14:15:17,140 User:jppicsou WARN [bean.dashboard.DashboardManager] Failed to resolve Dashboard Dashlet Definition ID: MyDashletCould you help me to debug this ?Best regards