Win a copy of Programmer's Guide to Java SE 8 Oracle Certified Associate (OCA) this week in the OCAJP forum!
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

JSF 1.2 in jBoss 4.2.2GA

 
Aaron Raja
Ranch Hand
Posts: 206
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
I am having problem running JSF in jBoss.
The same example is running fine on Tomcat 6.
I use following : jboss-4.2.2.GA , jdk1.5.0_11

following jar file are used in lib
jsf-api.jar
jsf-impl.jar
jstl.jar
standard.jar

I exclude theses jar file and getting same error!

On deploying the ear file following error is shown :

Exception sending context initialized event to listener instance of class org.jboss.web.jsf.integration.config.JBossJSFConfigureListener
java.lang.ClassCastException: com.sun.faces.application.ApplicationAssociate
at com.sun.faces.application.ApplicationAssociate.getInstance(ApplicationAssociate.java:172)
at com.sun.faces.config.JSFVersionTracker.publishInstanceToApplication(JSFVersionTracker.java:266)
at com.sun.faces.config.ConfigureListener.contextInitialized(ConfigureListener.java:408)

Thanks
AR
[ September 02, 2008: Message edited by: Aaron Raja ]
 
Bauke Scholtz
Ranch Hand
Posts: 2458
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
JBoss already ships with a JSF implementation in its library. It might be conflicting with your JSF implementation. Thumb rule is that you should never mix JSF implementations (e.g. Mojarra and MyFaces together). Doublecheck all libraries thoroughout all paths of the classpath.
 
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic