title: ConversionNotSupportedException while integrating with Activiti
body: <p>I am trying to integrate with activiti-engine for my project. my parent pom uses spring 3.1.1</p>
  
  <p>Here is my activiti config in my pom.xml:</p>
  
  <pre><code>&lt;dependency&gt;
              &lt;groupId&gt;org.activiti&lt;/groupId&gt;
              &lt;artifactId&gt;activiti-engine&lt;/artifactId&gt;
              &lt;version&gt;5.16.3&lt;/version&gt;
              &lt;exclusions&gt;
              &lt;exclusion&gt;
                  &lt;artifactId&gt;spring-beans&lt;/artifactId&gt;
                  &lt;groupId&gt;org.springframework&lt;/groupId&gt;
              &lt;/exclusion&gt;
  
          &lt;/exclusions&gt;
          &lt;/dependency&gt;
          &lt;dependency&gt;
              &lt;groupId&gt;org.activiti&lt;/groupId&gt;
              &lt;artifactId&gt;activiti-spring&lt;/artifactId&gt;
              &lt;version&gt;5.16.3&lt;/version&gt;
              &lt;exclusions&gt;
              &lt;exclusion&gt;
                  &lt;artifactId&gt;spring-context&lt;/artifactId&gt;
                  &lt;groupId&gt;org.springframework&lt;/groupId&gt;
              &lt;/exclusion&gt;
              &lt;exclusion&gt;
                  &lt;artifactId&gt;spring-jdbc&lt;/artifactId&gt;
                  &lt;groupId&gt;org.springframework&lt;/groupId&gt;
              &lt;/exclusion&gt;
              &lt;exclusion&gt;
                  &lt;artifactId&gt;spring-orm&lt;/artifactId&gt;
                  &lt;groupId&gt;org.springframework&lt;/groupId&gt;
              &lt;/exclusion&gt;
              &lt;exclusion&gt;
                  &lt;artifactId&gt;spring-core&lt;/artifactId&gt;
                  &lt;groupId&gt;org.springframework&lt;/groupId&gt;
              &lt;/exclusion&gt;
              &lt;exclusion&gt;
                  &lt;artifactId&gt;spring-test&lt;/artifactId&gt;
                  &lt;groupId&gt;org.springframework&lt;/groupId&gt;
              &lt;/exclusion&gt;
              &lt;exclusion&gt;
                  &lt;artifactId&gt;spring-tx&lt;/artifactId&gt;
                  &lt;groupId&gt;org.springframework&lt;/groupId&gt;
              &lt;/exclusion&gt;
              &lt;/exclusions&gt;
          &lt;/dependency&gt;
  
          &lt;dependency&gt;
              &lt;groupId&gt;com.h2database&lt;/groupId&gt;
              &lt;artifactId&gt;h2&lt;/artifactId&gt;
              &lt;version&gt;1.2.132&lt;/version&gt;
          &lt;/dependency&gt;
  </code></pre>
  
  <p>Also here is my beans.xml</p>
  
  <pre><code>       &lt;bean id="dataSource" class="org.springframework.jdbc.datasource.SimpleDriverDataSource"&gt;
          &lt;property name="driverClass" value="org.h2.Driver" /&gt;
          &lt;property name="url" value="jdbc:h2:mem:activiti;DB_CLOSE_DELAY=1000" /&gt;
          &lt;property name="username" value="sa" /&gt;
          &lt;property name="password" value="" /&gt;
        &lt;/bean&gt;
  
    &lt;bean id="transactionManager" class="org.springframework.jdbc.datasource.DataSourceTransactionManager"&gt;
      &lt;property name="dataSource" ref="dataSource" /&gt;
    &lt;/bean&gt;
  
    &lt;bean id="processEngineConfiguration" class="org.activiti.spring.SpringProcessEngineConfiguration"&gt;
      &lt;property name="dataSource" ref="dataSource" /&gt;
      &lt;property name="transactionManager" ref="transactionManager" /&gt;
      &lt;property name="databaseSchemaUpdate" value="true" /&gt;
      &lt;property name="jobExecutorActivate" value="false" /&gt;
    &lt;/bean&gt;
  
    &lt;bean id="processEngine" class="org.activiti.spring.ProcessEngineFactoryBean"&gt;
      &lt;property name="processEngineConfiguration" ref="processEngineConfiguration" /&gt;
    &lt;/bean&gt;
  
    &lt;bean id="repositoryService" factory-bean="processEngine" factory-method="getRepositoryService" /&gt;
    &lt;bean id="runtimeService" factory-bean="processEngine" factory-method="getRuntimeService" /&gt;
    &lt;bean id="taskService" factory-bean="processEngine" factory-method="getTaskService" /&gt;
    &lt;bean id="historyService" factory-bean="processEngine" factory-method="getHistoryService" /&gt;
    &lt;bean id="managementService" factory-bean="processEngine" factory-method="getManagementService" /&gt;
  
      &lt;!-- Implementation class for pricingserv--&gt;
      &lt;bean id="pricingServBean" class="com.paypal.pricing.service.core.PricingServImpl"&gt;
      &lt;property name="runtimeService" ref="runtimeService"/&gt;
      &lt;/bean&gt;
  </code></pre>
  
  <p>Following is where I am trying to access runtimeService</p>
  
  <pre><code>   public class PricingServImpl implements PricingServ {
  
      private static Logger mLogger = Logger.getInstance(PricingServImpl.class);
  
      private RuntimeService runtimeService;
  
      public void setRuntimeService(RuntimeService runtimeService) {
          this.runtimeService = runtimeService;
        }
  </code></pre>
  
  <p>But I run into following </p>
  
  <pre><code>Caused by: org.springframework.beans.ConversionNotSupportedException: Failed to convert property      value of type 'org.activiti.engine.impl.RuntimeServiceImpl' to required type 'org.activiti.engine.RuntimeService' for property 'runtimeService'; nested exception is java.lang.IllegalStateException: Cannot convert value of type [org.activiti.engine.impl.RuntimeServiceImpl] to required type [org.activiti.engine.RuntimeService] for property 'runtimeService': no matching editors or conversion strategy found
      at org.springframework.beans.BeanWrapperImpl.convertIfNecessary(BeanWrapperImpl.java:485) [spring-beans-3.1.1.RELEASE.jar:3.1.1.RELEASE]
      at org.springframework.beans.BeanWrapperImpl.convertForProperty(BeanWrapperImpl.java:516) [spring-beans-3.1.1.RELEASE.jar:3.1.1.RELEASE]
      at org.springframework.beans.BeanWrapperImpl.convertForProperty(BeanWrapperImpl.java:510) [spring-beans-3.1.1.RELEASE.jar:3.1.1.RELEASE]
      at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.convertForProperty(AbstractAutowireCapableBeanFactory.java:1406) [spring-beans-3.1.1.RELEASE.jar:3.1.1.RELEASE]
      at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.applyPropertyValues(AbstractAutowireCapableBeanFactory.java:1365) [spring-beans-3.1.1.RELEASE.jar:3.1.1.RELEASE]
      at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.populateBean(AbstractAutowireCapableBeanFactory.java:1118) [spring-beans-3.1.1.RELEASE.jar:3.1.1.RELEASE]
      at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.doCreateBean(AbstractAutowireCapableBeanFactory.java:517) [spring-beans-3.1.1.RELEASE.jar:3.1.1.RELEASE]
      ... 19 more
  Caused by: java.lang.IllegalStateException: Cannot convert value of type [org.activiti.engine.impl.RuntimeServiceImpl] to required type [org.activiti.engine.RuntimeService] for property 'runtimeService': no matching editors or conversion strategy found
      at org.springframework.beans.TypeConverterDelegate.convertIfNecessary(TypeConverterDelegate.java:241) [spring-beans-3.1.1.RELEASE.jar:3.1.1.RELEASE]
      at org.springframework.beans.BeanWrapperImpl.convertIfNecessary(BeanWrapperImpl.java:470) [spring-beans-3.1.1.RELEASE.jar:3.1.1.RELEASE]
      ... 25 more
  </code></pre>
  
  <p>Has anybody seen a similar issue. </p>