AnsweredAssumed Answered

Spring throw error while converting MyEventListener to ActivitiEventListner

Question asked by bhuvangupta on Jul 10, 2014
Latest reply on Jul 11, 2014 by trademak

Error creating bean with name 'processEngineConfiguration' defined in ServletContext resource [/WEB-INF/activiti-standalone-context.xml]: Initialization of bean failed;
nested exception is org.springframework.beans.ConversionNotSupportedException: Failed to convert property value of type 'java.util.ArrayList' to required type 'java.util.List' for property 'eventListeners';
nested exception is java.lang.IllegalStateException: Cannot convert value of type [main.MyEventListener] to required type [org.activiti.engine.delegate.event.ActivitiEventListener] for property 'eventListeners[0]': no matching editors or conversion strategy found


Bean defination in actitivi-standalone-context.xml

   <bean id="processEngineConfiguration" class="org.activiti.engine.impl.cfg.StandaloneProcessEngineConfiguration">
     <property name="dataSource" ref="dataSource" />
     <property name="transactionManager" ref="transactionManager" />
     <property name="databaseSchemaUpdate" value="true" />
     <property name="jobExecutorActivate" value="true" />
    <property name="customFormTypes">   
      <list>
        <bean class="org.activiti.explorer.form.UserFormType"/>
        <bean class="org.activiti.explorer.form.ProcessDefinitionFormType"/>
        <bean class="org.activiti.explorer.form.MonthFormType"/>  
      </list>
    </property>
   <property name="eventListeners">
      <list>
         <bean class="main.MyEventListener" />
      </list>
    </property>
  </bean>


main.MyEventListener is a copy from the documentation.

i am on 5.15.1 and using tomcat 6

Any idea about the error ?

Outcomes