Atomikos Forum

Cannot convert value of type [com.atomikos.icatch.jta.UserTransa

Hi,

I am getting below error message. Can anyone pls help.

Caused by: org.springframework.beans.TypeMismatchException: Failed to convert property value of type [com.atomikos.icatch.jta.UserTransactionManager] to required type [javax.transaction.TransactionManager] for property 'transactionManager'; nested exception is java.lang.IllegalArgumentException: Cannot convert value of type [com.atomikos.icatch.jta.UserTransactionManager] to required type [javax.transaction.TransactionManager] for property 'transactionManager': no matching editors or conversion strategy found
    at org.springframework.beans.BeanWrapperImpl.convertForProperty(BeanWrapperImpl.java:391)
    at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.convertForProperty(AbstractAutowireCapableBeanFactory.java:1289)
    at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.applyPropertyValues(AbstractAutowireCapableBeanFactory.java:1250)
    at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.populateBean(AbstractAutowireCapableBeanFactory.java:1010)
    at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.doCreateBean(AbstractAutowireCapableBeanFactory.java:472)
    ... 23 more



      <bean id="AtomikosTransactionManager" 
          class="com.atomikos.icatch.jta.UserTransactionManager" 
          init-method="init" destroy-method="close">
                <!--  when close is called, should we force transactions to terminate or not?  -->
              <property name="forceShutdown" value="false" />
      </bean>
      <bean id="AtomikosUserTransaction" 
                class="com.atomikos.icatch.jta.UserTransactionImp">
              <property name="transactionTimeout" value="300" />
      </bean>
     
      <bean id="transactionManagerTest" 
        class="org.springframework.transaction.jta.JtaTransactionManager" depends-on="AtomikosTransactionManager,AtomikosUserTransaction">
              <property name="transactionManager" ref="AtomikosTransactionManager" />
              <property name="userTransaction" ref="AtomikosUserTransaction" />
              <property name="allowCustomIsolationLevels" value="true" />
      </bean>
Baskar Subramaniam Send private email
Wednesday, November 26, 2014
 
 
All,

Above issue is Class loader issue. I could able to fix the issue by removing the jta.jar file from WEB-INF/lib from my Webapp war file and add that jta.jar file into tomcat lib directory.
Baskar Subramaniam Send private email
Monday, December 01, 2014
 
 

This topic is archived. No further replies will be accepted.

Other recent topics Other recent topics