I'm trying to deploy the PrimeFaces 5.3 showcase WAR on JBoss AS 6.1.0.Final.
I can deploy it on JBoss AS 7.1.1.Final by making the 2 changes suggested here:
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...
With some help from SO...I removed xml-apis-1.0.b2.jar and that solved the JAXP problem, and then I removed validation-api-1.1.0.Final.jar and it deployed and starts up with no problems. Now I'm getting errors about the validation but I think I can figure them out with a bit of work... hopefully