cancel
Showing results for 
Search instead for 
Did you mean: 

spring 3.0.5 activiti5.1.6 integration processEngine create Error

jamesdeng
Champ in-the-making
Champ in-the-making
Hi: everybody,
i am using spring 3.0.5 and activiti 5.1.6,after finished the integration,activiti process engine could not create the processEngine Object correctly,the following error is:
Caused by: java.lang.IllegalStateException: Cannot convert value of type [org.activiti.engine.impl.ProcessEngineImpl] to required type [org.activiti.spring.ProcessEngineFactoryBean] for property 'processEngine': no matching editors or conversion strategy found
   at org.springframework.beans.TypeConverterDelegate.convertIfNecessary(TypeConverterDelegate.java:231)
   at org.springframework.beans.BeanWrapperImpl.convertIfNecessary(BeanWrapperImpl.java:447)

have anybody seen this error,how should i  fix this?thanks.
2 REPLIES 2

jamesdeng
Champ in-the-making
Champ in-the-making
   <bean id="transactionManager"
  class="org.springframework.jdbc.datasource.DataSourceTransactionManager">
  <property name="dataSource" ref="dataSource" />
</bean>

<!– Hibernate SessionFactory –>
<bean id="sessionFactory"
  class="org.springframework.orm.hibernate3.annotation.AnnotationSessionFactoryBean">
  <property name="dataSource" ref="dataSource" />
  <property name="configLocation" value="classpath:hibernate.cfg.xml" />
  <property name="hibernateProperties">
   <value>
    hibernate.dialect=${hibernate.dialect}
    hibernate.show_sql=true
    hibernate.query.substitutions=true '1', false '0'
    hibernate.cache.use_second_level_cache=true
    hibernate.cache.provider_class=org.hibernate.cache.EhCacheProvider
   </value>
  </property>
</bean>

<!– Activiti5 Config –>
<bean id="processEngineConfiguration" class="org.activiti.spring.SpringProcessEngineConfiguration">
    <property name="databaseType" value="oracle" />
  <property name="dataSource" ref="dataSource" />
  <property name="transactionManager" ref="transactionManager" />
  <property name="databaseSchemaUpdate" value="true" />
  <property name="jobExecutorActivate" value="false" />
    </bean>
   <bean id="transactionManager"
  class="org.springframework.jdbc.datasource.DataSourceTransactionManager">
  <property name="dataSource" ref="dataSource" />
</bean>

<!– Hibernate SessionFactory –>
<bean id="sessionFactory"
  class="org.springframework.orm.hibernate3.annotation.AnnotationSessionFactoryBean">
  <property name="dataSource" ref="dataSource" />
  <property name="configLocation" value="classpath:hibernate.cfg.xml" />
  <property name="hibernateProperties">
   <value>
    hibernate.dialect=${hibernate.dialect}
    hibernate.show_sql=true
    hibernate.query.substitutions=true '1', false '0'
    hibernate.cache.use_second_level_cache=true
    hibernate.cache.provider_class=org.hibernate.cache.EhCacheProvider
   </value>
  </property>
</bean>

<!– Activiti5 Config –>
<bean id="processEngineConfiguration" class="org.activiti.spring.SpringProcessEngineConfiguration">
    <property name="databaseType" value="oracle" />
  <property name="dataSource" ref="dataSource" />
  <property name="transactionManager" ref="transactionManager" />
  <property name="databaseSchemaUpdate" value="true" />
  <property name="jobExecutorActivate" value="false" />
    </bean>

martin_grofcik
Confirmed Champ
Confirmed Champ
Hi,

Can you post your activiti configuration?

Regards
Martin