Win a copy of Terraform in Action this week in the Cloud forum!
    Bookmark Topic Watch Topic
  • New Topic
programming forums Java Mobile Certification Databases Caching Books Engineering Micro Controllers OS Languages Paradigms IDEs Build Tools Frameworks Application Servers Open Source This Site Careers Other Pie Elite all forums
this forum made possible by our volunteer staff, including ...
Marshals:
  • Tim Cooke
  • Campbell Ritchie
  • Paul Clapham
  • Ron McLeod
  • Liutauras Vilda
Sheriffs:
  • Jeanne Boyarsky
  • Rob Spoor
  • Bear Bibeault
Saloon Keepers:
  • Jesse Silverman
  • Tim Moores
  • Stephan van Hulst
  • Tim Holloway
  • Carey Brown
Bartenders:
  • Piet Souris
  • Al Hobbs
  • salvin francis

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

 
Greenhorn
Posts: 8
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Report post to moderator
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
 
Sheriff
Posts: 10445
227
IntelliJ IDE Ubuntu
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Report post to moderator
Please continue in your other thread here https://coderanch.com/t/542893/JBoss/Cannot-cast-org-hibernate-validator
 
You showed up just in time for the waffles! And this tiny ad:
Building a Better World in your Backyard by Paul Wheaton and Shawn Klassen-Koop
https://coderanch.com/wiki/718759/books/Building-World-Backyard-Paul-Wheaton
    Bookmark Topic Watch Topic
  • New Topic