This week's book giveaway is in the Features new in Java 9 forum.
We're giving away four copies of Java 9 Revealed and have Kishori Sharan on-line!
See this thread for details.
Win a copy of Java 9 Revealed this week in the Features new in Java 9 forum!
  • Post Reply Bookmark Topic Watch Topic
  • New Topic

Bean Validation with Hibernate 3.6 in GlassFish 3.0.1  RSS feed

 
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.
 
Consider Paul's rocket mass heater.
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
Boost this thread!