0 Replies Latest reply: Jan 27, 2012 7:15 AM by Bhawana Udhani RSS

Getting Error "Exception sending context initialized event to listener instance of class org.jboss.web.jsf.integration.config.JBossJSFConfigureListener java.lang." NoClassDefFoundError: javax/faces/component/behavior/ClientBehaviorHolder

Bhawana Udhani Newbie

Hi All,

 

I am having a JSF 2.0 project, I workes fine untill i try to embedd Richfaces 4.0 in it. I have added the following jars :

1. cssparser-0.9.5

2. guava-r09

3. richfaces-components-api-4.1.0.Final

4. richfaces-components-ui-4.1.0.Final

5. richfaces-core-api-4.1.0.Final

6. richfaces-core-impl-4.1.0.Final

7. sac-1.3

 

When i try to run my project I get the error in my JBOSS 4.2 stating "

Exception sending context initialized event to listener instance of class org.jboss.web.jsf.integration.config.JBossJSFConfigureListener

java.lang.NoClassDefFoundError: javax/faces/component/behavior/ClientBehaviorHolder"

 

I am new to  JSF and trying to learn richfaces.

 

Also when i include the jar jsf-api-2.1.6 it gives me another error stating "

Exception sending context initialized event to listener instance of class org.jboss.web.jsf.integration.config.JBossJSFConfigureListener

javax.faces.FacesException: java.lang.ClassCastException: org.richfaces.context.FileUploadPhaseListener cannot be cast to javax.faces.event.PhaseListener"

 

I dont know what to do.. Please help.

 

Thanks in Advance