Win a copy of TensorFlow 2.0 in Action this week in the Artificial Intelligence and Machine Learning forum!
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
programming forums Java Mobile Certification Databases Caching Books Engineering Micro Controllers OS Languages Paradigms IDEs Build Tools Frameworks Application Servers Open Source This Site Careers Other all forums
this forum made possible by our volunteer staff, including ...
  • Campbell Ritchie
  • Liutauras Vilda
  • Paul Clapham
  • Bear Bibeault
  • Jeanne Boyarsky
  • Ron McLeod
  • Tim Cooke
  • Devaka Cooray
Saloon Keepers:
  • Tim Moores
  • Tim Holloway
  • Jj Roberts
  • Stephan van Hulst
  • Carey Brown
  • salvin francis
  • Scott Selikoff
  • fred rosenberger

spring migration from 3x to 4x to create hibernate session factory

Ranch Hand
Posts: 361
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
I have a working project for spring XA transaction ( I modified the project downloaded and created pom.xml since i had to integrate it with my project. Initially i started with spring 3x. I got it working properly for spring 3x. Now i have to integrate it with hibernate, so in order to create hibernate session factory, i stated migrating it to spring 4x.

i have following entries in my config file for spring 3x

spring config file:

and the pom.xml is having following entry:

This works completely fine. Now if i want to migrate to spring4x, i make the following changes and update my pom.xml as follows:

When i make the above changes and run my program, i get the following error:

Is there any other changes i have to make to get this project working with spring 4x.

I am trying to migrate to spring 4x since i have to make session factory as follows:

I have put my code at . If you open the rar, the root folder contains MainApp.log. Also there is lib folder containing 3 jars which are required by application. The other jars can be downloaded by using pom.xml.
Don't get me started about those stupid light bulbs.
    Bookmark Topic Watch Topic
  • New Topic