Hello everyone,
After removing spring-jdbc / spring-tx of our project libs, a decision of my company (which I do not understand) we had to re work the database access layer. Then, when we ran the junit in order to test it we got this error:
This is weird because the test was executed successfully. This happens after running it.
Any ideas? I don't understand what's going on here.
Regards,
Luis.
After removing spring-jdbc / spring-tx of our project libs, a decision of my company (which I do not understand) we had to re work the database access layer. Then, when we ran the junit in order to test it we got this error:
Code:
INFO : org.springframework.context.support.GenericApplicationContext - Closing org.springframework.context.support.GenericApplicationContext@f99ff5: startup date [Thu Aug 08 21:42:02 ART 2013]; root of context hierarchy
INFO : org.springframework.beans.factory.support.DefaultListableBeanFactory - Destroying singletons in org.springframework.beans.factory.support.DefaultListableBeanFactory@1e4f7c2: defining beans [syncResolver,demographicTmpService,loadHoursService,processActiveClaimsService,dataSource,jdbcHelper,demographicTmpRowMapper,tempHoursRowMapper,demographicRowMapper,seniorityRowMapper,bargainingUnitRowMapper,statusRowMapper,calendarYrwkRowMapper,indicationsRowMapper,hoursRowMapper,hoursUsageRowMapper,priorWeekAdjustmentsRowMapper,creditUnitRowMapper,eligiblePWAHoursRowMapper,eligibleCurrentHoursRowMapper,claimsRowMapper,contractRowMapper,statusValidator,claimsValidator,demographicTmpDao,demographicDao,seniorityDao,bargainingUnitDao,tempHoursDao,statusDao,calendarYrwkDao,indicationsDao,hoursDao,hoursUsageDao,priorWeekAdjustmentsDao,creditUnitDao,eligiblePWAHoursDaoImpl,eligibleCurrentHoursDaoImpl,claimsDaoImpl,contractDaoImpl,exceptionResolver,org.springframework.context.annotation.internalConfigurationAnnotationProcessor,org.springframework.context.annotation.internalAutowiredAnnotationProcessor,org.springframework.context.annotation.internalRequiredAnnotationProcessor,org.springframework.context.annotation.internalCommonAnnotationProcessor,org.springframework.context.annotation.internalPersistenceAnnotationProcessor,org.springframework.context.annotation.ConfigurationClassPostProcessor.importAwareProcessor]; root of factory hierarchy
ERROR: org.springframework.beans.factory.support.DefaultListableBeanFactory - Destroy method on bean with name 'exceptionResolver' threw an exception
java.lang.NoClassDefFoundError: org/springframework/dao/InvalidDataAccessApiUsageException
at org.springframework.orm.jpa.support.PersistenceAnnotationBeanPostProcessor.postProcessBeforeDestruction(PersistenceAnnotationBeanPostProcessor.java:358)
at org.springframework.beans.factory.support.DisposableBeanAdapter.destroy(DisposableBeanAdapter.java:220)
at org.springframework.beans.factory.support.DefaultSingletonBeanRegistry.destroyBean(DefaultSingletonBeanRegistry.java:510)
at org.springframework.beans.factory.support.DefaultSingletonBeanRegistry.destroySingleton(DefaultSingletonBeanRegistry.java:486)
at org.springframework.beans.factory.support.DefaultListableBeanFactory.destroySingleton(DefaultListableBeanFactory.java:740)
at org.springframework.beans.factory.support.DefaultSingletonBeanRegistry.destroySingletons(DefaultSingletonBeanRegistry.java:455)
at org.springframework.context.support.AbstractApplicationContext.destroyBeans(AbstractApplicationContext.java:1090)
at org.springframework.context.support.AbstractApplicationContext.doClose(AbstractApplicationContext.java:1064)
at org.springframework.context.support.AbstractApplicationContext$1.run(AbstractApplicationContext.java:980)
Caused by: java.lang.ClassNotFoundException: org.springframework.dao.InvalidDataAccessApiUsageException
at java.net.URLClassLoader$1.run(Unknown Source)
at java.security.AccessController.doPrivileged(Native Method)
at java.net.URLClassLoader.findClass(Unknown Source)
at java.lang.ClassLoader.loadClass(Unknown Source)
at sun.misc.Launcher$AppClassLoader.loadClass(Unknown Source)
at java.lang.ClassLoader.loadClass(Unknown Source)
... 9 more
Any ideas? I don't understand what's going on here.
Regards,
Luis.