Win a copy of The Little Book of Impediments (e-book only) this week in the Agile and Other Processes forum!
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

Bean Validation with Hibernate 3.6 in GlassFish 3.0.1

 
Ryan Slominski
Ranch Hand
Posts: 33
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
I'm using Hibernate 3.6 in a web application that I'm deploying to GlassFish 3.0.1. All seems well except for Beans Validation. I was using EclipseLink before because it comes built-in with GlassFish 3.0.1 and Bean Validation worked then. Now that I've switched to Hibernate Beans Validation doesn't work anymore. I see this message in the log when the application is deployed:

INFO: Hibernate Validator not found: ignoring


What gives? Bean Validation comes with GlassFish so why can it not find it? Is there a version mismatch?
 
Ryan Slominski
Ranch Hand
Posts: 33
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Nevermind. Apparently that logger Info message about Hibernate Validator doesn't matter. What does matter is that any custom validation messages properties files are in the classpath!

I would delete this post, but I can't find the option.
 
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic