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>
<property name="policyComponent">
<ref bean="policyComponent" />
</property>
</bean>
i get an error:
GRAVE: Exception sending context initialized event to listener instance of class org.alfresco.web.app.ContextLoaderListener
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 {http://www.someco.com/model/ratings/1.0}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 rating.java file listed here...
alfresco-developer-series/Rating.java at master · jpotts/alfresco-developer-series · GitHub