1 Reply Latest reply on Feb 5, 2016 7:58 AM by syncsyncreboot

    PrimeFaces Showcase on JBoss AS 6.1.0.Final

    syncsyncreboot

      Hi,

      I'm trying to deploy the PrimeFaces 5.3 showcase WAR on JBoss AS 6.1.0.Final.

      http://repository.primefaces.org/org/primefaces/showcase/5.3/showcase-5.3.war

       

      I can deploy it on JBoss AS 7.1.1.Final by making the 2 changes suggested here:

      http://forum.primefaces.org/viewtopic.php?f=23&t=41278#p130047

       

      1) Remove com.sun.faces.config.ConfigureListener from web.xml

      2) Remove javax.faces-2.2.8.jar from WEB-INF/lib

       

      When I deploy the same modified JAR on JBoss AS 6.1.0.Final I get 2 Class Cast Exceptions.

       

      Exception sending context initialized event to listener instance

      of class org.jboss.web.jsf.integration.config.JBo ssMojarra20ConfigureListener: java.lang.ClassCastException: Cannot cast org.hibernate.validator.util.LazyValidatorFactory to javax.validation.ValidatorFactory

       

      Exception sending context initialized event to listener instance of class com.sun.faces.config.ConfigureListener: java.lang.ClassCastException: org.apache.xerces.jaxp.SAXParserFactoryImpl cannot be cast to javax.xml.parsers.SAXParserFactory

       

      I was hoping that when it worked on JBoss 7.1 I could get it going on 6.1 as they are both JEE6. I must use JBoss AS 6.1 as I've a dependency on JBoss ESB.

       

      Any advice appreciated...