PrimeFaces Showcase on JBoss AS 6.1.0.Final

UI Components for JSF
Post Reply
sarahjohns388
Posts: 1
Joined: 07 Feb 2018, 10:42
Contact:

07 Feb 2018, 10:53

Hello Folk's,

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

http://repository.primefaces.org/org/pr ... se-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.p ... 78#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.JBoss Mojarra20ConfigureListener: 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...

Melloware
Posts: 3717
Joined: 22 Apr 2013, 15:48

08 Feb 2018, 17:37

When you say Jboss 6.1AS are you sure that's EE6? I know Jboss EAP 6.1 is definitely EE6 but I thought 6.1AS was under their old model and was still EE5.
PrimeFaces Developer | PrimeFaces Extensions Developer
GitHub Profile: https://github.com/melloware
PrimeFaces Elite 13.0.0 / PF Extensions 13.0.0
PrimeReact 9.6.1

jamesmillere
Posts: 3
Joined: 27 Jan 2023, 14:55
Location: USA
Contact:

27 Jan 2023, 15:03

Hi,

It looks like there are some compatibility issues when trying to deploy the PrimeFaces 5.3 showcase WAR on JBoss AS 6.1.0.Final. The Class Cast Exceptions you are seeing are likely related to differences in the version of libraries and components being used between JBoss AS 6.1 and 7.1.

One solution could be to try using an older version of PrimeFaces that is known to be compatible with JBoss AS 6.1.
Another solution could be to try using a more recent version of JBoss AS 6.1 that includes more recent versions of libraries and components.
It's also possible that the issue is with JBoss ESB, so make sure it's compatible with JBoss AS 6.1 before proceeding.

Also, you can check the JBoss AS 6.1.0.Final documentation or community forum for more information on how to resolve these Class Cast Exceptions.

I hope this will help you.
Thanks
James Millere

Post Reply

Return to “PrimeFaces”

  • Information
  • Who is online

    Users browsing this forum: dan987 and 39 guests