AnsweredAssumed Answered

Custom behavior tutorial problem

Question asked by reg4xxx on Jan 9, 2018
Latest reply on Jan 10, 2018 by reg4xxx

Hi to all,

I'm trying to get to work custom behavior tutorial from jeff pots

Implementing Custom Behaviors in Alfresco | ECMArchitect | Alfresco Developer Tutorials 


when i try to create the spring bean in service-context.xml with:


<bean id="ratingBehavior" class="com.someco.behavior.Rating" init-method="init">
<property name="nodeService">
<ref bean="NodeService" />
<property name="policyComponent">
<ref bean="policyComponent" />


i get an error:



GRAVE: Exception sending context initialized event to listener instance of class
org.springframework.beans.factory.BeanCreationException: Error creating bean with name 'ratingBehavior' defined in class path resource [alfresco/module/makeit-mvn-tutorial-alfresco/context/service-context.xml]: Invocation of init method failed; nested exception is java.lang.IllegalArgumentException: Class {}ratingobj has not been defined in the data dictionary


I'v deployed the content model correctly, if i remove the bean from service-context.xml alfresco start-up and the model work but without the custom behavior.


Any hints? I believe there is some errors in file listed here...

alfresco-developer-series/ at master · jpotts/alfresco-developer-series · GitHub