java - JPA, HIBERNATE strange error -
i dont know why im getting error, tryed lot of different persistence.xml configs on internet, error never change...
and in classpath have .jars required folder hibernate download ( http://hibernate.org/orm/) , downloaded validator, have in webcontent/web-inf/libs , hibernate.xml in src/meta-inf....
what can be?
error:
fev 06, 2014 1:38:49 org.hibernate.ejb.hibernatepersistence logdeprecation warn: hhh015016: encountered deprecated javax.persistence.spi.persistenceprovider [org.hibernate.ejb.hibernatepersistence]; use [org.hibernate.jpa.hibernatepersistenceprovider] instead. fev 06, 2014 1:38:49 org.hibernate.ejb.hibernatepersistence logdeprecation warn: hhh015016: encountered deprecated javax.persistence.spi.persistenceprovider [org.hibernate.ejb.hibernatepersistence]; use [org.hibernate.jpa.hibernatepersistenceprovider] instead. fev 06, 2014 1:38:49 org.hibernate.ejb.hibernatepersistence logdeprecation warn: hhh015016: encountered deprecated javax.persistence.spi.persistenceprovider [org.hibernate.ejb.hibernatepersistence]; use [org.hibernate.jpa.hibernatepersistenceprovider] instead. fev 06, 2014 1:38:49 org.hibernate.jpa.internal.util.loghelper logpersistenceunitinformation info: hhh000204: processing persistenceunitinfo [ name: cartorio ...] fev 06, 2014 1:38:49 org.hibernate.version logversion info: hhh000412: hibernate core {4.3.1.final} fev 06, 2014 1:38:49 org.hibernate.cfg.environment <clinit> info: hhh000206: hibernate.properties not found fev 06, 2014 1:38:49 org.hibernate.cfg.environment buildbytecodeprovider info: hhh000021: bytecode provider name : javassist fev 06, 2014 1:38:49 org.hibernate.annotations.common.reflection.java.javareflectionmanager <clinit> info: hcann000001: hibernate commons annotations {4.0.4.final} fev 06, 2014 1:38:49 org.hibernate.engine.jdbc.connections.internal.drivermanagerconnectionproviderimpl configure warn: hhh000402: using hibernate built-in connection pool (not production use!) fev 06, 2014 1:38:49 org.hibernate.engine.jdbc.connections.internal.drivermanagerconnectionproviderimpl buildcreator info: hhh000401: using driver [org.postgresql.driver] @ url [jdbc:postgresql://localhost:5432/teste] fev 06, 2014 1:38:49 org.hibernate.engine.jdbc.connections.internal.drivermanagerconnectionproviderimpl buildcreator info: hhh000046: connection properties: {user=postgres, password=****} fev 06, 2014 1:38:49 org.hibernate.engine.jdbc.connections.internal.drivermanagerconnectionproviderimpl buildcreator info: hhh000006: autocommit mode: false fev 06, 2014 1:38:49 org.hibernate.engine.jdbc.connections.internal.drivermanagerconnectionproviderimpl configure info: hhh000115: hibernate connection pool size: 20 (min=1) fev 06, 2014 1:38:50 org.hibernate.dialect.dialect <init> info: hhh000400: using dialect: org.hibernate.dialect.postgresqldialect fev 06, 2014 1:38:50 org.hibernate.engine.jdbc.internal.lobcreatorbuilder usecontextuallobcreation info: hhh000424: disabling contextual lob creation createclob() method threw error : java.lang.reflect.invocationtargetexception fev 06, 2014 1:38:50 org.hibernate.hql.internal.ast.astquerytranslatorfactory <init> info: hhh000397: using astquerytranslatorfactory fev 06, 2014 1:38:50 org.hibernate.validator.internal.util.version <clinit> info: hv000001: hibernate validator 5.0.2.final exception in thread "main" javax.persistence.persistenceexception: unable build entity manager factory @ org.hibernate.jpa.hibernatepersistenceprovider.createentitymanagerfactory(hibernatepersistenceprovider.java:81) @ org.hibernate.ejb.hibernatepersistence.createentitymanagerfactory(hibernatepersistence.java:54) @ javax.persistence.persistence.createentitymanagerfactory(persistence.java:55) @ javax.persistence.persistence.createentitymanagerfactory(persistence.java:39) @ jpahibernate.geratabelas.main(geratabelas.java:11) caused by: org.hibernate.cfg.beanvalidation.integrationexception: error activating bean validation integration @ org.hibernate.cfg.beanvalidation.beanvalidationintegrator.integrate(beanvalidationintegrator.java:154) @ org.hibernate.internal.sessionfactoryimpl.<init>(sessionfactoryimpl.java:311) @ org.hibernate.cfg.configuration.buildsessionfactory(configuration.java:1857) @ org.hibernate.jpa.boot.internal.entitymanagerfactorybuilderimpl$4.perform(entitymanagerfactorybuilderimpl.java:850) @ org.hibernate.jpa.boot.internal.entitymanagerfactorybuilderimpl$4.perform(entitymanagerfactorybuilderimpl.java:843) @ org.hibernate.boot.registry.classloading.internal.classloaderserviceimpl.withtccl(classloaderserviceimpl.java:399) @ org.hibernate.jpa.boot.internal.entitymanagerfactorybuilderimpl.build(entitymanagerfactorybuilderimpl.java:842) @ org.hibernate.jpa.hibernatepersistenceprovider.createentitymanagerfactory(hibernatepersistenceprovider.java:73) ... 4 more caused by: java.lang.noclassdeffounderror: com/fasterxml/classmate/filter @ org.hibernate.validator.internal.engine.validatorfactoryimpl.<init>(validatorfactoryimpl.java:122) @ org.hibernate.validator.hibernatevalidator.buildvalidatorfactory(hibernatevalidator.java:45) @ org.hibernate.validator.internal.engine.configurationimpl.buildvalidatorfactory(configurationimpl.java:217) @ javax.validation.validation.builddefaultvalidatorfactory(validation.java:110) @ org.hibernate.cfg.beanvalidation.typesafeactivator.getvalidatorfactory(typesafeactivator.java:459) @ org.hibernate.cfg.beanvalidation.typesafeactivator.activate(typesafeactivator.java:97) @ sun.reflect.nativemethodaccessorimpl.invoke0(native method) @ sun.reflect.nativemethodaccessorimpl.invoke(unknown source) @ sun.reflect.delegatingmethodaccessorimpl.invoke(unknown source) @ java.lang.reflect.method.invoke(unknown source) @ org.hibernate.cfg.beanvalidation.beanvalidationintegrator.integrate(beanvalidationintegrator.java:148) ... 11 more caused by: java.lang.classnotfoundexception: com.fasterxml.classmate.filter @ java.net.urlclassloader$1.run(unknown source) @ java.net.urlclassloader$1.run(unknown source) @ java.security.accesscontroller.doprivileged(native method) @ java.net.urlclassloader.findclass(unknown source) @ java.lang.classloader.loadclass(unknown source) @ sun.misc.launcher$appclassloader.loadclass(unknown source) @ java.lang.classloader.loadclass(unknown source) ... 22 more
my persistence.xml:
<?xml version="1.0" encoding="utf-8"?> <persistence version="1.0" xmlns="http://java.sun.com/xml/ns/persistence"> <persistence-unit name="cartorio" transaction-type="jta"> <provider>org.hibernate.ejb.hibernatepersistence</provider> <class>jpahibernate.pessoafisica</class> <properties> <property name="hibernate.dialect" value="org.hibernate.dialect.postgresqldialect" /> <property name="hibernate.connection.url" value="jdbc:postgresql://localhost:5432/teste" /> <property name="hibernate.connection.driver_class" value="org.postgresql.driver" /> <property name="hibernate.connection.username" value="postgres" /> <property name="hibernate.connection.password" value="root" /> </properties> </persistence-unit> </persistence>
simple class not found exception. read error, fix error.
caused by: java.lang.classnotfoundexception: com.fasterxml.classmate.filter
google pointed me why hibernate 4.2 using jandex , classmate if maven pom defines them test scope?
Comments
Post a Comment