Iam getting the follwoing exception when i run the application.

What is the problem.How can i run JSF1.2 or JSF2.0 on Jboss 5.1.0.GA ?



The exception is :



14:25:39,687 ERROR [0]] Exception sending context initialized event to listener instance of class org.jboss.web.jsf.integration.config.JBossJSFConfi gureListener
java.lang.ClassCastException: com.sun.faces.config.WebConfiguration
at com.sun.faces.config.WebConfiguration.getInstance( WebConfiguration.java:154)
at com.sun.faces.config.ConfigureListener.contextInit ialized(ConfigureListener.java:145)
at org.jboss.web.jsf.integration.config.JBossJSFConfi gureListener.contextInitialized(JBossJSFConfigureL istener.java:60)
at org.apache.catalina.core.StandardContext.listenerS tart(StandardContext.java:3910)
at org.apache.catalina.core.StandardContext.start(Sta ndardContext.java:4393)
at org.jboss.web.tomcat.service.deployers.TomcatDeplo yment.performDeployInternal(TomcatDeployment.java: 310)
at org.jboss.web.tomcat.service.deployers.TomcatDeplo yment.performDeploy(TomcatDeployment.java:142)
at org.jboss.web.deployers.AbstractWarDeployment.star t(AbstractWarDeployment.java:461)
at org.jboss.web.deployers.WebModule.startModule(WebM odule.java:118)
at org.jboss.web.deployers.WebModule.start(WebModule. java:97)
at sun.reflect.NativeMethodAccessorImpl.invoke0(Nativ e Method)
at sun.reflect.NativeMethodAccessorImpl.invoke(Native MethodAccessorImpl.java:39)
at sun.reflect.DelegatingMethodAccessorImpl.invoke(De legatingMethodAccessorImpl.java:25)
at java.lang.reflect.Method.invoke(Method.java:585)
at org.jboss.mx.interceptor.ReflectedDispatcher.invok e(ReflectedDispatcher.java:157)
at org.jboss.mx.server.Invocation.dispatch(Invocation .java:96)
at org.jboss.mx.server.Invocation.invoke(Invocation.j ava:88)
at org.jboss.mx.server.AbstractMBeanInvoker.invoke(Ab stractMBeanInvoker.java:264)
at org.jboss.mx.server.MBeanServerImpl.invoke(MBeanSe rverImpl.java:668)
at org.jboss.system.microcontainer.ServiceProxy.invok e(ServiceProxy.java:206)
at $Proxy38.start(Unknown Source)
at org.jboss.system.microcontainer.StartStopLifecycle Action.installAction(StartStopLifecycleAction.java :42)
at org.jboss.system.microcontainer.StartStopLifecycle Action.installAction(StartStopLifecycleAction.java :37)
at org.jboss.dependency.plugins.action.SimpleControll erContextAction.simpleInstallAction(SimpleControll erContextAction.java:62)
at org.jboss.dependency.plugins.action.AccessControll erContextAction.install(AccessControllerContextAct ion.java:71)
at org.jboss.dependency.plugins.AbstractControllerCon textActions.install(AbstractControllerContextActio ns.java:51).....and so on.