This week's giveaway is in the Android forum.
We're giving away four copies of Android Security Essentials Live Lessons and have Godfrey Nolan on-line!
See this thread for details.
The moose likes EJB and other Java EE Technologies and the fly likes Cannot cast org.hibernate.validator.util.LazyValidatorFactory to javax.validation.ValidatorFactory Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login


Win a copy of Android Security Essentials Live Lessons this week in the Android forum!
JavaRanch » Java Forums » Java » EJB and other Java EE Technologies
Reply locked New topic
Author

Cannot cast org.hibernate.validator.util.LazyValidatorFactory to javax.validation.ValidatorFactory

ezani abd halim
Greenhorn

Joined: Jan 12, 2009
Posts: 8
Hi there

I am trying to deploy a test application using Prime Faces, Hibernate, Spring DAO, EJB3, Facelets and JSF2.0 which I created in my Net Beans 6.9.1 IDE which works fine in GlassFish Server 3.0 but does not seem to run on JBoss-6.0.0.Final. Since the app connects to a MySQL database, uses JPA2 and JTA (EclipseLink), I have added the mysql-connector.x.x.x-bin.jar and the mysql-ds.xml files needed. Many of the jar files in our app's lib folder had to be removed because they were already included in JBoss AS 6 and were causing ClassCastExceptions. After refining the jars to be included in our app's lib folder, I am still obtaining a few errors. Main error seems to be :-

05:27:18,931 ERROR [STDERR] log4j:WARN No appenders could be found for logger (org.springframework.web.context.ContextLoader).
05:27:18,931 ERROR [STDERR] log4j:WARN Please initialize the log4j system properly.
05:27:18,975 ERROR [[/H2Care]] Exception sending context initialized event to listener instance of class
org.jboss.web.jsf.integration.config.JBossMojarra20ConfigureListener: java.lang.ClassCastException: Cannot cast org.hibernate.validator.util.LazyValidatorFactory to javax.validation.ValidatorFactory

My persistence.xml file is as follows :-



Please help. I attach the full JBoss 6 server log below :-




Thank you very much in advance.
Ezani
Jaikiran Pai
Marshal

Joined: Jul 20, 2005
Posts: 9962
    
163

Please continue in your other thread here http://www.coderanch.com/t/542893/JBoss/Cannot-cast-org-hibernate-validator

[My Blog] [JavaRanch Journal]
 
It is sorta covered in the JavaRanch Style Guide.
 
subject: Cannot cast org.hibernate.validator.util.LazyValidatorFactory to javax.validation.ValidatorFactory
 
Similar Threads
JBOSS sample portlet
Cannot cast org.hibernate.validator.util.LazyValidatorFactory to javax.validation.ValidatorFactory
jboss not starting
No nothing works
HTTP Status 404