<?xml version="1.0" encoding="UTF-8"?>
<rss xmlns:content="http://purl.org/rss/1.0/modules/content/" xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:rdf="http://www.w3.org/1999/02/22-rdf-syntax-ns#" xmlns:taxo="http://purl.org/rss/1.0/modules/taxonomy/" version="2.0">
  <channel>
    <title>topic Custom behavior tutorial problem in Alfresco Forum</title>
    <link>https://connect.hyland.com/t5/alfresco-forum/custom-behavior-tutorial-problem/m-p/44224#M18068</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi to all,&lt;/P&gt;&lt;P&gt;I'm trying to get to work custom behavior tutorial from jeff pots&lt;/P&gt;&lt;P&gt;&lt;A class="link-titled" href="http://ecmarchitect.com/alfresco-developer-series-tutorials/behaviors/tutorial/tutorial.html#step-1-create-a-ratings-model" title="http://ecmarchitect.com/alfresco-developer-series-tutorials/behaviors/tutorial/tutorial.html#step-1-create-a-ratings-model" rel="nofollow noopener noreferrer"&gt;Implementing Custom Behaviors in Alfresco | ECMArchitect | Alfresco Developer Tutorials&lt;/A&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;when i try to create the spring bean in service-context.xml with:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&amp;lt;bean id="ratingBehavior" class="com.someco.behavior.Rating" init-method="init"&amp;gt;&lt;BR /&gt; &amp;lt;property name="nodeService"&amp;gt;&lt;BR /&gt; &amp;lt;ref bean="NodeService" /&amp;gt;&lt;BR /&gt; &amp;lt;/property&amp;gt;&lt;BR /&gt; &amp;lt;property name="policyComponent"&amp;gt;&lt;BR /&gt; &amp;lt;ref bean="policyComponent" /&amp;gt;&lt;BR /&gt; &amp;lt;/property&amp;gt;&lt;BR /&gt; &amp;lt;/bean&amp;gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;i get an error:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;GRAVE: Exception sending context initialized event to listener instance of class org.alfresco.web.app.ContextLoaderListener&lt;BR /&gt;&lt;SPAN&gt;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 {&lt;/SPAN&gt;&lt;A class="jive-link-external-small" href="http://www.someco.com/model/ratings/1.0" rel="nofollow noopener noreferrer" target="_blank"&gt;http://www.someco.com/model/ratings/1.0&lt;/A&gt;&lt;SPAN&gt;}ratingobj has not been defined in the data dictionary&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I'v deployed the content model correctly, if i remove the bean from&amp;nbsp;&lt;SPAN&gt;service-context.xml alfresco start-up and the model work but without the custom behavior.&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;Any hints? I believe there is some errors in rating.java file listed here...&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;&lt;A class="link-titled" href="https://github.com/jpotts/alfresco-developer-series/blob/master/behaviors/behavior-tutorial-repo/src/main/java/com/someco/behavior/Rating.java" title="https://github.com/jpotts/alfresco-developer-series/blob/master/behaviors/behavior-tutorial-repo/src/main/java/com/someco/behavior/Rating.java" rel="nofollow noopener noreferrer"&gt;alfresco-developer-series/Rating.java at master · jpotts/alfresco-developer-series · GitHub&lt;/A&gt;&amp;nbsp;&lt;/SPAN&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Tue, 09 Jan 2018 13:00:41 GMT</pubDate>
    <dc:creator>reg4xxx</dc:creator>
    <dc:date>2018-01-09T13:00:41Z</dc:date>
    <item>
      <title>Custom behavior tutorial problem</title>
      <link>https://connect.hyland.com/t5/alfresco-forum/custom-behavior-tutorial-problem/m-p/44224#M18068</link>
      <description>Hi to all,I'm trying to get to work custom behavior tutorial from jeff potsImplementing Custom Behaviors in Alfresco | ECMArchitect | Alfresco Developer Tutorials&amp;nbsp;when i try to create the spring bean in service-context.xml with:&amp;lt;bean id="ratingBehavior" class="com.someco.behavior.Rating" init-met</description>
      <pubDate>Tue, 09 Jan 2018 13:00:41 GMT</pubDate>
      <guid>https://connect.hyland.com/t5/alfresco-forum/custom-behavior-tutorial-problem/m-p/44224#M18068</guid>
      <dc:creator>reg4xxx</dc:creator>
      <dc:date>2018-01-09T13:00:41Z</dc:date>
    </item>
    <item>
      <title>Re: Custom behavior tutorial problem</title>
      <link>https://connect.hyland.com/t5/alfresco-forum/custom-behavior-tutorial-problem/m-p/44225#M18069</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;I don't know why, but the tutorial module-context.xml is missing the import of the bootstrap-context.xml to actually load the model. This looks like an oversight when Jeff moved the bootstrap to a separate file in &lt;A href="https://github.com/jpotts/alfresco-developer-series/commit/47e124ef6db6f6f444790563f23600fd62460d95" rel="nofollow noopener noreferrer"&gt;a commit in April last year&lt;/A&gt;. Simply add an import to the bootstrap context before the import to the service context file, and you should be fine. I am somewhat in doubt that the model works at all with the current lack of an import.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 09 Jan 2018 22:30:25 GMT</pubDate>
      <guid>https://connect.hyland.com/t5/alfresco-forum/custom-behavior-tutorial-problem/m-p/44225#M18069</guid>
      <dc:creator>afaust</dc:creator>
      <dc:date>2018-01-09T22:30:25Z</dc:date>
    </item>
    <item>
      <title>Re: Custom behavior tutorial problem</title>
      <link>https://connect.hyland.com/t5/alfresco-forum/custom-behavior-tutorial-problem/m-p/44226#M18070</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Ok Thanks, now my module-context.xml looks like this and alfresco starts.&lt;/P&gt;&lt;P&gt;&amp;lt;import resource="classpath:alfresco/module/${project.artifactId}/context/bootstrap-context.xml" /&amp;gt;&lt;BR /&gt; &amp;lt;import resource="classpath:alfresco/module/${project.artifactId}/context/service-context.xml" /&amp;gt;&lt;BR /&gt; &amp;lt;import resource="classpath:alfresco/module/${project.artifactId}/context/webscript-context.xml" /&amp;gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Since it's not possible to create a child-associations through cmis workbench, there's a way to do that with alfresco API?&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 10 Jan 2018 08:37:43 GMT</pubDate>
      <guid>https://connect.hyland.com/t5/alfresco-forum/custom-behavior-tutorial-problem/m-p/44226#M18070</guid>
      <dc:creator>reg4xxx</dc:creator>
      <dc:date>2018-01-10T08:37:43Z</dc:date>
    </item>
  </channel>
</rss>

