Cannot cast org.hibernate.validator.util.LazyValidatorFactory to javax.validation.ValidatorFactory
ezani abd halim
Joined: Jan 12, 2009
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 :-