• 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 ...
Marshals:
  • Campbell Ritchie
  • Liutauras Vilda
  • Junilu Lacar
  • Jeanne Boyarsky
  • Bear Bibeault
Sheriffs:
  • Knute Snortum
  • Devaka Cooray
  • Tim Cooke
Saloon Keepers:
  • Tim Moores
  • Stephan van Hulst
  • Tim Holloway
  • Ron McLeod
  • Carey Brown
Bartenders:
  • Paweł Baczyński
  • Piet Souris
  • Vijitha Kumara

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 (http://www.javaworld.com/article/2077714/java-web-development/xa-transactions-using-spring.html). 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 dropbox.com/s/734k6l6seji3uk6/XA-Txn-mvn.rar . 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.
 
a wee bit from the empire
Java file APIs (DOC, XLS, PDF, and many more)
https://products.aspose.com/total/java
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
Boost this thread!