3 Replies Latest reply on Nov 25, 2013 5:03 AM by udaykiran pulipati

    com.sun.faces.config.WebConfiguration cannot be cast to com.sun.faces.config.WebConfiguration

    Thomas Chang Apprentice
      Hi all,

      I try to deploy ||an example project 'swf-booking-faces' from Spring-Webflow-2.0.5 to JBoss 4.2.2.GA AS. But got following exception.Seems there is conflic between the lib-jars from SWF and JBoss.SOmeone has idea?

      ********
      7:40:32,234 ERROR [[/TestSpringWebFlowAufJBoss]] 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 cannot be cast to com.sun.faces.config.WebConfiguration
      at com.sun.faces.config.WebConfiguration.getInstance( WebConfiguration.java:135)
      at com.sun.faces.config.ConfigureListener.contextInit ialized(ConfigureListener.java:228)
      at org.jboss.web.jsf.integration.config.JBossJSFConfi gureListener.contextInitialized(JBossJSFConfigureL istener.java:69)
      at org.apache.catalina.core.StandardContext.listenerS tart(StandardContext.java:3856)
      at org.apache.catalina.core.StandardContext.start(Sta ndardContext.java:4361)
      at org.apache.catalina.core.ContainerBase.addChildInt ernal(ContainerBase.java:790)
      at org.apache.catalina.core.ContainerBase.addChild(Co ntainerBase.java:770)
      at org.apache.catalina.core.StandardHost.addChild(Sta ndardHost.java:553)
      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:597)
      at org.apache.tomcat.util.modeler.BaseModelMBean.invo ke(BaseModelMBean.java:296)
      at org.jboss.mx.server.RawDynamicInvoker.invoke(RawDy namicInvoker.java:164)
      at org.jboss.mx.server.MBeanServerImpl.invoke(MBeanSe rverImpl.java:659)
      at org.apache.catalina.core.StandardContext.init(Stan dardContext.java:5312)
      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:597)
      at org.apache.tomcat.util.modeler.BaseModelMBean.invo ke(BaseModelMBean.java:296)
      at org.jboss.mx.server.RawDynamicInvoker.invoke(RawDy namicInvoker.java:164)
      at org.jboss.mx.server.MBeanServerImpl.invoke(MBeanSe rverImpl.java:659)
      at org.jboss.web.tomcat.service.TomcatDeployer.perfor mDeployInternal(TomcatDeployer.java:301)
      at org.jboss.web.tomcat.service.TomcatDeployer.perfor mDeploy(TomcatDeployer.java:104)
      at org.jboss.web.AbstractWebDeployer.start(AbstractWe bDeployer.java:375)
      at org.jboss.web.WebModule.startModule(WebModule.java :83)
      at org.jboss.web.WebModule.startService(WebModule.jav a:61)
      at org.jboss.system.ServiceMBeanSupport.jbossInternal Start(ServiceMBeanSupport.java:289)
      at org.jboss.system.ServiceMBeanSupport.jbossInternal Lifecycle(ServiceMBeanSupport.java:245)
      at sun.reflect.GeneratedMethodAccessor3.invoke(Unknow n Source)
      at sun.reflect.DelegatingMethodAccessorImpl.invoke(De legatingMethodAccessorImpl.java:25)
      at java.lang.reflect.Method.invoke(Method.java:597)
      at org.jboss.mx.interceptor.ReflectedDispatcher.invok e(ReflectedDispatcher.java:155)
      at org.jboss.mx.server.Invocation.dispatch(Invocation .java:94)
      at org.jboss.mx.server.Invocation.invoke(Invocation.j ava:86)
      at org.jboss.mx.server.AbstractMBeanInvoker.invoke(Ab stractMBeanInvoker.java:264)
      at org.jboss.mx.server.MBeanServerImpl.invoke(MBeanSe rverImpl.java:659)
      at org.jboss.system.ServiceController$ServiceProxy.in voke(ServiceController.java:978)
      at $Proxy0.start(Unknown Source)
      at org.jboss.system.ServiceController.start(ServiceCo ntroller.java:417)
      at sun.reflect.GeneratedMethodAccessor9.invoke(Unknow n Source)
      at sun.reflect.DelegatingMethodAccessorImpl.invoke(De legatingMethodAccessorImpl.java:25)
      at java.lang.reflect.Method.invoke(Method.java:597)
      at org.jboss.mx.interceptor.ReflectedDispatcher.invok e(ReflectedDispatcher.java:155)
      at org.jboss.mx.server.Invocation.dispatch(Invocation .java:94)
      at org.jboss.mx.server.Invocation.invoke(Invocation.j ava:86)
      at org.jboss.mx.server.AbstractMBeanInvoker.invoke(Ab stractMBeanInvoker.java:264)
      at org.jboss.mx.server.MBeanServerImpl.invoke(MBeanSe rverImpl.java:659)
      at org.jboss.mx.util.MBeanProxyExt.invoke(MBeanProxyE xt.java:210)
      at $Proxy44.start(Unknown Source)
      at org.jboss.web.AbstractWebContainer.start(AbstractW ebContainer.java:466)
      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:597)
      at org.jboss.mx.interceptor.ReflectedDispatcher.invok e(ReflectedDispatcher.java:155)
      at org.jboss.mx.server.Invocation.dispatch(Invocation .java:94)
      at org.jboss.mx.interceptor.AbstractInterceptor.invok e(AbstractInterceptor.java:133)
      at org.jboss.mx.server.Invocation.invoke(Invocation.j ava:88)
      at org.jboss.mx.interceptor.ModelMBeanOperationInterc eptor.invoke(ModelMBeanOperationInterceptor.java:1 42)
      at org.jboss.mx.interceptor.DynamicInterceptor.invoke (DynamicInterceptor.java:97)
      at org.jboss.system.InterceptorServiceMBeanSupport.in vokeNext(InterceptorServiceMBeanSupport.java:238)
      at org.jboss.wsf.container.jboss42.DeployerIntercepto r.start(DeployerInterceptor.java:87)
      at org.jboss.deployment.SubDeployerInterceptorSupport $XMBeanInterceptor.start(SubDeployerInterceptorSup port.java:188)
      at org.jboss.deployment.SubDeployerInterceptor.invoke (SubDeployerInterceptor.java:95)
      at org.jboss.mx.server.Invocation.invoke(Invocation.j ava:88)
      at org.jboss.mx.server.AbstractMBeanInvoker.invoke(Ab stractMBeanInvoker.java:264)
      at
      Edit/Delete Message