Posts

Showing posts with the label TransactionInterceptor#0

Exceptions encountered during Development

Miscellaneous Exceptions :-  You might encounter various exceptions while developing a Project with Spring and Hibernate. I have depicted few of them here and their solutions:- 1. SEVERE: Context initialization failed org.springframework.beans.factory.BeanCreationException: Error creating bean with name 'sessionFactory' defined in ServletContext resource [/WEB-INF/spring-servlet.xml]: Invocation of init method failed; nested exception is java.lang.NoClassDefFoundError: org/apache/commons/collections/map/LRUMap Solution:-      Use commons-collections.jar 2. SEVERE: Servlet.service() for servlet spring threw exception org.springframework.beans.factory.BeanNotOfRequiredTypeException: Bean named 'org.springframework.transaction.interceptor.TransactionInterceptor#0' must be of type [org.aopalliance.aop.Advice], but was actually of type [org.springframework.transaction.interceptor.TransactionInterceptor] Solution:-  It might be due to  ...