1. Error description
info:2015-02-05 22:14:21[main]-Loading XML bean definitions from class path resource [applicationcontext.xml]info:2015- 02-05 22:14:22[main]-JSR-250 ' javax.annotation.ManagedBean ' found and supported for component SCANNINGINFO:2015-02-05 2 2:14:22[main]-JSR-330 ' javax.inject.Named ' annotation found and supported for component scanninginfo:2015-02-05 22:14:2 2[main]-Refreshing [email protected]481fbd:startup date [Thu Feb 22:14:22 CST 2015]; Root of Context hierarchyinfo:2015-02-05 22:14:22[main]-Loading properties file from URL [File:/d:/myeclipse10/workspac e/hfms/web/web-inf/classes/jdbc.oracle.properties]info:2015-02-05 22:14:22[main]-JSR-330 ' javax.inject.Inject ' Annotation found and supported for autowiringinfo:2015-02-05 22:14:22[main]-pre-instantiating singletons in Org.s[email protected]5a5c6e55:defining Beans [Regdao,usermanagedao, 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.support.propertysourcesplaceholderconfigurer#0,datasource,sessionfactory, Transactionmanager,txadvice,org.springframework.aop.config.internalautoproxycreator, Org.springframework.aop.support.defaultbeanfactorypointcutadvisor#0, Org.springframework.context.annotation.ConfigurationClassPostProcessor.importAwareProcessor]; Root of Factory hierarchyinfo:2015-02-05 22:14:23[main]-hcann000001:hibernate Commons Annotations {4.0.1.final}info : 2015-02-05 22:14:23[main]-hhh000412:hibernate Core {4.1.9.final}info:2015-02-05 22:14:23[main]-HHH000206: Hibernate.properties not foundinfo:2015-02-05 22:14:23[main]-Hhh000021:bytecode provider name:javassistwarn:2015-02 -05 22:14:23[main]-hhh000223:recognized oBsolete Hibernate namespace http://hibernate.sourceforge.net/. Use namespace Http://www.hibernate.org/dtd/instead. Refer to Hibernate 3.6 migration guide!info:2015-02-05 22:14:23[main]-hhh000400:using DIALECT:ORG.HIBERNATE.DIALECT.O racle10gdialectinfo:2015-02-05 22:14:23[main]-hhh000422:disabling contextual LOB creation as connection was Nullinfo:2 015-02-05 22:14:23[main]-hhh000399:using default transaction strategy (direct JDBC transactions) info:2015-02-05 22:14: 23[main]-hhh000397:using astquerytranslatorfactory February 05, 2015 10:14:23 PM Org.hibernate.validator.util.Version < Clinit> information: Hibernate Validator bean-validator-3.0-jboss-4.0.2info:2015-02-05 22:14:23[main]-destroying singletons in org.s[email protected]5a5c6e55:defining beans [Regdao,usermanagedao, 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.support.propertysourcesplaceholderconfigurer#0,datasource,sessionfactory, Transactionmanager,txadvice,org.springframework.aop.config.internalautoproxycreator, Org.springframework.aop.support.defaultbeanfactorypointcutadvisor#0, Org.springframework.context.annotation.ConfigurationClassPostProcessor.importAwareProcessor]; Root of Factory hierarchyerror:2015-02-05 22:14:23[main]-caught exception while allowing Testexecutionlistener [Or[emai L&NBSP;PROTECTED]7F13349] To prepare test instance [[Email protected]]java.lang.illegalstateexception:failed to Load Applicationcontextat org.springframework.test.context.TestContext.getApplicationContext (Testcontext.java : 157) at Org.springframework.test.context.web.ServletTestExecutionListener.setUpRequestContextIfNecessary ( Servlettestexecutionlistener.java:103) at Org.springframework.test.context.web.ServletTestExecutionListener.prepareTestInstance ( servlettestexecutionlistener.java:73) at Org.springframework.test.context.TestContextManager.prepareTestInstance (testcontextmanager.java:313) at Org.springframework.test.context.junit4.SpringJUnit4ClassRunner.createTest ( springjunit4classrunner.java:211) at org.springframework.test.context.junit4.springjunit4classrunner$1. Runreflectivecall (springjunit4classrunner.java:288) at Org.junit.internal.runners.model.ReflectiveCallable.run ( REFLECTIVECALLABLE.JAVA:12) at Org.springframework.test.context.junit4.SpringJUnit4ClassRunner.methodBlock ( springjunit4classrunner.java:284) at Org.springframework.test.context.junit4.SpringJUnit4ClassRunner.runChild ( springjunit4classrunner.java:231) at Org.springframework.test.context.junit4.SpringJUnit4ClassRunner.runChild ( springjunit4classrunner.java:88) at Org.junit.runners.parentrunner$3.run (parentrunner.java:238) at Org.junit.runners.parentrunner$1.schedule (parentrunner.java:63) at Org.junit.runners.ParentRunner.runChildren (parentrunner.java:236) at org.junit.runners.parentrunner.access$000 (parentrunner.java:53) at Org.junit.runners.parentrunner$2.evaluate ( parentrunner.java:229) at Org.springframework.test.context.junit4.statements.RunBeforeTestClassCallbacks.evaluate ( RUNBEFORETESTCLASSCALLBACKS.JAVA:61) at Org.springframework.test.context.junit4.statements.RunAfterTestClassCallbacks.evaluate ( runaftertestclasscallbacks.java:71) at Org.junit.runners.ParentRunner.run (parentrunner.java:309) at Org.springframework.test.context.junit4.SpringJUnit4ClassRunner.run (springjunit4classrunner.java:174) at Org.eclipse.jdt.internal.junit4.runner.JUnit4TestReference.run (JUNIT4TESTREFERENCE.JAVA:50) at Org.eclipse.jdt.internal.junit.runner.TestExecution.run (testexecution.java:38) at Org.eclipse.jdt.internal.junit.runner.RemoteTestRunner.runTests (remotetestrunner.java:467) at Org.eclipse.jdt.internal.junit.runner.RemoteTestRunner.runTests (remotetestrunner.java:683) at org. Eclipse.jdt.internal.junit.runner.RemoteTestRunner.run (remotetestrunner.java:390) at Org.eclipse.jdt.internal.junit.runner.RemoteTestRunner.main (remotetestrunner.java:197) caused by: Org.springframework.beans.factory.BeanCreationException:Error creating Bean with Name ' Regdao ': Injection of resource Dependencies failed; Nested exception is org.springframework.beans.factory.BeanCreationException:Error creating beans with Name ' Sessionfactory ' defined in class path resource [Applicationcontext.xml]: Invocation of Init method failed; Nested exception is org.hibernate.HibernateException:Error applying beanvalidation relational Constraintsat Org.springframework.context.annotation.CommonAnnotationBeanPostProcessor.postProcessPropertyValues ( commonannotationbeanpostprocessor.java:306) at Org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.populateBean ( ABSTRACTAUTOWIRECAPABLEBEANFACTORY.JAVA:1120) at Org.springframework.beans.factory.support.AbstractAutowireCapableBeanFaCtory.docreatebean (abstractautowirecapablebeanfactory.java:522) at Org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.createBean ( abstractautowirecapablebeanfactory.java:461) at org.springframework.beans.factory.support.abstractbeanfactory$1. GetObject (abstractbeanfactory.java:295) at Org.springframework.beans.factory.support.DefaultSingletonBeanRegistry.getSingleton ( defaultsingletonbeanregistry.java:223) at Org.springframework.beans.factory.support.AbstractBeanFactory.doGetBean (abstractbeanfactory.java:292) at Org.springframework.beans.factory.support.AbstractBeanFactory.getBean (abstractbeanfactory.java:194) at Org.springframework.beans.factory.support.DefaultListableBeanFactory.preInstantiateSingletons ( defaultlistablebeanfactory.java:607) at Org.springframework.context.support.AbstractApplicationContext.finishBeanFactoryInitialization ( abstractapplicationcontext.java:932) at Org.springframework.context.support.AbstractApplicationContext.refresh ( Abstractapplicationcontext.java:479) at Org.springframework.test.context.support.AbstractGenericContextLoader.loadContext ( abstractgenericcontextloader.java:106) at Org.springframework.test.context.support.AbstractGenericContextLoader.loadContext ( ABSTRACTGENERICCONTEXTLOADER.JAVA:57) at Org.springframework.test.context.support.AbstractDelegatingSmartContextLoader.delegateLoading ( ABSTRACTDELEGATINGSMARTCONTEXTLOADER.JAVA:100) at Org.springframework.test.context.support.AbstractDelegatingSmartContextLoader.loadContext ( abstractdelegatingsmartcontextloader.java:248) at Org.springframework.test.context.TestContext.loadApplicationContext (testcontext.java:124) at Org.springframework.test.context.TestContext.getApplicationContext (testcontext.java:148) ... morecaused By:org.springframework.beans.factory.BeanCreationException:Error creating Bean with Name ' Sessionfactory ' defined in class path resource [Applicationcontext.xml]: Invocation of Init method failed; Nested exception is org.hibernate.HibernateException:Error applying Beanvalidation Relational Constraintsat Org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.initializeBean ( abstractautowirecapablebeanfactory.java:1486) at Org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.doCreateBean ( abstractautowirecapablebeanfactory.java:524) at Org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.createBean ( abstractautowirecapablebeanfactory.java:461) at org.springframework.beans.factory.support.abstractbeanfactory$1. GetObject (abstractbeanfactory.java:295) at Org.springframework.beans.factory.support.DefaultSingletonBeanRegistry.getSingleton ( defaultsingletonbeanregistry.java:223) at Org.springframework.beans.factory.support.AbstractBeanFactory.doGetBean (abstractbeanfactory.java:292) at Org.springframework.beans.factory.support.AbstractBeanFactory.getBean (abstractbeanfactory.java:198) at Org.springframework.context.annotation.CommonAnnotationBeanPostProcessor.autowireResource (Commonannotationbeanpostprocessor.java:442) at Org.springframework.context.annotation.CommonAnnotationBeanPostProcessor.getResource ( commonannotationbeanpostprocessor.java:416) at Org.springframework.context.annotation.commonannotationbeanpostprocessor$resourceelement.getresourcetoinject ( commonannotationbeanpostprocessor.java:550) at org.springframework.beans.factory.annotation.injectionmetadata$ Injectedelement.inject (injectionmetadata.java:150) at Org.springframework.beans.factory.annotation.InjectionMetadata.inject (injectionmetadata.java:87) at Org.springframework.context.annotation.CommonAnnotationBeanPostProcessor.postProcessPropertyValues ( commonannotationbeanpostprocessor.java:303) ... morecaused By:org.hibernate.HibernateException:Error applying beanvalidation relational Constraintsat Org.hibernate.cfg.beanvalidation.BeanValidationIntegrator.applyRelationalConstraints ( beanvalidationintegrator.java:219) at Org.hibernate.cfg.beanvalidation.BeanValidationIntegrator.integrate ( Beanvalidationintegrator.java:126) at org.hibernate.internal.sessionfactoryimpl.<init> (sessionfactoryimpl.java:303) at Org.hibernate.cfg.Configuration.buildSessionFactory (configuration.java:1750) at Org.hibernate.cfg.Configuration.buildSessionFactory (configuration.java:1788) at Org.springframework.orm.hibernate4.LocalSessionFactoryBuilder.buildSessionFactory ( localsessionfactorybuilder.java:242) at Org.springframework.orm.hibernate4.LocalSessionFactoryBean.buildSessionFactory (Localsessionfactorybean.java : 372) at Org.springframework.orm.hibernate4.LocalSessionFactoryBean.afterPropertiesSet ( localsessionfactorybean.java:357) at Org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.invokeInitMethods ( abstractautowirecapablebeanfactory.java:1545) at Org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.initializeBean ( abstractautowirecapablebeanfactory.java:1483) ... morecaused By:java.lang.reflect.InvocationTargetExceptionat Sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method) at Sun.reflect.NativeMethodAccessorImpl.invoke (nativemethodaccessorimpl.java:57) at Sun.reflect.DelegatingMethodAccessorImpl.invoke (delegatingmethodaccessorimpl.java:43) at Java.lang.reflect.Method.invoke (method.java:606) at Org.hibernate.cfg.beanvalidation.BeanValidationIntegrator.applyRelationalConstraints ( beanvalidationintegrator.java:208) ... morecaused by:org.hibernate.HibernateException:Unable to build the default Validatorfactoryat Org.hibernate.cfg.beanvalidation.TypeSafeActivator.getValidatorFactory (typesafeactivator.java:524) at Org.hibernate.cfg.beanvalidation.TypeSafeActivator.applyDDL (typesafeactivator.java:119) ... morecaused by:javax.validation.ValidationException:Unable to instantiate configuration.at Javax.validation.validation$genericbootstrapimpl.configure (validation.java:272) at Javax.validation.Validation.buildDefaultValidatorFactory (validation.java:111) at Org.hibernate.cfg.beanvalidation.TypeSafeActivator.getValidatorFactory (Typesafeactivator.java:521) ... morecaused By:java.lang.NullPointerExceptionat Java.util.ResourceBundle.getBundle (resourcebundle.java:1026) at Org.hibernate.validator.engine.ResourceBundleMessageInterpolator.loadBundle ( resourcebundlemessageinterpolator.java:202) at Org.hibernate.validator.engine.ResourceBundleMessageInterpolator.getFileBasedResourceBundle ( resourcebundlemessageinterpolator.java:182) at Org.hibernate.validator.engine.ResourceBundleMessageInterpolator. <init> (resourcebundlemessageinterpolator.java:81) at Org.hibernate.validator.engine.resourcebundlemessageinterpolator.<init> ( resourcebundlemessageinterpolator.java:73) at Org.hibernate.validator.engine.configurationimpl.<init> ( configurationimpl.java:57) at Org.hibernate.validator.HibernateValidator.createGenericConfiguration ( hibernatevalidator.java:43) at Javax.validation.validation$genericbootstrapimpl.configure (Validation.java:269) ... More
2. Cause of error
3. Solutions
java.lang.IllegalStateException:Failed to load ApplicationContext