This week's giveaway is in the Android forum.
We're giving away four copies of Android Security Essentials Live Lessons and have Godfrey Nolan on-line!
See this thread for details.
The moose likes JSF and the fly likes JSF 1.2 in jBoss 4.2.2GA Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login

Win a copy of Android Security Essentials Live Lessons this week in the Android forum!
JavaRanch » Java Forums » Java » JSF
Bookmark "JSF 1.2 in jBoss 4.2.2GA" Watch "JSF 1.2 in jBoss 4.2.2GA" New topic

JSF 1.2 in jBoss 4.2.2GA

Aaron Raja
Ranch Hand

Joined: Jun 07, 2007
Posts: 206
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

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(
at com.sun.faces.config.JSFVersionTracker.publishInstanceToApplication(
at com.sun.faces.config.ConfigureListener.contextInitialized(

[ September 02, 2008: Message edited by: Aaron Raja ]

Thanks, AR
Bauke Scholtz
Ranch Hand

Joined: Oct 08, 2006
Posts: 2458
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.
I agree. Here's the link:
subject: JSF 1.2 in jBoss 4.2.2GA
Similar Threads
Problem with the use of external library from a jar archive
JSF/MyFaces/JBoss no workie! :-(
JSF issue with JBoss
JSF application with Tomcat and JBoss.
Garbage collector help