I am migrating from JpaTransactionManager to JtaTransactionManager in an
spring project.
MyDatasource is defined in glassfish as
<jdbc-connection-pool
datasource-classname="com.mysql.jdbc.jdbc2.optional.MysqlXADataSource"
res-type="javax.sql.XADataSource" allow-non-component-callers="true"
name="jdbc/devPool">
<property name="URL"
value="jdbc:mysql://localhost:3306/development"></property>
<property name="Password" value="123456"></property>
<property name="User" value="root"></property>
<property name="pinGlobalTxToPhysicalConnection" value="true"/>
</jdbc-connection-pool>
But i get the exception below
caused by: java.lang.IllegalStateException: Cannot convert value of type
[com.sun.gjc.spi.jdbc40.DataSource40] to required type
[javax.sql.XADataSource] for property 'xaDataSource': no matching editors or
conversion strategy found
Any help appreciated.
--
[Message sent by forum member 'hakans']
View Post: http://forums.java.net/node/852510