org springframework transaction TransactionException

org springframework transaction TransactionException

Caused by: java.lang.ClassNotFoundException: org.springframework.transaction.TransactionException

If you are using spring framework in your application and while running you get below exception:

Caused by: java.lang.ClassNotFoundException: org.springframework.transaction.TransactionException
	at java.net.URLClassLoader.findClass(URLClassLoader.java:381)
	at java.lang.ClassLoader.loadClass(ClassLoader.java:424)
	at sun.misc.Launcher$AppClassLoader.loadClass(Launcher.java:331)
	at java.lang.ClassLoader.loadClass(ClassLoader.java:357)
	... 21 more
  • Solution: Please add spring-tx-versionXXX.jar in your classpath and if you are using maven please add below dependencies:
<dependency>
	<groupId>org.springframework</groupId>
	<artifactId>spring-tx</artifactId>
	<version>4.1.5.RELEASE</version>
</dependency>

Leave a Reply

Your email address will not be published. Required fields are marked *