Note that there are some explanatory texts on larger screens.

plurals
  1. POCan not use Websphere WebSphereUowTransactionManager with Spring 3.0 on WAS 7.0
    primarykey
    data
    text
    <p>We are trying to upgrade from Spring 1.2.8 to Spring 3.0 However when we are trying to configure txManager for Websphere I always get a class cast exception. We tried based on the example provided by IBM which doesn't work. I am using WAS 7.0 and Spring.3.0.5 and hibernate.3.6.jars... Here is the Spring config:</p> <pre><code> &lt;bean id="sessionFactory" class="org.springframework.orm.hibernate3.LocalSessionFactoryBean"&gt; &lt;property name="dataSource" ref="ewpDataSource" /&gt; &lt;property name="mappingResources"&gt; &lt;list&gt; &lt;value&gt;com/fme/example/model/Person.hbm.xml&lt;/value&gt; &lt;/list&gt; &lt;/property&gt; &lt;property name="hibernateProperties"&gt; &lt;props&gt; &lt;prop key="hibernate.dialect"&gt;org.hibernate.dialect.OracleDialect&lt;/prop&gt; &lt;prop key="hibernate.show_sql"&gt;true&lt;/prop&gt; &lt;prop key="hibernate.format_sql"&gt;false&lt;/prop&gt; &lt;prop key="hibernate.default_schema"&gt;ORIG&lt;/prop&gt; &lt;prop key="hibernate.cglib.use_reflection_optimizer"&gt;false&lt;/prop&gt; &lt;prop key="hibernate.use_sql_comments"&gt;true&lt;/prop&gt; &lt;prop key="hibernate.transaction.factory_class"&gt; org.hibernate.transaction.JTATransactionFactory &lt;/prop&gt; &lt;prop key="hibernate.transaction.manager_lookup_class"&gt; org.hibernate.transaction.WebSphereExtendedJTATransactionLookup &lt;/prop&gt; &lt;/props&gt; &lt;/property&gt; &lt;/bean&gt; &lt;!-- Our Data source ---&gt; &lt;bean id="ewpDataSource" class="org.springframework.jndi.JndiObjectFactoryBean"&gt; &lt;property name="jndiName" value="jdbc/TOI_ORIG" /&gt; &lt;/bean&gt; &lt;!--- Get the Web sphere Specific TX manager --&gt; &lt;bean id="transactionManager" class="org.springframework.transaction.jta.WebSphereUowTransactionManager"/&gt; &lt;/beans&gt; </code></pre> <p>I read this article and tried exactly as specified. <a href="http://www.ibm.com/developerworks/websphere/techjournal/0609_alcott/0609_alcott.html" rel="nofollow">http://www.ibm.com/developerworks/websphere/techjournal/0609_alcott/0609_alcott.html</a> And also tried <a href="http://robertmaldon.blogspot.com/2006/09/using-websphere-transaction-manager.html" rel="nofollow">http://robertmaldon.blogspot.com/2006/09/using-websphere-transaction-manager.html</a></p> <p>But we are getting this Exception.</p> <pre><code>Caused by: java.lang.IllegalStateException: Cannot convert value of type [org.springframework.transaction.jta.WebSphereUowTransactionManager] to required type [javax.transaction.TransactionManager] for property 'transactionManager': 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) </code></pre> <p>I see that the class org.springframework.transaction.jta.WebSphereUowTransactionManager provided for Websphere doesn't implement javax.transaction.TransactionManager any where in the hierarchy.</p> <p>Any idea?</p>
    singulars
    1. This table or related slice is empty.
    plurals
    1. This table or related slice is empty.
    1. This table or related slice is empty.
    1. This table or related slice is empty.
    1. This table or related slice is empty.
 

Querying!

 
Guidance

SQuiL has stopped working due to an internal error.

If you are curious you may find further information in the browser console, which is accessible through the devtools (F12).

Reload