0

I have started Web Application using Spring + Hibernate MVC. I Created All File. There are some issues when i'm debug my application. Here I have attached test-servlet.xml. First one is that how to add' ' then there are 3 errors when i'm debug my application. I have also mentioned that error line. So any one help me plz on this???

error :

![javax.servlet.ServletException: Servlet.init() for servlet test threw exception

org.springframework.beans.factory.BeanDefinitionStoreException: Unexpected exception parsing XML document from ServletContext resource \[/WEB-INF/config/test-servlet.xml\]; nested exception is java.lang.NoClassDefFoundError: org/springframework/transaction/interceptor/TransactionInterceptor

java.lang.NoClassDefFoundError: org/springframework/transaction/interceptor/TransactionInterceptor]

enter image description here enter image description here

3 Answers3

0

The exception says:

java.lang.NoClassDefFoundError: 
org/springframework/transaction/interceptor/TransactionInterceptor

Check your WEB-INF/lib and make sure you have the spring jar file that contains this class.

Chaitanya
  • 15,403
  • 35
  • 96
  • 137
0

This class is found in "spring-tx" jar that should be present in your classpath (lib). Please check this. If not present please download appropriate version from here.

Shailendra
  • 8,874
  • 2
  • 28
  • 37
0

Download the org.springframework.transaction.jar and add add it to your classpath.

Jens
  • 67,715
  • 15
  • 98
  • 113