日期:2014-05-18  浏览次数:20726 次

hibernate配置出错最,怎么办,急救啊……

2011-6-20 14:51:11 org.hibernate.annotations.common.Version <clinit>
信息: Hibernate Commons Annotations 3.2.0.Final
2011-6-20 14:51:11 org.hibernate.cfg.Environment <clinit>
信息: Hibernate 3.6.4.Final
2011-6-20 14:51:11 org.hibernate.cfg.Environment <clinit>
信息: hibernate.properties not found
2011-6-20 14:51:11 org.hibernate.cfg.Environment buildBytecodeProvider
信息: Bytecode provider name : javassist
2011-6-20 14:51:11 org.hibernate.cfg.Environment <clinit>
信息: using JDK 1.4 java.sql.Timestamp handling
2011-6-20 14:51:11 org.hibernate.cfg.Configuration configure
信息: configuring from resource: /hibernate.cfg.xml
2011-6-20 14:51:11 org.hibernate.cfg.Configuration getConfigurationInputStream
信息: Configuration resource: /hibernate.cfg.xml
2011-6-20 14:51:11 org.hibernate.cfg.Configuration doConfigure
信息: Configured SessionFactory: null
2011-6-20 14:51:11 org.hibernate.cfg.AnnotationBinder bindClass
信息: Binding entity from annotated class: hb.learn.model.User
2011-6-20 14:51:11 org.hibernate.cfg.annotations.EntityBinder bindTable
信息: Bind entity hb.learn.model.User on table user
2011-6-20 14:51:11 org.hibernate.cfg.Configuration applyHibernateValidatorLegacyConstraintsOnDDL
信息: Hibernate Validator not found: ignoring
2011-6-20 14:51:11 org.hibernate.validator.util.Version <clinit>
信息: Hibernate Validator bean-validator-3.0-JBoss-4.0.2
Exception in thread "main" org.hibernate.HibernateException: Unable to get the default Bean Validation factory
at org.hibernate.cfg.beanvalidation.BeanValidationActivator.applyDDL(BeanValidationActivator.java:127)
at org.hibernate.cfg.Configuration.applyBeanValidationConstraintsOnDDL(Configuration.java:1704)
at org.hibernate.cfg.Configuration.applyConstraintsToDDL(Configuration.java:1654)
at org.hibernate.cfg.Configuration.secondPassCompile(Configuration.java:1445)
at org.hibernate.cfg.Configuration.buildSessionFactory(Configuration.java:1856)
at hb.learn.util.HibernateUtil.main(HibernateUtil.java:15)
Caused by: java.lang.reflect.InvocationTargetException
at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39)
at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
at java.lang.reflect.Method.invoke(Method.java:597)
at org.hibernate.cfg.beanvalidation.BeanValidationActivator.applyDDL(BeanValidationActivator.java:118)
... 5 more
Caused by: org.hibernate.HibernateException: Unable to build the default ValidatorFactory
at org.hibernate.cfg.beanvalidation.TypeSafeActivator.getValidatorFactory(TypeSafeActivator.java:383)
at org.hibernate.cfg.beanvalidation.TypeSafeActivator.applyDDL(TypeSafeActivator.java:109)
... 10 more
Caused&