Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • SEARCH
  • Home
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 7525241
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 30, 20262026-05-30T03:29:15+00:00 2026-05-30T03:29:15+00:00

We are trying to upgrade from Spring 1.2.8 to Spring 3.0 However when we

  • 0

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:

        <bean id="sessionFactory"
        class="org.springframework.orm.hibernate3.LocalSessionFactoryBean">
        <property name="dataSource" ref="ewpDataSource" />
        <property name="mappingResources">
            <list>
                <value>com/fme/example/model/Person.hbm.xml</value>
            </list>
        </property>

        <property name="hibernateProperties">
     <props>
         <prop key="hibernate.dialect">org.hibernate.dialect.OracleDialect</prop>
         <prop key="hibernate.show_sql">true</prop>
         <prop key="hibernate.format_sql">false</prop>
         <prop key="hibernate.default_schema">ORIG</prop>
         <prop key="hibernate.cglib.use_reflection_optimizer">false</prop>
         <prop key="hibernate.use_sql_comments">true</prop>
        <prop  key="hibernate.transaction.factory_class">
                   org.hibernate.transaction.JTATransactionFactory
                </prop>
              <prop key="hibernate.transaction.manager_lookup_class">
                 org.hibernate.transaction.WebSphereExtendedJTATransactionLookup
              </prop>
    </props>
    </property>
    </bean>

<!--  Our Data source --->
<bean id="ewpDataSource" class="org.springframework.jndi.JndiObjectFactoryBean">
        <property name="jndiName" value="jdbc/TOI_ORIG" />
</bean>

<!--- Get the Web sphere Specific TX manager -->
<bean id="transactionManager"
    class="org.springframework.transaction.jta.WebSphereUowTransactionManager"/>

</beans>  

I read this article and tried exactly as specified.
http://www.ibm.com/developerworks/websphere/techjournal/0609_alcott/0609_alcott.html
And also tried
http://robertmaldon.blogspot.com/2006/09/using-websphere-transaction-manager.html

But we are getting this Exception.

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)

I see that the class
org.springframework.transaction.jta.WebSphereUowTransactionManager
provided for Websphere doesn’t implement javax.transaction.TransactionManager any where in the hierarchy.

Any idea?

  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. Editorial Team
    Editorial Team
    2026-05-30T03:29:16+00:00Added an answer on May 30, 2026 at 3:29 am

    I got it working. In addition to the above hibernate settings here is what I did.

        The object of type WebSphereUowTransactionManager is not an instance of 
        javax.transaction.TransactionManager
        but there is superclass method inside WebSphereUowTransactionManager
        called getTransactionManager() 
        this returns object of type javax.transaction.TransactionManager
    
    
    <bean id="wasUOWTxnManagerObj"
        class="org.springframework.transaction.jta.WebSphereUowTransactionManager"/>
    
    <!-- 
        Now call get getTransactionManager on WebSphereUowTransactionManager
                object.
     -->    
    <bean id="tranSactionManager"
        class="javax.transaction.TransactionManager" 
        factory-bean="wasUOWTxnManagerObj"
        factory-method="getTransactionManager">
    </bean> 
    

    With this change now you can use WebSphereUowTransactionManager. Hope this helps.

    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

I am trying to upgrade my rails gem from 2.3.2 to 2.3.11. However, I
I'm trying to upgrade from ASP.NET MVC3 RC to RTM? I can't get past
I am trying to upgrade from a server running SqlServer2005 (no service packs) to
I'm trying to upgrade from PHP 5.2.x to 5.3.2 on my server. Problem is,
I have about 160 SSIS packages that I'm trying to upgrade from 2005 to
I’m trying to upgrade our solution from VS2005 .NET 2.0 to VS2008 .NET 3.5.
I'm trying to upgrade from Tomcat 5.5 to Tomcat 7, and almost everything is
My company is trying to upgrade from JBoss 4.2.3 to JBoss 7. Currently I've
I'm trying to upgrade from jre6 and jdk6 to jre7 and jdk7. I program
I'm trying to upgrade Spree from 0.7.0 to 1.0.0, I added in my gemfile

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.