-->
These old forums are deprecated now and set to read-only. We are waiting for you on our new forums!
More modern, Discourse-based and with GitHub/Google/Twitter authentication built-in.

All times are UTC - 5 hours [ DST ]



Forum locked This topic is locked, you cannot edit posts or make further replies.  [ 4 posts ] 
Author Message
 Post subject: Hibernate Validator for Java EE 5?
PostPosted: Fri Apr 05, 2013 4:24 pm 
Beginner
Beginner

Joined: Wed Aug 11, 2004 3:50 pm
Posts: 26
We don't use Maven and I need to download the correct version of hibernate-validator that is compatible iwth Java EE 5?

We are using java 6, jee 5, hibernate 3.5.1 and hibernate-jpa-2.0-api-1.0.0.


Top
 Profile  
 
 Post subject: Re: Hibernate Validator for Java EE 5?
PostPosted: Sat Apr 06, 2013 3:33 pm 
Hibernate Team
Hibernate Team

Joined: Sat Jan 24, 2009 12:46 pm
Posts: 388
As Bean Validation / Hibernate Validator is not part of Java EE 5, you can simply add the latest version to your deployed application.

Just download either 4.3.1.Final (latest BV 1.0 compatible version) or 5.0.0.CR5 (latest BV 1.1 compatible candidate release, with 5.0.0.Final due very soon) from our SourceForge project (http://sourceforge.net/projects/hibernate/files/hibernate-validator/).

--Gunnar

_________________
Visit my blog at http://musingsofaprogrammingaddict.blogspot.com/


Top
 Profile  
 
 Post subject: Re: Hibernate Validator for Java EE 5?
PostPosted: Mon Apr 08, 2013 9:20 am 
Beginner
Beginner

Joined: Wed Aug 11, 2004 3:50 pm
Posts: 26
Gunnar wrote:
As Bean Validation / Hibernate Validator is not part of Java EE 5, you can simply add the latest version to your deployed application.
--Gunnar

Unfortunately that is not possible. Tried using hibernate-validator-4.1.0.Final.jar and that version of validator expects javax.validation.Payload, a JEE 6 class that did not exist in JEE 5.

So I still need a version of validator that is compatible with JEE 5. Where do I find it?

This is very troubling. If Hibernate has given up supporting even one version back from the current JEE, then it is no longer viable for enterprise applications. Or is it perhaps an inadvertent messup?


Top
 Profile  
 
 Post subject: Re: Hibernate Validator for Java EE 5?
PostPosted: Mon Apr 08, 2013 6:32 pm 
Hibernate Team
Hibernate Team

Joined: Sat Jan 24, 2009 12:46 pm
Posts: 388
You are missing the Bean Validation API JAR which also can can be used on Java EE 5 (and Java SE). This JAR can be found in the distribution as described in the Hibernate Validator readme file (https://github.com/hibernate/hibernate-validator):

Quote:
...
In case you use the distribution archive from the download site, copy dist/hibernate-validator-<version>.jar together with all jar files from dist/lib/required into the classpath of your application.
...


Note that when using HV 5.x on Java EE 5, you likely don't have to copy the EL JARs from dist/lib/required as they should be provided by the container.

--Gunnar

_________________
Visit my blog at http://musingsofaprogrammingaddict.blogspot.com/


Top
 Profile  
 
Display posts from previous:  Sort by  
Forum locked This topic is locked, you cannot edit posts or make further replies.  [ 4 posts ] 

All times are UTC - 5 hours [ DST ]


You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum

Search for:
© Copyright 2014, Red Hat Inc. All rights reserved. JBoss and Hibernate are registered trademarks and servicemarks of Red Hat, Inc.