How to fix JBoss Hibernate 3.6.8.Final startup exception (org.hibernate.validator.ClassValidator.<init>)


I am using Hibernate 3.6.8.Final as part of a project deployed in
JBoss 4.3 and found the following stack trace issued during
startup:


Caused by: org.hibernate.AnnotationException:
java.lang.NoSuchMethodException:
org.hibernate.validator.ClassValidator.<init>(java.lang.Class,
java.util.ResourceBundle, org.hibernate.validator.MessageInterpolator,
java.util.Map,
org.hibernate.annotations.common.reflection.ReflectionManager)

at
org.hibernate.cfg.Configuration.applyHibernateValidatorLegacyConstraintsOnDDL(Configuration.java:1681)
~[hibernate-core-3.6.8.Final.jar:3.6.8.Final]
at
org.hibernate.cfg.Configuration.applyConstraintsToDDL(Confi

I am using hibernate with spring in my maven project. This is my
POM file


<?xml version="1.0"
encoding="UTF-8"?>
<project

xmlns="http://maven.apache.org/POM/4.0.0"

xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"

xsi:schemaLocation="http://maven.apache.org/POM/4.0.0

http://maven.apache.org/maven-v4_0_0.xsd">

<modelVersion>4.0.0</modelVersion>

<groupId>org.mod.com</groupId>

<artifactId>Services</artifactId>

<version>1.0.0-SNAPSHOT</version>

<packaging>war</packaging>
<name&g
Java

I have a big problem with Hibernate (use with seam) on weblogic
10.3.


When I publish my application, I get this
error:


java.lang.NoSuchMethodException:
org.hibernate.validator.ClassValidator.<init>(java.lang.Class,
java.util.ResourceBundle, org.hibernate.validator.MessageInterpolator,
java.util.Map,
org.hibernate.annotations.common.reflection.ReflectionManager) />

I read on the web that this error can come from
compatibily between hibernate jar. But, I read the matrix and I have
the good jar with good version (hibernate-validator 3.1,
hibernate-search 3.1, hibernate core 3.3.0)


I haven't idea
t

Programming Languages

I am using hibernate in my code, and running my app on jboss
4.0.5GA. The supplied jboss hibernate library doesn't include the
entity manager, which I need. Even though I've included hibernate
3.6.0 in my application's lib directory, it's not found at
startup.


java.lang.NoClassDefFoundError:
org/hibernate/cfg/ExtendedMappings
at
org.hibernate.ejb.Ejb3Configuration.(Ejb3Configuration.java:129)

at
org.hibernate.ejb.HibernatePersistence.createEntityManagerFactory(HibernatePersistence.java:55) /> at
javax.persistence.Persistence.createEntityManagerFactory(Persistence.java:63) /> at javax.persistence.Persistence.createEntityM
Java

I am using Hibernate 3.6.8.Final as part of a project deployed in
JBoss 4.3 and found the following stack trace issued during
startup:


Caused by: org.hibernate.AnnotationException:
java.lang.NoSuchMethodException:
org.hibernate.validator.ClassValidator.<init>(java.lang.Class,
java.util.ResourceBundle, org.hibernate.validator.MessageInterpolator,
java.util.Map,
org.hibernate.annotations.common.reflection.ReflectionManager)

at
org.hibernate.cfg.Configuration.applyHibernateValidatorLegacyConstraintsOnDDL(Configuration.java:1681)
~[hibernate-core-3.6.8.Final.jar:3.6.8.Final]
at
org.hibernate.cfg.Configuration.applyConstraintsToDDL(Confi
Programming Languages

when i try to run my code it generate the follwing exception.


INFO: HHH000397: Using ASTQueryTranslatorFactory />Hibernate: select sequence_next_hi_value from hibernate_sequences
where sequence_name = 'Ancestor' for update
Hibernate: insert
into hibernate_sequences(sequence_name, sequence_next_hi_value)
values('Ancestor', ?)
Hibernate: update hibernate_sequences set
sequence_next_hi_value = ? where sequence_next_hi_value = ? and
sequence_name = 'Ancestor'
Hibernate: insert into Ancestor
(nationality, DTYPE, id) values (?, 'Ancestor', ?)
Dec 05, 2012
1:14:43 PM org.hibernate.engine.jdbc.spi.SqlExceptionHelper
logExceptions <
Programming Languages

Using hibernate-validator-4.2.0.Final.jar and the
ClassValidator class is nowhere to be found inside of it.
The official PDF for the 3.1.0.GA release shows it as
existing inside the org.hibernate.validator package, but
inside both my jar and the official repo it is not there.

/>

This leads me to believe either:


it has been deprecated
in lieu of something else; or
it has just been moved somewhere
and I can't seem to find it!

If it has been deprecated then
what is the best way to use the annotations and to check if something
validates (or not)? If it has been deprecated,

Programming Languages

- Technology - Languages
+ Webmasters
+ Development
+ Development Tools
+ Internet
+ Mobile Programming
+ Linux
+ Unix
+ Apple
+ Ubuntu
+ Mobile & Tablets
+ Databases
+ Android
+ Network & Servers
+ Operating Systems
+ Coding
+ Design Software
+ Web Development
+ Game Development
+ Access
+ Excel
+ Web Design
+ Web Hosting
+ Web Site Reviews
+ Domain Name
+ Information Security
+ Software
+ Computers
+ Electronics
+ Hardware
+ Windows
+ PHP
+ ASP/ASP.Net
+ C/C++/C#
+ VB/VB.Net
+ JAVA
+ Javascript
+ Programming
Privacy Policy - Copyrights Notice - Feedback - Report Violation 2018 © BigHow