12 Replies Latest reply on Oct 8, 2006 5:18 PM by Anupama Chickerur

    Cannot deploy the war-java.lang.ClassCastException: org.jbos

    Anupama Chickerur Newbie

      I am trying to deploy the ear and I am running into the error below

      My web xml has the following
      <<!-- JSF -->
      <context-param>
      <param-name>javax.faces.STATE_SAVING_METHOD</param-name>
      <param-value>client</param-value>
      </context-param>

      <context-param>
      <param-name>javax.faces.DEFAULT_SUFFIX</param-name>
      <param-value>.xhtml</param-value>
      </context-param>

      <context-param>
      <param-name>facelets.DEVELOPMENT</param-name>
      <param-value>true</param-value>
      </context-param>


      <servlet-name>Faces Servlet</servlet-name>
      <servlet-class>javax.faces.webapp.FacesServlet</servlet-class>
      <load-on-startup>1</load-on-startup>


      <!-- Faces Servlet Mapping -->
      <servlet-mapping>
      <servlet-name>Faces Servlet</servlet-name>
      <url-pattern>*.xhtml</url-pattern>
      </servlet-mapping>
      <!-- MyFaces -->

      <listener-class>
      org.apache.myfaces.webapp.StartupServletContextListener
      </listener-class>


      <servlet-name>Seam Remoting</servlet-name>
      <servlet-class>org.jboss.seam.remoting.SeamRemotingServlet</servlet-class>


      <servlet-mapping>
      <servlet-name>Seam Remoting</servlet-name>
      <url-pattern>/seam/remoting/*</url-pattern>
      </servlet-mapping>

      <!-- Seam -->

      <listener-class>org.jboss.seam.servlet.SeamListener</listener-class>


      faces-config.xml has the following
      <faces-config>
      <!-- Phase listener needed for all Seam applications -->

      <phase-listener>org.jboss.seam.jsf.SeamPhaseListener</phase-listener>

      </faces-config>

      Thanks
      Anu

      2006-10-06 16:10:17,032 ERROR [STDERR] Oct 6, 2006 4:10:17 PM com.sun.faces.config.ConfigureListener contextInitialized
      INFO: Initializing Sun's JavaServer Faces implementation (1.2_02-b03-FCS) for context 'BRNNCIWeb'
      2006-10-06 16:10:17,563 ERROR [STDERR] Oct 6, 2006 4:10:17 PM com.sun.faces.spi.InjectionProviderFactory createInstance
      WARNING: JSF1033: Resource injection is DISABLED.
      2006-10-06 16:10:17,593 ERROR [STDERR] Oct 6, 2006 4:10:17 PM com.sun.faces.config.ConfigureListener configure
      SEVERE: Cant instantiate class: phase-listener: org.jboss.seam.jsf.SeamPhaseListener.
      2006-10-06 16:10:17,593 ERROR [STDERR] java.lang.ClassCastException: org.jboss.seam.jsf.SeamPhaseListener
      2006-10-06 16:10:17,593 ERROR [STDERR] at com.sun.faces.config.ConfigureListener.configure(ConfigureListener.java:960)
      2006-10-06 16:10:17,593 ERROR [STDERR] at com.sun.faces.config.ConfigureListener.configure(ConfigureListener.java:594)
      2006-10-06 16:10:17,593 ERROR [STDERR] at com.sun.faces.config.ConfigureListener.contextInitialized(ConfigureListener.java:496)
      2006-10-06 16:10:17,593 ERROR [STDERR] at org.apache.catalina.core.StandardContext.listenerStart(StandardContext.java:3729)
      2006-10-06 16:10:17,593 ERROR [STDERR] at org.apache.catalina.core.StandardContext.start(StandardContext.java:4187)
      2006-10-06 16:10:17,593 ERROR [STDERR] at org.apache.catalina.core.ContainerBase.addChildInternal(ContainerBase.java:759)
      2006-10-06 16:10:17,593 ERROR [STDERR] at org.apache.catalina.core.ContainerBase.addChild(ContainerBase.java:739)
      2006-10-06 16:10:17,593 ERROR [STDERR] at org.apache.catalina.core.StandardHost.addChild(StandardHost.java:524)
      2006-10-06 16:10:17,593 ERROR [STDERR] at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
      2006-10-06 16:10:17,593 ERROR [STDERR] at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39)
      2006-10-06 16:10:17,593 ERROR [STDERR] at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
      2006-10-06 16:10:17,593 ERROR [STDERR] at java.lang.reflect.Method.invoke(Method.java:585)
      2006-10-06 16:10:17,593 ERROR [STDERR] at org.apache.commons.modeler.BaseModelMBean.invoke(BaseModelMBean.java:503)
      2006-10-06 16:10:17,593 ERROR [STDERR] at org.jboss.mx.server.RawDynamicInvoker.invoke(RawDynamicInvoker.java:164)
      2006-10-06 16:10:17,593 ERROR [STDERR] at org.jboss.mx.server.MBeanServerImpl.invoke(MBeanServerImpl.java:659)
      2006-10-06 16:10:17,593 ERROR [STDERR] at org.apache.catalina.core.StandardContext.init(StandardContext.java:5116)
      2006-10-06 16:10:17,593 ERROR [STDERR] at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
      2006-10-06 16:10:17,593 ERROR [STDERR] at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39)
      2006-10-06 16:10:17,593 ERROR [STDERR] at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
      2006-10-06 16:10:17,593 ERROR [STDERR] at java.lang.reflect.Method.invoke(Method.java:585)
      2006-10-06 16:10:17,593 ERROR [STDERR] at org.apache.commons.modeler.BaseModelMBean.invoke(BaseModelMBean.java:503)
      2006-10-06 16:10:17,593 ERROR [STDERR] at org.jboss.mx.server.RawDynamicInvoker.invoke(RawDynamicInvoker.java:164)
      2006-10-06 16:10:17,593 ERROR [STDERR] at org.jboss.mx.server.MBeanServerImpl.invoke(MBeanServerImpl.java:659)
      2006-10-06 16:10:17,593 ERROR [STDERR] at org.jboss.web.tomcat.tc5.TomcatDeployer.performDeployInternal(TomcatDeployer.java:297)
      2006-10-06 16:10:17,593 ERROR [STDERR] at org.jboss.web.tomcat.tc5.TomcatDeployer.performDeploy(TomcatDeployer.java:103)
      2006-10-06 16:10:17,593 ERROR [STDERR] at org.jboss.web.AbstractWebDeployer.start(AbstractWebDeployer.java:371)
      2006-10-06 16:10:17,593 ERROR [STDERR] at org.jboss.web.WebModule.startModule(WebModule.java:83)
      2006-10-06 16:10:17,593 ERROR [STDERR] at org.jboss.web.WebModule.startService(WebModule.java:61)
      2006-10-06 16:10:17,593 ERROR [STDERR] at org.jboss.system.ServiceMBeanSupport.jbossInternalStart(ServiceMBeanSupport.java:289)
      2006-10-06 16:10:17,593 ERROR [STDERR] at org.jboss.system.ServiceMBeanSupport.jbossInternalLifecycle(ServiceMBeanSupport.java:245)
      2006-10-06 16:10:17,593 ERROR [STDERR] at sun.reflect.GeneratedMethodAccessor3.invoke(Unknown Source)
      2006-10-06 16:10:17,593 ERROR [STDERR] at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
      2006-10-06 16:10:17,593 ERROR [STDERR] at java.lang.reflect.Method.invoke(Method.java:585)
      2006-10-06 16:10:17,593 ERROR [STDERR] at org.jboss.mx.interceptor.ReflectedDispatcher.invoke(ReflectedDispatcher.java:155)
      2006-10-06 16:10:17,593 ERROR [STDERR] at org.jboss.mx.server.Invocation.dispatch(Invocation.java:94)
      2006-10-06 16:10:17,593 ERROR [STDERR] at org.jboss.mx.server.Invocation.invoke(Invocation.java:86)
      2006-10-06 16:10:17,593 ERROR [STDERR] at org.jboss.mx.server.AbstractMBeanInvoker.invoke(AbstractMBeanInvoker.java:264)
      2006-10-06 16:10:17,593 ERROR [STDERR] at org.jboss.mx.server.MBeanServerImpl.invoke(MBeanServerImpl.java:659)
      2006-10-06 16:10:17,593 ERROR [STDERR] at org.jboss.system.ServiceController$ServiceProxy.invoke(ServiceController.java:978)
      2006-10-06 16:10:17,593 ERROR [STDERR] at $Proxy0.start(Unknown Source)
      2006-10-06 16:10:17,593 ERROR [STDERR] at org.jboss.system.ServiceController.start(ServiceController.java:417)
      2006-10-06 16:10:17,593 ERROR [STDERR] at sun.reflect.GeneratedMethodAccessor6.invoke(Unknown Source)
      2006-10-06 16:10:17,593 ERROR [STDERR] at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
      2006-10-06 16:10:17,593 ERROR [STDERR] at java.lang.reflect.Method.invoke(Method.java:585)
      2006-10-06 16:10:17,593 ERROR [STDERR] at org.jboss.mx.interceptor.ReflectedDispatcher.invoke(ReflectedDispatcher.java:155)
      2006-10-06 16:10:17,593 ERROR [STDERR] at org.jboss.mx.server.Invocation.dispatch(Invocation.java:94)
      2006-10-06 16:10:17,593 ERROR [STDERR] at org.jboss.mx.server.Invocation.invoke(Invocation.java:86)
      2006-10-06 16:10:17,593 ERROR [STDERR] at org.jboss.mx.server.AbstractMBeanInvoker.invoke(AbstractMBeanInvoker.java:264)
      2006-10-06 16:10:17,593 ERROR [STDERR] at org.jboss.mx.server.MBeanServerImpl.invoke(MBeanServerImpl.java:659)
      2006-10-06 16:10:17,593 ERROR [STDERR] at org.jboss.mx.util.MBeanProxyExt.invoke(MBeanProxyExt.java:210)
      2006-10-06 16:10:17,593 ERROR [STDERR] at $Proxy43.start(Unknown Source)
      2006-10-06 16:10:17,603 ERROR [STDERR] at org.jboss.web.AbstractWebContainer.start(AbstractWebContainer.java:466)
      2006-10-06 16:10:17,603 ERROR [STDERR] at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
      2006-10-06 16:10:17,603 ERROR [STDERR] at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39)
      2006-10-06 16:10:17,603 ERROR [STDERR] at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
      2006-10-06 16:10:17,603 ERROR [STDERR] at java.lang.reflect.Method.invoke(Method.java:585)
      2006-10-06 16:10:17,603 ERROR [STDERR] at org.jboss.mx.interceptor.ReflectedDispatcher.invoke(ReflectedDispatcher.java:155)
      2006-10-06 16:10:17,603 ERROR [STDERR] at org.jboss.mx.server.Invocation.dispatch(Invocation.java:94)
      2006-10-06 16:10:17,603 ERROR [STDERR] at org.jboss.mx.interceptor.AbstractInterceptor.invoke(AbstractInterceptor.java:133)
      2006-10-06 16:10:17,603 ERROR [STDERR] at org.jboss.mx.server.Invocation.invoke(Invocation.java:88)
      2006-10-06 16:10:17,603 ERROR [STDERR] at org.jboss.mx.interceptor.ModelMBeanOperationInterceptor.invoke(ModelMBeanOperationInterceptor.java:142)
      2006-10-06 16:10:17,603 ERROR [STDERR] at org.jboss.mx.interceptor.DynamicInterceptor.invoke(DynamicInterceptor.java:97)
      2006-10-06 16:10:17,623 ERROR [STDERR] at org.jboss.system.InterceptorServiceMBeanSupport.invokeNext(InterceptorServiceMBeanSupport.java:238)
      2006-10-06 16:10:17,623 ERROR [STDERR] at org.jboss.ws.server.WebServiceDeployer.start(WebServiceDeployer.java:117)
      2006-10-06 16:10:17,623 ERROR [STDERR] at org.jboss.deployment.SubDeployerInterceptorSupport$XMBeanInterceptor.start(SubDeployerInterceptorSupport.java:188)
      2006-10-06 16:10:17,623 ERROR [STDERR] at org.jboss.deployment.SubDeployerInterceptor.invoke(SubDeployerInterceptor.java:95)
      2006-10-06 16:10:17,623 ERROR [STDERR] at org.jboss.mx.server.Invocation.invoke(Invocation.java:88)
      2006-10-06 16:10:17,623 ERROR [STDERR] at org.jboss.mx.server.AbstractMBeanInvoker.invoke(AbstractMBeanInvoker.java:264)
      2006-10-06 16:10:17,623 ERROR [STDERR] at org.jboss.mx.server.MBeanServerImpl.invoke(MBeanServerImpl.java:659)
      2006-10-06 16:10:17,623 ERROR [STDERR] at org.jboss.mx.util.MBeanProxyExt.invoke(MBeanProxyExt.java:210)
      2006-10-06 16:10:17,623 ERROR [STDERR] at $Proxy44.start(Unknown Source)
      2006-10-06 16:10:17,623 ERROR [STDERR] at org.jboss.deployment.MainDeployer.start(MainDeployer.java:1007)
      2006-10-06 16:10:17,623 ERROR [STDERR] at org.jboss.deployment.MainDeployer.start(MainDeployer.java:997)
      2006-10-06 16:10:17,623 ERROR [STDERR] at org.jboss.deployment.MainDeployer.deploy(MainDeployer.java:808)
      2006-10-06 16:10:17,623 ERROR [STDERR] at org.jboss.deployment.MainDeployer.deploy(MainDeployer.java:771)
      2006-10-06 16:10:17,623 ERROR [STDERR] at sun.reflect.GeneratedMethodAccessor13.invoke(Unknown Source)
      2006-10-06 16:10:17,623 ERROR [STDERR] at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
      2006-10-06 16:10:17,623 ERROR [STDERR] at java.lang.reflect.Method.invoke(Method.java:585)
      2006-10-06 16:10:17,623 ERROR [STDERR] at org.jboss.mx.interceptor.ReflectedDispatcher.invoke(ReflectedDispatcher.java:155)
      2006-10-06 16:10:17,623 ERROR [STDERR] at org.jboss.mx.server.Invocation.dispatch(Invocation.java:94)
      2006-10-06 16:10:17,623 ERROR [STDERR] at org.jboss.mx.interceptor.AbstractInterceptor.invoke(AbstractInterceptor.java:133)
      2006-10-06 16:10:17,623 ERROR [STDERR] at org.jboss.mx.server.Invocation.invoke(Invocation.java:88)
      2006-10-06 16:10:17,623 ERROR [STDERR] at org.jboss.mx.interceptor.ModelMBeanOperationInterceptor.invoke(ModelMBeanOperationInterceptor.java:142)
      2006-10-06 16:10:17,623 ERROR [STDERR] at org.jboss.mx.server.Invocation.invoke(Invocation.java:88)
      2006-10-06 16:10:17,623 ERROR [STDERR] at org.jboss.mx.server.AbstractMBeanInvoker.invoke(AbstractMBeanInvoker.java:264)
      2006-10-06 16:10:17,623 ERROR [STDERR] at org.jboss.mx.server.MBeanServerImpl.invoke(MBeanServerImpl.java:659)
      2006-10-06 16:10:17,623 ERROR [STDERR] at org.jboss.mx.util.MBeanProxyExt.invoke(MBeanProxyExt.java:210)
      2006-10-06 16:10:17,643 ERROR [STDERR] at $Proxy6.deploy(Unknown Source)
      2006-10-06 16:10:17,643 ERROR [STDERR] at org.jboss.deployment.scanner.URLDeploymentScanner.deploy(URLDeploymentScanner.java:421)
      2006-10-06 16:10:17,643 ERROR [STDERR] at org.jboss.deployment.scanner.URLDeploymentScanner.scan(URLDeploymentScanner.java:634)
      2006-10-06 16:10:17,643 ERROR [STDERR] at org.jboss.deployment.scanner.AbstractDeploymentScanner$ScannerThread.doScan(AbstractDeploymentScanner.java:263)
      2006-10-06 16:10:17,643 ERROR [STDERR] at org.jboss.deployment.scanner.AbstractDeploymentScanner.startService(AbstractDeploymentScanner.java:336)
      2006-10-06 16:10:17,643 ERROR [STDERR] at org.jboss.system.ServiceMBeanSupport.jbossInternalStart(ServiceMBeanSupport.java:289)
      2006-10-06 16:10:17,643 ERROR [STDERR] at org.jboss.system.ServiceMBeanSupport.jbossInternalLifecycle(ServiceMBeanSupport.java:245)
      2006-10-06 16:10:17,643 ERROR [STDERR] at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
      2006-10-06 16:10:17,643 ERROR [STDERR] at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39)
      2006-10-06 16:10:17,643 ERROR [STDERR] at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
      2006-10-06 16:10:17,643 ERROR [STDERR] at java.lang.reflect.Method.invoke(Method.java:585)
      2006-10-06 16:10:17,643 ERROR [STDERR] at org.jboss.mx.interceptor.ReflectedDispatcher.invoke(ReflectedDispatcher.java:155)
      2006-10-06 16:10:17,643 ERROR [STDERR] at org.jboss.mx.server.Invocation.dispatch(Invocation.java:94)
      2006-10-06 16:10:17,643 ERROR [STDERR] at org.jboss.mx.server.Invocation.invoke(Invocation.java:86)
      2006-10-06 16:10:17,643 ERROR [STDERR] at org.jboss.mx.server.AbstractMBeanInvoker.invoke(AbstractMBeanInvoker.java:264)
      2006-10-06 16:10:17,643 ERROR [STDERR] at org.jboss.mx.server.MBeanServerImpl.invoke(MBeanServerImpl.java:659)
      2006-10-06 16:10:17,643 ERROR [STDERR] at org.jboss.system.ServiceController$ServiceProxy.invoke(ServiceController.java:978)
      2006-10-06 16:10:17,643 ERROR [STDERR] at $Proxy0.start(Unknown Source)
      2006-10-06 16:10:17,643 ERROR [STDERR] at org.jboss.system.ServiceController.start(ServiceController.java:417)
      2006-10-06 16:10:17,643 ERROR [STDERR] at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
      2006-10-06 16:10:17,643 ERROR [STDERR] at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39)
      2006-10-06 16:10:17,643 ERROR [STDERR] at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
      2006-10-06 16:10:17,643 ERROR [STDERR] at java.lang.reflect.Method.invoke(Method.java:585)
      2006-10-06 16:10:17,643 ERROR [STDERR] at org.jboss.mx.interceptor.ReflectedDispatcher.invoke(ReflectedDispatcher.java:155)
      2006-10-06 16:10:17,643 ERROR [STDERR] at org.jboss.mx.server.Invocation.dispatch(Invocation.java:94)
      2006-10-06 16:10:17,643 ERROR [STDERR] at org.jboss.mx.server.Invocation.invoke(Invocation.java:86)
      2006-10-06 16:10:17,643 ERROR [STDERR] at org.jboss.mx.server.AbstractMBeanInvoker.invoke(AbstractMBeanInvoker.java:264)
      2006-10-06 16:10:17,653 ERROR [STDERR] at org.jboss.mx.server.MBeanServerImpl.invoke(MBeanServerImpl.java:659)
      2006-10-06 16:10:17,653 ERROR [STDERR] at org.jboss.mx.util.MBeanProxyExt.invoke(MBeanProxyExt.java:210)
      2006-10-06 16:10:17,653 ERROR [STDERR] at $Proxy4.start(Unknown Source)
      2006-10-06 16:10:17,653 ERROR [STDERR] at org.jboss.deployment.SARDeployer.start(SARDeployer.java:302)
      2006-10-06 16:10:17,653 ERROR [STDERR] at org.jboss.deployment.MainDeployer.start(MainDeployer.java:1007)
      2006-10-06 16:10:17,653 ERROR [STDERR] at org.jboss.deployment.MainDeployer.deploy(MainDeployer.java:808)
      2006-10-06 16:10:17,653 ERROR [STDERR] at org.jboss.deployment.MainDeployer.deploy(MainDeployer.java:771)
      2006-10-06 16:10:17,653 ERROR [STDERR] at org.jboss.deployment.MainDeployer.deploy(MainDeployer.java:755)
      2006-10-06 16:10:17,653 ERROR [STDERR] at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
      2006-10-06 16:10:17,653 ERROR [STDERR] at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39)
      2006-10-06 16:10:17,663 ERROR [STDERR] at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
      2006-10-06 16:10:17,663 ERROR [STDERR] at java.lang.reflect.Method.invoke(Method.java:585)
      2006-10-06 16:10:17,663 ERROR [STDERR] at org.jboss.mx.interceptor.ReflectedDispatcher.invoke(ReflectedDispatcher.java:155)
      2006-10-06 16:10:17,663 ERROR [STDERR] at org.jboss.mx.server.Invocation.dispatch(Invocation.java:94)
      2006-10-06 16:10:17,663 ERROR [STDERR] at org.jboss.mx.interceptor.AbstractInterceptor.invoke(AbstractInterceptor.java:133)
      2006-10-06 16:10:17,663 ERROR [STDERR] at org.jboss.mx.server.Invocation.invoke(Invocation.java:88)
      2006-10-06 16:10:17,663 ERROR [STDERR] at org.jboss.mx.interceptor.ModelMBeanOperationInterceptor.invoke(ModelMBeanOperationInterceptor.java:142)
      2006-10-06 16:10:17,663 ERROR [STDERR] at org.jboss.mx.server.Invocation.invoke(Invocation.java:88)
      2006-10-06 16:10:17,663 ERROR [STDERR] at org.jboss.mx.server.AbstractMBeanInvoker.invoke(AbstractMBeanInvoker.java:264)
      2006-10-06 16:10:17,663 ERROR [STDERR] at org.jboss.mx.server.MBeanServerImpl.invoke(MBeanServerImpl.java:659)
      2006-10-06 16:10:17,663 ERROR [STDERR] at org.jboss.mx.util.MBeanProxyExt.invoke(MBeanProxyExt.java:210)
      2006-10-06 16:10:17,663 ERROR [STDERR] at $Proxy5.deploy(Unknown Source)
      2006-10-06 16:10:17,663 ERROR [STDERR] at org.jboss.system.server.ServerImpl.doStart(ServerImpl.java:482)
      2006-10-06 16:10:17,663 ERROR [STDERR] at org.jboss.system.server.ServerImpl.start(ServerImpl.java:362)
      2006-10-06 16:10:17,683 ERROR [STDERR] at org.jboss.Main.boot(Main.java:200)
      2006-10-06 16:10:17,683 ERROR [STDERR] at org.jboss.Main$1.run(Main.java:464)
      2006-10-06 16:10:17,683 ERROR [STDERR] at java.lang.Thread.run(Thread.java:595)
      2006-10-06 16:10:17,683 ERROR [STDERR] Oct 6, 2006 4:10:17 PM com.sun.faces.config.ConfigureListener contextInitialized
      INFO: Completed initializing Sun's JavaServer Faces implementation (1.2_02-b03-FCS) for context 'BRNNCIWeb'
      2006-10-06 16:10:17,683 ERROR [org.apache.catalina.core.ContainerBase.[jboss.web].[localhost].[/BRNNCIWeb]] Exception sending context initialized event to listener instance of class com.sun.faces.config.ConfigureListener
      javax.faces.FacesException: java.lang.ClassCastException: org.jboss.seam.jsf.SeamPhaseListener
      at com.sun.faces.config.ConfigureListener.contextInitialized(ConfigureListener.java:502)
      at org.apache.catalina.core.StandardContext.listenerStart(StandardContext.java:3729)
      at org.apache.catalina.core.StandardContext.start(StandardContext.java:4187)
      at org.apache.catalina.core.ContainerBase.addChildInternal(ContainerBase.java:759)
      at org.apache.catalina.core.ContainerBase.addChild(ContainerBase.java:739)
      at org.apache.catalina.core.StandardHost.addChild(StandardHost.java:524)
      at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
      at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39)
      at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
      at java.lang.reflect.Method.invoke(Method.java:585)
      at org.apache.commons.modeler.BaseModelMBean.invoke(BaseModelMBean.java:503)
      at org.jboss.mx.server.RawDynamicInvoker.invoke(RawDynamicInvoker.java:164)
      at org.jboss.mx.server.MBeanServerImpl.invoke(MBeanServerImpl.java:659)
      at org.apache.catalina.core.StandardContext.init(StandardContext.java:5116)
      at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
      at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39)
      at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
      at java.lang.reflect.Method.invoke(Method.java:585)
      at org.apache.commons.modeler.BaseModelMBean.invoke(BaseModelMBean.java:503)
      at org.jboss.mx.server.RawDynamicInvoker.invoke(RawDynamicInvoker.java:164)
      at org.jboss.mx.server.MBeanServerImpl.invoke(MBeanServerImpl.java:659)
      at org.jboss.web.tomcat.tc5.TomcatDeployer.performDeployInternal(TomcatDeployer.java:297)
      at org.jboss.web.tomcat.tc5.TomcatDeployer.performDeploy(TomcatDeployer.java:103)
      at org.jboss.web.AbstractWebDeployer.start(AbstractWebDeployer.java:371)
      at org.jboss.web.WebModule.startModule(WebModule.java:83)
      at org.jboss.web.WebModule.startService(WebModule.java:61)
      at org.jboss.system.ServiceMBeanSupport.jbossInternalStart(ServiceMBeanSupport.java:289)
      at org.jboss.system.ServiceMBeanSupport.jbossInternalLifecycle(ServiceMBeanSupport.java:245)
      at sun.reflect.GeneratedMethodAccessor3.invoke(Unknown Source)
      at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
      at java.lang.reflect.Method.invoke(Method.java:585)
      at org.jboss.mx.interceptor.ReflectedDispatcher.invoke(ReflectedDispatcher.java:155)
      at org.jboss.mx.server.Invocation.dispatch(Invocation.java:94)
      at org.jboss.mx.server.Invocation.invoke(Invocation.java:86)
      at org.jboss.mx.server.AbstractMBeanInvoker.invoke(AbstractMBeanInvoker.java:264)
      at org.jboss.mx.server.MBeanServerImpl.invoke(MBeanServerImpl.java:659)
      at org.jboss.system.ServiceController$ServiceProxy.invoke(ServiceController.java:978)
      at $Proxy0.start(Unknown Source)
      at org.jboss.system.ServiceController.start(ServiceController.java:417)
      at sun.reflect.GeneratedMethodAccessor6.invoke(Unknown Source)
      at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
      at java.lang.reflect.Method.invoke(Method.java:585)
      at org.jboss.mx.interceptor.ReflectedDispatcher.invoke(ReflectedDispatcher.java:155)
      at org.jboss.mx.server.Invocation.dispatch(Invocation.java:94)
      at org.jboss.mx.server.Invocation.invoke(Invocation.java:86)
      at org.jboss.mx.server.AbstractMBeanInvoker.invoke(AbstractMBeanInvoker.java:264)
      at org.jboss.mx.server.MBeanServerImpl.invoke(MBeanServerImpl.java:659)
      at org.jboss.mx.util.MBeanProxyExt.invoke(MBeanProxyExt.java:210)
      at $Proxy43.start(Unknown Source)
      at org.jboss.web.AbstractWebContainer.start(AbstractWebContainer.java:466)
      at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
      at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39)
      at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
      at java.lang.reflect.Method.invoke(Method.java:585)
      at org.jboss.mx.interceptor.ReflectedDispatcher.invoke(ReflectedDispatcher.java:155)
      at org.jboss.mx.server.Invocation.dispatch(Invocation.java:94)
      at org.jboss.mx.interceptor.AbstractInterceptor.invoke(AbstractInterceptor.java:133)
      at org.jboss.mx.server.Invocation.invoke(Invocation.java:88)
      at org.jboss.mx.interceptor.ModelMBeanOperationInterceptor.invoke(ModelMBeanOperationInterceptor.java:142)
      at org.jboss.mx.interceptor.DynamicInterceptor.invoke(DynamicInterceptor.java:97)
      at org.jboss.system.InterceptorServiceMBeanSupport.invokeNext(InterceptorServiceMBeanSupport.java:238)
      at org.jboss.ws.server.WebServiceDeployer.start(WebServiceDeployer.java:117)
      at org.jboss.deployment.SubDeployerInterceptorSupport$XMBeanInterceptor.start(SubDeployerInterceptorSupport.java:188)
      at org.jboss.deployment.SubDeployerInterceptor.invoke(SubDeployerInterceptor.java:95)
      at org.jboss.mx.server.Invocation.invoke(Invocation.java:88)
      at org.jboss.mx.server.AbstractMBeanInvoker.invoke(AbstractMBeanInvoker.java:264)
      at org.jboss.mx.server.MBeanServerImpl.invoke(MBeanServerImpl.java:659)
      at org.jboss.mx.util.MBeanProxyExt.invoke(MBeanProxyExt.java:210)
      at $Proxy44.start(Unknown Source)
      at org.jboss.deployment.MainDeployer.start(MainDeployer.java:1007)
      at org.jboss.deployment.MainDeployer.start(MainDeployer.java:997)
      at org.jboss.deployment.MainDeployer.deploy(MainDeployer.java:808)
      at org.jboss.deployment.MainDeployer.deploy(MainDeployer.java:771)
      at sun.reflect.GeneratedMethodAccessor13.invoke(Unknown Source)
      at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
      at java.lang.reflect.Method.invoke(Method.java:585)
      at org.jboss.mx.interceptor.ReflectedDispatcher.invoke(ReflectedDispatcher.java:155)
      at org.jboss.mx.server.Invocation.dispatch(Invocation.java:94)
      at org.jboss.mx.interceptor.AbstractInterceptor.invoke(AbstractInterceptor.java:133)
      at org.jboss.mx.server.Invocation.invoke(Invocation.java:88)
      at org.jboss.mx.interceptor.ModelMBeanOperationInterceptor.invoke(ModelMBeanOperationInterceptor.java:142)
      at org.jboss.mx.server.Invocation.invoke(Invocation.java:88)
      at org.jboss.mx.server.AbstractMBeanInvoker.invoke(AbstractMBeanInvoker.java:264)
      at org.jboss.mx.server.MBeanServerImpl.invoke(MBeanServerImpl.java:659)
      at org.jboss.mx.util.MBeanProxyExt.invoke(MBeanProxyExt.java:210)
      at $Proxy6.deploy(Unknown Source)
      at org.jboss.deployment.scanner.URLDeploymentScanner.deploy(URLDeploymentScanner.java:421)
      at org.jboss.deployment.scanner.URLDeploymentScanner.scan(URLDeploymentScanner.java:634)
      at org.jboss.deployment.scanner.AbstractDeploymentScanner$ScannerThread.doScan(AbstractDeploymentScanner.java:263)
      at org.jboss.deployment.scanner.AbstractDeploymentScanner.startService(AbstractDeploymentScanner.java:336)
      at org.jboss.system.ServiceMBeanSupport.jbossInternalStart(ServiceMBeanSupport.java:289)
      at org.jboss.system.ServiceMBeanSupport.jbossInternalLifecycle(ServiceMBeanSupport.java:245)
      at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
      at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39)
      at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
      at java.lang.reflect.Method.invoke(Method.java:585)
      at org.jboss.mx.interceptor.ReflectedDispatcher.invoke(ReflectedDispatcher.java:155)
      at org.jboss.mx.server.Invocation.dispatch(Invocation.java:94)
      at org.jboss.mx.server.Invocation.invoke(Invocation.java:86)
      at org.jboss.mx.server.AbstractMBeanInvoker.invoke(AbstractMBeanInvoker.java:264)
      at org.jboss.mx.server.MBeanServerImpl.invoke(MBeanServerImpl.java:659)
      at org.jboss.system.ServiceController$ServiceProxy.invoke(ServiceController.java:978)
      at $Proxy0.start(Unknown Source)
      at org.jboss.system.ServiceController.start(ServiceController.java:417)
      at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
      at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39)
      at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
      at java.lang.reflect.Method.invoke(Method.java:585)
      at org.jboss.mx.interceptor.ReflectedDispatcher.invoke(ReflectedDispatcher.java:155)
      at org.jboss.mx.server.Invocation.dispatch(Invocation.java:94)
      at org.jboss.mx.server.Invocation.invoke(Invocation.java:86)
      at org.jboss.mx.server.AbstractMBeanInvoker.invoke(AbstractMBeanInvoker.java:264)
      at org.jboss.mx.server.MBeanServerImpl.invoke(MBeanServerImpl.java:659)
      at org.jboss.mx.util.MBeanProxyExt.invoke(MBeanProxyExt.java:210)
      at $Proxy4.start(Unknown Source)
      at org.jboss.deployment.SARDeployer.start(SARDeployer.java:302)
      at org.jboss.deployment.MainDeployer.start(MainDeployer.java:1007)
      at org.jboss.deployment.MainDeployer.deploy(MainDeployer.java:808)
      at org.jboss.deployment.MainDeployer.deploy(MainDeployer.java:771)
      at org.jboss.deployment.MainDeployer.deploy(MainDeployer.java:755)
      at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
      at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39)
      at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
      at java.lang.reflect.Method.invoke(Method.java:585)
      at org.jboss.mx.interceptor.ReflectedDispatcher.invoke(ReflectedDispatcher.java:155)
      at org.jboss.mx.server.Invocation.dispatch(Invocation.java:94)
      at org.jboss.mx.interceptor.AbstractInterceptor.invoke(AbstractInterceptor.java:133)
      at org.jboss.mx.server.Invocation.invoke(Invocation.java:88)
      at org.jboss.mx.interceptor.ModelMBeanOperationInterceptor.invoke(ModelMBeanOperationInterceptor.java:142)
      at org.jboss.mx.server.Invocation.invoke(Invocation.java:88)
      at org.jboss.mx.server.AbstractMBeanInvoker.invoke(AbstractMBeanInvoker.java:264)
      at org.jboss.mx.server.MBeanServerImpl.invoke(MBeanServerImpl.java:659)
      at org.jboss.mx.util.MBeanProxyExt.invoke(MBeanProxyExt.java:210)
      at $Proxy5.deploy(Unknown Source)
      at org.jboss.system.server.ServerImpl.doStart(ServerImpl.java:482)
      at org.jboss.system.server.ServerImpl.start(ServerImpl.java:362)
      at org.jboss.Main.boot(Main.java:200)
      at org.jboss.Main$1.run(Main.java:464)
      at java.lang.Thread.run(Thread.java:595)
      Caused by: java.lang.ClassCastException: org.jboss.seam.jsf.SeamPhaseListener
      at com.sun.faces.config.ConfigureListener.configure(ConfigureListener.java:960)
      at com.sun.faces.config.ConfigureListener.configure(ConfigureListener.java:594)
      at com.sun.faces.config.ConfigureListener.contextInitialized(ConfigureListener.java:496)
      ... 138 more
      2006-10-06 16:10:17,753 DEBUG [org.jboss.mx.loading.RepositoryClassLoader] setRepository, repository=org.jboss.mx.loading.HeirarchicalLoaderRepository3@15e0163, cl=org.jboss.mx.loading.HeirarchicalLoaderRepository3$CacheClassLoader@17360be{ url=null ,addedOrder=0}
      2006-10-06 16:10:17,763 DEBUG [org.jboss.mx.loading.RepositoryClassLoader] setRepository, repository=org.jboss.mx.loading.HeirarchicalLoaderRepository3@15e0163, cl=org.jboss.mx.loading.HeirarchicalLoaderRepository3$CacheClassLoader@681070{ url=null ,addedOrder=0}
      2006-10-06 16:10:17,974 INFO [org.apache.myfaces.config.FacesConfigurator] Reading standard config org/apache/myfaces/resource/standard-faces-config.xml
      2006-10-06 16:10:18,044 INFO [org.apache.myfaces.config.FacesConfigurator] Reading config jar:file:/C:/Program Files/jboss-4.0.4.GA/server/default/tmp/deploy/tmp64961BRNNCI.ear-contents/jboss-seam.jar!/META-INF/faces-config.xml
      2006-10-06 16:10:18,044 INFO [org.apache.myfaces.config.FacesConfigurator] Reading config jar:file:/C:/Program Files/jboss-4.0.4.GA/server/default/tmp/deploy/tmp64909jsf-facelets.jar!/META-INF/faces-config.xml
      2006-10-06 16:10:18,054 INFO [org.apache.myfaces.config.FacesConfigurator] Reading config jar:file:/C:/Program%20Files/jboss-4.0.4.GA/server/default/tmp/deploy/tmp64961BRNNCI.ear-contents/BRNNCIWeb-exp.war/WEB-INF/lib/jboss-seam-debug.jar!/META-INF/faces-config.xml
      2006-10-06 16:10:18,064 INFO [org.apache.myfaces.config.FacesConfigurator] Reading config jar:file:/C:/Program%20Files/jboss-4.0.4.GA/server/default/tmp/deploy/tmp64961BRNNCI.ear-contents/BRNNCIWeb-exp.war/WEB-INF/lib/jboss-seam-ui.jar!/META-INF/faces-config.xml
      2006-10-06 16:10:18,074 INFO [org.apache.myfaces.config.FacesConfigurator] Reading config jar:file:/C:/Program%20Files/jboss-4.0.4.GA/server/default/tmp/deploy/tmp64961BRNNCI.ear-contents/BRNNCIWeb-exp.war/WEB-INF/lib/jsf-facelets.jar!/META-INF/faces-config.xml
      2006-10-06 16:10:18,084 INFO [org.apache.myfaces.config.FacesConfigurator] Reading config /WEB-INF/faces-config.xml
      2006-10-06 16:10:18,104 ERROR [org.apache.myfaces.webapp.StartupServletContextListener] Error initializing ServletContext
      java.lang.NullPointerException
      at com.sun.faces.application.ApplicationAssociate.getInstance(ApplicationAssociate.java:165)
      at com.sun.faces.application.NavigationHandlerImpl.(NavigationHandlerImpl.java:105)
      at com.sun.faces.application.ApplicationImpl.getNavigationHandler(ApplicationImpl.java:385)
      at org.apache.myfaces.config.FacesConfigurator.configureApplication(FacesConfigurator.java:458)

        • 1. Re: Cannot deploy the war-java.lang.ClassCastException: org.
          Gavin King Master

          Remove the JSF jar from your EAR. It already exists in JBoss.

          • 2. Re: Cannot deploy the war-java.lang.ClassCastException: org.
            Anupama Chickerur Newbie

            I removes the jars jsf-api.jar and the jsf-impl.jar from the ear. I am getting the following error now.
            2006-10-08 14:37:23,731 ERROR [org.apache.catalina.core.ContainerBase.[jboss.web].[localhost].[/BRNNCIWeb]] Error configuring application listener of class com.sun.faces.config.ConfigureListener
            java.lang.ClassNotFoundException: com.sun.faces.config.ConfigureListener
            at org.apache.catalina.loader.WebappClassLoader.loadClass(WebappClassLoader.java:1352)
            at org.apache.catalina.loader.WebappClassLoader.loadClass(WebappClassLoader.java:1198)
            at org.apache.catalina.core.StandardContext.listenerStart(StandardContext.java:3677)
            at org.apache.catalina.core.StandardContext.start(StandardContext.java:4187)
            at org.apache.catalina.core.ContainerBase.addChildInternal(ContainerBase.java:759)
            at org.apache.catalina.core.ContainerBase.addChild(ContainerBase.java:739)
            at org.apache.catalina.core.StandardHost.addChild(StandardHost.java:524)
            at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
            at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39)
            at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
            at java.lang.reflect.Method.invoke(Method.java:585)
            at org.apache.commons.modeler.BaseModelMBean.invoke(BaseModelMBean.java:503)
            at org.jboss.mx.server.RawDynamicInvoker.invoke(RawDynamicInvoker.java:164)
            at org.jboss.mx.server.MBeanServerImpl.invoke(MBeanServerImpl.java:659)
            at org.apache.catalina.core.StandardContext.init(StandardContext.java:5116)
            at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
            at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39)
            at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
            at java.lang.reflect.Method.invoke(Method.java:585)
            at org.apache.commons.modeler.BaseModelMBean.invoke(BaseModelMBean.java:503)
            at org.jboss.mx.server.RawDynamicInvoker.invoke(RawDynamicInvoker.java:164)
            at org.jboss.mx.server.MBeanServerImpl.invoke(MBeanServerImpl.java:659)
            at org.jboss.web.tomcat.tc5.TomcatDeployer.performDeployInternal(TomcatDeployer.java:297)
            at org.jboss.web.tomcat.tc5.TomcatDeployer.performDeploy(TomcatDeployer.java:103)
            at org.jboss.web.AbstractWebDeployer.start(AbstractWebDeployer.java:371)
            at org.jboss.web.WebModule.startModule(WebModule.java:83)
            at org.jboss.web.WebModule.startService(WebModule.java:61)
            at org.jboss.system.ServiceMBeanSupport.jbossInternalStart(ServiceMBeanSupport.java:289)
            at org.jboss.system.ServiceMBeanSupport.jbossInternalLifecycle(ServiceMBeanSupport.java:245)
            at sun.reflect.GeneratedMethodAccessor3.invoke(Unknown Source)
            at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
            at java.lang.reflect.Method.invoke(Method.java:585)
            at org.jboss.mx.interceptor.ReflectedDispatcher.invoke(ReflectedDispatcher.java:155)
            at org.jboss.mx.server.Invocation.dispatch(Invocation.java:94)
            at org.jboss.mx.server.Invocation.invoke(Invocation.java:86)
            at org.jboss.mx.server.AbstractMBeanInvoker.invoke(AbstractMBeanInvoker.java:264)
            at org.jboss.mx.server.MBeanServerImpl.invoke(MBeanServerImpl.java:659)
            at org.jboss.system.ServiceController$ServiceProxy.invoke(ServiceController.java:978)
            at $Proxy0.start(Unknown Source)
            at org.jboss.system.ServiceController.start(ServiceController.java:417)
            at sun.reflect.GeneratedMethodAccessor6.invoke(Unknown Source)
            at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
            at java.lang.reflect.Method.invoke(Method.java:585)
            at org.jboss.mx.interceptor.ReflectedDispatcher.invoke(ReflectedDispatcher.java:155)
            at org.jboss.mx.server.Invocation.dispatch(Invocation.java:94)
            at org.jboss.mx.server.Invocation.invoke(Invocation.java:86)
            at org.jboss.mx.server.AbstractMBeanInvoker.invoke(AbstractMBeanInvoker.java:264)
            at org.jboss.mx.server.MBeanServerImpl.invoke(MBeanServerImpl.java:659)
            at org.jboss.mx.util.MBeanProxyExt.invoke(MBeanProxyExt.java:210)
            at $Proxy43.start(Unknown Source)
            at org.jboss.web.AbstractWebContainer.start(AbstractWebContainer.java:466)
            at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
            at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39)
            at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
            at java.lang.reflect.Method.invoke(Method.java:585)
            at org.jboss.mx.interceptor.ReflectedDispatcher.invoke(ReflectedDispatcher.java:155)
            at org.jboss.mx.server.Invocation.dispatch(Invocation.java:94)
            at org.jboss.mx.interceptor.AbstractInterceptor.invoke(AbstractInterceptor.java:133)
            at org.jboss.mx.server.Invocation.invoke(Invocation.java:88)
            at org.jboss.mx.interceptor.ModelMBeanOperationInterceptor.invoke(ModelMBeanOperationInterceptor.java:142)
            at org.jboss.mx.interceptor.DynamicInterceptor.invoke(DynamicInterceptor.java:97)
            at org.jboss.system.InterceptorServiceMBeanSupport.invokeNext(InterceptorServiceMBeanSupport.java:238)
            at org.jboss.ws.server.WebServiceDeployer.start(WebServiceDeployer.java:117)
            at org.jboss.deployment.SubDeployerInterceptorSupport$XMBeanInterceptor.start(SubDeployerInterceptorSupport.java:188)
            at org.jboss.deployment.SubDeployerInterceptor.invoke(SubDeployerInterceptor.java:95)
            at org.jboss.mx.server.Invocation.invoke(Invocation.java:88)
            at org.jboss.mx.server.AbstractMBeanInvoker.invoke(AbstractMBeanInvoker.java:264)
            at org.jboss.mx.server.MBeanServerImpl.invoke(MBeanServerImpl.java:659)
            at org.jboss.mx.util.MBeanProxyExt.invoke(MBeanProxyExt.java:210)
            at $Proxy44.start(Unknown Source)
            at org.jboss.deployment.MainDeployer.start(MainDeployer.java:1007)
            at org.jboss.deployment.MainDeployer.start(MainDeployer.java:997)
            at org.jboss.deployment.MainDeployer.deploy(MainDeployer.java:808)
            at org.jboss.deployment.MainDeployer.deploy(MainDeployer.java:771)
            at sun.reflect.GeneratedMethodAccessor13.invoke(Unknown Source)
            at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
            at java.lang.reflect.Method.invoke(Method.java:585)
            at org.jboss.mx.interceptor.ReflectedDispatcher.invoke(ReflectedDispatcher.java:155)
            at org.jboss.mx.server.Invocation.dispatch(Invocation.java:94)
            at org.jboss.mx.interceptor.AbstractInterceptor.invoke(AbstractInterceptor.java:133)
            at org.jboss.mx.server.Invocation.invoke(Invocation.java:88)
            at org.jboss.mx.interceptor.ModelMBeanOperationInterceptor.invoke(ModelMBeanOperationInterceptor.java:142)
            at org.jboss.mx.server.Invocation.invoke(Invocation.java:88)
            at org.jboss.mx.server.AbstractMBeanInvoker.invoke(AbstractMBeanInvoker.java:264)
            at org.jboss.mx.server.MBeanServerImpl.invoke(MBeanServerImpl.java:659)
            at org.jboss.mx.util.MBeanProxyExt.invoke(MBeanProxyExt.java:210)
            at $Proxy6.deploy(Unknown Source)
            at org.jboss.deployment.scanner.URLDeploymentScanner.deploy(URLDeploymentScanner.java:421)
            at org.jboss.deployment.scanner.URLDeploymentScanner.scan(URLDeploymentScanner.java:634)
            at org.jboss.deployment.scanner.AbstractDeploymentScanner$ScannerThread.doScan(AbstractDeploymentScanner.java:263)
            at org.jboss.deployment.scanner.AbstractDeploymentScanner.startService(AbstractDeploymentScanner.java:336)
            at org.jboss.system.ServiceMBeanSupport.jbossInternalStart(ServiceMBeanSupport.java:289)
            at org.jboss.system.ServiceMBeanSupport.jbossInternalLifecycle(ServiceMBeanSupport.java:245)
            at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
            at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39)
            at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
            at java.lang.reflect.Method.invoke(Method.java:585)
            at org.jboss.mx.interceptor.ReflectedDispatcher.invoke(ReflectedDispatcher.java:155)
            at org.jboss.mx.server.Invocation.dispatch(Invocation.java:94)
            at org.jboss.mx.server.Invocation.invoke(Invocation.java:86)
            at org.jboss.mx.server.AbstractMBeanInvoker.invoke(AbstractMBeanInvoker.java:264)
            at org.jboss.mx.server.MBeanServerImpl.invoke(MBeanServerImpl.java:659)
            at org.jboss.system.ServiceController$ServiceProxy.invoke(ServiceController.java:978)
            at $Proxy0.start(Unknown Source)
            at org.jboss.system.ServiceController.start(ServiceController.java:417)
            at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
            at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39)
            at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
            at java.lang.reflect.Method.invoke(Method.java:585)
            at org.jboss.mx.interceptor.ReflectedDispatcher.invoke(ReflectedDispatcher.java:155)
            at org.jboss.mx.server.Invocation.dispatch(Invocation.java:94)
            at org.jboss.mx.server.Invocation.invoke(Invocation.java:86)
            at org.jboss.mx.server.AbstractMBeanInvoker.invoke(AbstractMBeanInvoker.java:264)
            at org.jboss.mx.server.MBeanServerImpl.invoke(MBeanServerImpl.java:659)
            at org.jboss.mx.util.MBeanProxyExt.invoke(MBeanProxyExt.java:210)
            at $Proxy4.start(Unknown Source)
            at org.jboss.deployment.SARDeployer.start(SARDeployer.java:302)
            at org.jboss.deployment.MainDeployer.start(MainDeployer.java:1007)
            at org.jboss.deployment.MainDeployer.deploy(MainDeployer.java:808)
            at org.jboss.deployment.MainDeployer.deploy(MainDeployer.java:771)
            at org.jboss.deployment.MainDeployer.deploy(MainDeployer.java:755)
            at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
            at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39)
            at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
            at java.lang.reflect.Method.invoke(Method.java:585)
            at org.jboss.mx.interceptor.ReflectedDispatcher.invoke(ReflectedDispatcher.java:155)
            at org.jboss.mx.server.Invocation.dispatch(Invocation.java:94)
            at org.jboss.mx.interceptor.AbstractInterceptor.invoke(AbstractInterceptor.java:133)
            at org.jboss.mx.server.Invocation.invoke(Invocation.java:88)
            at org.jboss.mx.interceptor.ModelMBeanOperationInterceptor.invoke(ModelMBeanOperationInterceptor.java:142)
            at org.jboss.mx.server.Invocation.invoke(Invocation.java:88)
            at org.jboss.mx.server.AbstractMBeanInvoker.invoke(AbstractMBeanInvoker.java:264)
            at org.jboss.mx.server.MBeanServerImpl.invoke(MBeanServerImpl.java:659)
            at org.jboss.mx.util.MBeanProxyExt.invoke(MBeanProxyExt.java:210)
            at $Proxy5.deploy(Unknown Source)
            at org.jboss.system.server.ServerImpl.doStart(ServerImpl.java:482)
            at org.jboss.system.server.ServerImpl.start(ServerImpl.java:362)
            at org.jboss.Main.boot(Main.java:200)
            at org.jboss.Main$1.run(Main.java:464)
            at java.lang.Thread.run(Thread.java:595)
            2006-10-08 14:37:23,791 ERROR [org.apache.catalina.core.ContainerBase.[jboss.web].[localhost].[/BRNNCIWeb]] Error configuring application listener of class com.sun.faces.application.WebappLifecycleListener
            java.lang.ClassNotFoundException: com.sun.faces.application.WebappLifecycleListener
            at org.apache.catalina.loader.WebappClassLoader.loadClass(WebappClassLoader.java:1352)
            at org.apache.catalina.loader.WebappClassLoader.loadClass(WebappClassLoader.java:1198)
            at org.apache.catalina.core.StandardContext.listenerStart(StandardContext.java:3677)
            at org.apache.catalina.core.StandardContext.start(StandardContext.java:4187)
            at org.apache.catalina.core.ContainerBase.addChildInternal(ContainerBase.java:759)
            at org.apache.catalina.core.ContainerBase.addChild(ContainerBase.java:739)
            at org.apache.catalina.core.StandardHost.addChild(StandardHost.java:524)
            at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
            at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39)
            at sun.reflect.DelegatingMethodAccess

            • 3. Re: Cannot deploy the war-java.lang.ClassCastException: org.
              Anupama Chickerur Newbie

              Sorry abt the earlier post. I had a jsf jar in my lib. I removed that. Now the error I get is this,

              Sorry for posting so many times, I am new to this.

              006-10-08 15:12:52,782 ERROR [org.apache.catalina.core.ContainerBase.[jboss.web].[localhost].[/BRNNCIWeb]] Exception sending context initialized event to listener instance of class org.jboss.seam.servlet.SeamListener
              java.lang.NullPointerException
              at sun.beans.editors.BoolEditor.setAsText(BoolEditor.java:38)
              at org.jboss.seam.Component.initInitializers(Component.java:314)
              at org.jboss.seam.Component.(Component.java:209)
              at org.jboss.seam.Component.(Component.java:159)
              at org.jboss.seam.Component.(Component.java:154)
              at org.jboss.seam.Component.(Component.java:149)
              at org.jboss.seam.init.Initialization.addComponent(Initialization.java:381)
              at org.jboss.seam.init.Initialization.addComponents(Initialization.java:255)
              at org.jboss.seam.init.Initialization.init(Initialization.java:195)
              at org.jboss.seam.servlet.SeamListener.contextInitialized(SeamListener.java:32)
              at org.apache.catalina.core.StandardContext.listenerStart(StandardContext.java:3729)
              at org.apache.catalina.core.StandardContext.start(StandardContext.java:4187)
              at org.apache.catalina.core.ContainerBase.addChildInternal(ContainerBase.java:759)
              at org.apache.catalina.core.ContainerBase.addChild(ContainerBase.java:739)
              at org.apache.catalina.core.StandardHost.addChild(StandardHost.java:524)
              at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
              at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39)
              at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
              at java.lang.reflect.Method.invoke(Method.java:585)
              at org.apache.commons.modeler.BaseModelMBean.invoke(BaseModelMBean.java:503)
              at org.jboss.mx.server.RawDynamicInvoker.invoke(RawDynamicInvoker.java:164)

              • 4. Re: Cannot deploy the war-java.lang.ClassCastException: org.
                Gavin King Master

                What version of Seam are you using?
                What is in seam.properties?
                What is in components.xml?

                • 5. Re: Cannot deploy the war-java.lang.ClassCastException: org.
                  Anupama Chickerur Newbie

                  jboss-seam-1.0.1.GA
                  components.xml



                  true
                  @myFacesLifecycleBug@
                  @jndiPattern@


                  <!-- 120 second conversation timeout -->

                  120000






                  Seam.properties file is empty

                  • 6. Re: Cannot deploy the war-java.lang.ClassCastException: org.
                    Anupama Chickerur Newbie




                    true
                    @myFacesLifecycleBug@
                    @jndiPattern@


                    <!-- 120 second conversation timeout -->

                    120000




                    • 7. Re: Cannot deploy the war-java.lang.ClassCastException: org.
                      Anupama Chickerur Newbie

                      <!--

                      true
                      @myFacesLifecycleBug@
                      @jndiPattern@


                      <!-- 120 second conversation timeout -->

                      120000




                      -->

                      • 9. Re: Cannot deploy the war-java.lang.ClassCastException: org.
                        Gavin King Master

                        I hope you are not trying to deploy a components.xml file with @Foo@ stuff in it, without using a components.properties file to define the values of @Foo@.

                        What does your components.properties say?

                        • 10. Re: Cannot deploy the war-java.lang.ClassCastException: org.
                          Anupama Chickerur Newbie

                           

                          <components>
                          
                           <component name="org.jboss.seam.core.init">
                           <property name="debug">true</property>
                           <property name="myFacesLifecycleBug">@myFacesLifecycleBug@</property>
                           <property name="jndiPattern">@jndiPattern@</property>
                           </component>
                          
                           <!-- 120 second conversation timeout -->
                           <component name="org.jboss.seam.core.manager">
                           <property name="conversationTimeout">120000</property>
                           </component>
                          
                           <component class="org.jboss.seam.core.Ejb"
                           installed="@embeddedEjb@"/>
                          
                          </components>
                          


                          Thanks for helping me out. sorry for troubling you with this problem

                          • 11. Re: Cannot deploy the war-java.lang.ClassCastException: org.
                            Anupama Chickerur Newbie





                            true
                            @myFacesLifecycleBug@
                            @jndiPattern@


                            <!-- 120 second conversation timeout -->

                            120000







                            component.properties file
                            myFacesLifecycleBug false
                            embeddedEjb true
                            jndiPattern #{ejbName}/local

                            Thanks for helping me.

                            • 12. Re: Cannot deploy the war-java.lang.ClassCastException: org.
                              Anupama Chickerur Newbie

                              Thanks for helping me out with this issue, really appreciate it.

                              Component.properties

                              myFacesLifecycleBug false
                              embeddedEjb true
                              jndiPattern #{ejbName}/local

                              components.xml

                              <components>
                              
                               <component name="org.jboss.seam.core.init">
                               <property name="debug">true</property>
                               <property name="myFacesLifecycleBug">@myFacesLifecycleBug@</property>
                               <property name="jndiPattern">@jndiPattern@</property>
                               </component>
                              
                               <!-- 120 second conversation timeout -->
                               <component name="org.jboss.seam.core.manager">
                               <property name="conversationTimeout">120000</property>
                               </component>
                              
                               <component class="org.jboss.seam.core.Ejb"
                               installed="@embeddedEjb@"/>
                              
                              </components>