9 Replies Latest reply on Jul 2, 2007 3:13 AM by Robin

    java.lang.UnsupportedOperationException

    Robin Newbie

      I've upgraded my project from Seam 1.2.1 running on JBoss 4.0.5 to the 1.3.0.BETA running om JBoss 4.2.0.

      When I try to deploy the project I get the following problem:

      2007-06-28 15:37:48,218 ERROR [STDERR] java.lang.UnsupportedOperationException
      2007-06-28 15:37:48,218 ERROR [STDERR] at com.sun.faces.config.ConfigureListener$InitFacesContext.getViewRoot(ConfigureListener.java:1690)
      2007-06-28 15:37:48,234 ERROR [STDERR] at com.sun.faces.util.MessageFactory.getMessage(MessageFactory.java:113)
      2007-06-28 15:37:48,234 ERROR [STDERR] at com.sun.faces.util.MessageUtils.getExceptionMessageString(MessageUtils.java:277)
      2007-06-28 15:37:48,234 ERROR [STDERR] at com.sun.faces.config.ConfigureListener.configure(ConfigureListener.java:855)
      2007-06-28 15:37:48,234 ERROR [STDERR] at com.sun.faces.config.ConfigureListener.configure(ConfigureListener.java:502)
      2007-06-28 15:37:48,234 ERROR [STDERR] at com.sun.faces.config.ConfigureListener.contextInitialized(ConfigureListener.java:402)
      2007-06-28 15:37:48,234 ERROR [STDERR] at org.jboss.web.jsf.integration.config.JBossJSFConfigureListener.contextInitialized(JBossJSFConfigureListener.java:69)
      2007-06-28 15:37:48,250 ERROR [STDERR] at org.apache.catalina.core.StandardContext.listenerStart(StandardContext.java:3854)
      2007-06-28 15:37:48,250 ERROR [STDERR] at org.apache.catalina.core.StandardContext.start(StandardContext.java:4359)
      2007-06-28 15:37:48,250 ERROR [STDERR] at org.apache.catalina.core.ContainerBase.addChildInternal(ContainerBase.java:761)
      2007-06-28 15:37:48,250 ERROR [STDERR] at org.apache.catalina.core.ContainerBase.addChild(ContainerBase.java:741)
      2007-06-28 15:37:48,250 ERROR [STDERR] at org.apache.catalina.core.StandardHost.addChild(StandardHost.java:553)
      2007-06-28 15:37:48,250 ERROR [STDERR] at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
      2007-06-28 15:37:48,250 ERROR [STDERR] at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39)
      2007-06-28 15:37:48,250 ERROR [STDERR] at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
      2007-06-28 15:37:48,265 ERROR [STDERR] at java.lang.reflect.Method.invoke(Method.java:585)
      2007-06-28 15:37:48,265 ERROR [STDERR] at org.apache.tomcat.util.modeler.BaseModelMBean.invoke(BaseModelMBean.java:297)
      2007-06-28 15:37:48,265 ERROR [STDERR] at org.jboss.mx.server.RawDynamicInvoker.invoke(RawDynamicInvoker.java:164)
      2007-06-28 15:37:48,265 ERROR [STDERR] at org.jboss.mx.server.MBeanServerImpl.invoke(MBeanServerImpl.java:659)
      2007-06-28 15:37:48,265 ERROR [STDERR] at org.apache.catalina.core.StandardContext.init(StandardContext.java:5310)
      2007-06-28 15:37:48,265 ERROR [STDERR] at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
      2007-06-28 15:37:48,265 ERROR [STDERR] at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39)
      2007-06-28 15:37:48,265 ERROR [STDERR] at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
      2007-06-28 15:37:48,265 ERROR [STDERR] at java.lang.reflect.Method.invoke(Method.java:585)
      2007-06-28 15:37:48,281 ERROR [STDERR] at org.apache.tomcat.util.modeler.BaseModelMBean.invoke(BaseModelMBean.java:297)
      2007-06-28 15:37:48,281 ERROR [STDERR] at org.jboss.mx.server.RawDynamicInvoker.invoke(RawDynamicInvoker.java:164)
      2007-06-28 15:37:48,281 ERROR [STDERR] at org.jboss.mx.server.MBeanServerImpl.invoke(MBeanServerImpl.java:659)
      2007-06-28 15:37:48,281 ERROR [STDERR] at org.jboss.web.tomcat.service.TomcatDeployer.performDeployInternal(TomcatDeployer.java:301)
      2007-06-28 15:37:48,281 ERROR [STDERR] at org.jboss.web.tomcat.service.TomcatDeployer.performDeploy(TomcatDeployer.java:104)
      2007-06-28 15:37:48,281 ERROR [STDERR] at org.jboss.web.AbstractWebDeployer.start(AbstractWebDeployer.java:375)
      2007-06-28 15:37:48,281 ERROR [STDERR] at org.jboss.web.WebModule.startModule(WebModule.java:83)
      2007-06-28 15:37:48,296 ERROR [STDERR] at org.jboss.web.WebModule.startService(WebModule.java:61)
      2007-06-28 15:37:48,296 ERROR [STDERR] at org.jboss.system.ServiceMBeanSupport.jbossInternalStart(ServiceMBeanSupport.java:289)
      2007-06-28 15:37:48,296 ERROR [STDERR] at org.jboss.system.ServiceMBeanSupport.jbossInternalLifecycle(ServiceMBeanSupport.java:245)
      2007-06-28 15:37:48,296 ERROR [STDERR] at sun.reflect.GeneratedMethodAccessor3.invoke(Unknown Source)
      2007-06-28 15:37:48,296 ERROR [STDERR] at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
      2007-06-28 15:37:48,296 ERROR [STDERR] at java.lang.reflect.Method.invoke(Method.java:585)
      2007-06-28 15:37:48,296 ERROR [STDERR] at org.jboss.mx.interceptor.ReflectedDispatcher.invoke(ReflectedDispatcher.java:155)
      2007-06-28 15:37:48,296 ERROR [STDERR] at org.jboss.mx.server.Invocation.dispatch(Invocation.java:94)
      2007-06-28 15:37:48,296 ERROR [STDERR] at org.jboss.mx.server.Invocation.invoke(Invocation.java:86)
      2007-06-28 15:37:48,312 ERROR [STDERR] at org.jboss.mx.server.AbstractMBeanInvoker.invoke(AbstractMBeanInvoker.java:264)
      2007-06-28 15:37:48,312 ERROR [STDERR] at org.jboss.mx.server.MBeanServerImpl.invoke(MBeanServerImpl.java:659)
      2007-06-28 15:37:48,312 ERROR [STDERR] at org.jboss.system.ServiceController$ServiceProxy.invoke(ServiceController.java:978)
      2007-06-28 15:37:48,312 ERROR [STDERR] at $Proxy0.start(Unknown Source)
      2007-06-28 15:37:48,312 ERROR [STDERR] at org.jboss.system.ServiceController.start(ServiceController.java:417)
      2007-06-28 15:37:48,312 ERROR [STDERR] at sun.reflect.GeneratedMethodAccessor9.invoke(Unknown Source)
      2007-06-28 15:37:48,312 ERROR [STDERR] at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
      2007-06-28 15:37:48,312 ERROR [STDERR] at java.lang.reflect.Method.invoke(Method.java:585)
      2007-06-28 15:37:48,328 ERROR [STDERR] at org.jboss.mx.interceptor.ReflectedDispatcher.invoke(ReflectedDispatcher.java:155)
      2007-06-28 15:37:48,328 ERROR [STDERR] at org.jboss.mx.server.Invocation.dispatch(Invocation.java:94)
      2007-06-28 15:37:48,328 ERROR [STDERR] at org.jboss.mx.server.Invocation.invoke(Invocation.java:86)
      2007-06-28 15:37:48,328 ERROR [STDERR] at org.jboss.mx.server.AbstractMBeanInvoker.invoke(AbstractMBeanInvoker.java:264)
      2007-06-28 15:37:48,328 ERROR [STDERR] at org.jboss.mx.server.MBeanServerImpl.invoke(MBeanServerImpl.java:659)
      2007-06-28 15:37:48,328 ERROR [STDERR] at org.jboss.mx.util.MBeanProxyExt.invoke(MBeanProxyExt.java:210)
      2007-06-28 15:37:48,328 ERROR [STDERR] at $Proxy45.start(Unknown Source)
      2007-06-28 15:37:48,328 ERROR [STDERR] at org.jboss.web.AbstractWebContainer.start(AbstractWebContainer.java:466)
      2007-06-28 15:37:48,343 ERROR [STDERR] at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
      2007-06-28 15:37:48,343 ERROR [STDERR] at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39)
      2007-06-28 15:37:48,343 ERROR [STDERR] at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
      2007-06-28 15:37:48,343 ERROR [STDERR] at java.lang.reflect.Method.invoke(Method.java:585)
      2007-06-28 15:37:48,343 ERROR [STDERR] at org.jboss.mx.interceptor.ReflectedDispatcher.invoke(ReflectedDispatcher.java:155)
      2007-06-28 15:37:48,343 ERROR [STDERR] at org.jboss.mx.server.Invocation.dispatch(Invocation.java:94)
      2007-06-28 15:37:48,343 ERROR [STDERR] at org.jboss.mx.interceptor.AbstractInterceptor.invoke(AbstractInterceptor.java:133)
      2007-06-28 15:37:48,343 ERROR [STDERR] at org.jboss.mx.server.Invocation.invoke(Invocation.java:88)
      2007-06-28 15:37:48,343 ERROR [STDERR] at org.jboss.mx.interceptor.ModelMBeanOperationInterceptor.invoke(ModelMBeanOperationInterceptor.java:142)
      2007-06-28 15:37:48,359 ERROR [STDERR] at org.jboss.mx.interceptor.DynamicInterceptor.invoke(DynamicInterceptor.java:97)
      2007-06-28 15:37:48,359 ERROR [STDERR] at org.jboss.system.InterceptorServiceMBeanSupport.invokeNext(InterceptorServiceMBeanSupport.java:238)
      2007-06-28 15:37:48,359 ERROR [STDERR] at org.jboss.ws.integration.jboss42.DeployerInterceptor.start(DeployerInterceptor.java:93)
      2007-06-28 15:37:48,359 ERROR [STDERR] at org.jboss.deployment.SubDeployerInterceptorSupport$XMBeanInterceptor.start(SubDeployerInterceptorSupport.java:188)
      2007-06-28 15:37:48,359 ERROR [STDERR] at org.jboss.deployment.SubDeployerInterceptor.invoke(SubDeployerInterceptor.java:95)
      2007-06-28 15:37:48,375 ERROR [STDERR] at org.jboss.mx.server.Invocation.invoke(Invocation.java:88)
      2007-06-28 15:37:48,375 ERROR [STDERR] at org.jboss.mx.server.AbstractMBeanInvoker.invoke(AbstractMBeanInvoker.java:264)
      2007-06-28 15:37:48,375 ERROR [STDERR] at org.jboss.mx.server.MBeanServerImpl.invoke(MBeanServerImpl.java:659)
      2007-06-28 15:37:48,375 ERROR [STDERR] at org.jboss.mx.util.MBeanProxyExt.invoke(MBeanProxyExt.java:210)
      2007-06-28 15:37:48,375 ERROR [STDERR] at $Proxy46.start(Unknown Source)
      2007-06-28 15:37:48,375 ERROR [STDERR] at org.jboss.deployment.MainDeployer.start(MainDeployer.java:1025)
      2007-06-28 15:37:48,375 ERROR [STDERR] at org.jboss.deployment.MainDeployer.start(MainDeployer.java:1015)
      2007-06-28 15:37:48,375 ERROR [STDERR] at org.jboss.deployment.MainDeployer.deploy(MainDeployer.java:819)
      2007-06-28 15:37:48,390 ERROR [STDERR] at org.jboss.deployment.MainDeployer.deploy(MainDeployer.java:782)
      2007-06-28 15:37:48,390 ERROR [STDERR] at sun.reflect.GeneratedMethodAccessor18.invoke(Unknown Source)
      2007-06-28 15:37:48,390 ERROR [STDERR] at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
      2007-06-28 15:37:48,390 ERROR [STDERR] at java.lang.reflect.Method.invoke(Method.java:585)
      2007-06-28 15:37:48,390 ERROR [STDERR] at org.jboss.mx.interceptor.ReflectedDispatcher.invoke(ReflectedDispatcher.java:155)
      2007-06-28 15:37:48,390 ERROR [STDERR] at org.jboss.mx.server.Invocation.dispatch(Invocation.java:94)
      2007-06-28 15:37:48,390 ERROR [STDERR] at org.jboss.mx.interceptor.AbstractInterceptor.invoke(AbstractInterceptor.java:133)
      2007-06-28 15:37:48,390 ERROR [STDERR] at org.jboss.mx.server.Invocation.invoke(Invocation.java:88)
      2007-06-28 15:37:48,390 ERROR [STDERR] at org.jboss.mx.interceptor.ModelMBeanOperationInterceptor.invoke(ModelMBeanOperationInterceptor.java:142)
      2007-06-28 15:37:48,406 ERROR [STDERR] at org.jboss.mx.server.Invocation.invoke(Invocation.java:88)
      2007-06-28 15:37:48,406 ERROR [STDERR] at org.jboss.mx.server.AbstractMBeanInvoker.invoke(AbstractMBeanInvoker.java:264)
      2007-06-28 15:37:48,406 ERROR [STDERR] at org.jboss.mx.server.MBeanServerImpl.invoke(MBeanServerImpl.java:659)
      2007-06-28 15:37:48,406 ERROR [STDERR] at org.jboss.mx.util.MBeanProxyExt.invoke(MBeanProxyExt.java:210)
      2007-06-28 15:37:48,406 ERROR [STDERR] at $Proxy9.deploy(Unknown Source)
      2007-06-28 15:37:48,406 ERROR [STDERR] at org.jboss.deployment.scanner.URLDeploymentScanner.deploy(URLDeploymentScanner.java:421)
      2007-06-28 15:37:48,406 ERROR [STDERR] at org.jboss.deployment.scanner.URLDeploymentScanner.scan(URLDeploymentScanner.java:610)
      2007-06-28 15:37:48,421 ERROR [STDERR] at org.jboss.deployment.scanner.AbstractDeploymentScanner$ScannerThread.doScan(AbstractDeploymentScanner.java:263)
      2007-06-28 15:37:48,421 ERROR [STDERR] at org.jboss.deployment.scanner.AbstractDeploymentScanner$ScannerThread.loop(AbstractDeploymentScanner.java:274)
      2007-06-28 15:37:48,421 ERROR [STDERR] at org.jboss.deployment.scanner.AbstractDeploymentScanner$ScannerThread.run(AbstractDeploymentScanner.java:225)
      2007-06-28 15:37:48,437 ERROR [org.apache.catalina.core.ContainerBase.[jboss.web].[localhost].[/omx-cabin]] Exception sending context initialized event to listener instance of class org.jboss.web.jsf.integration.config.JBossJSFConfigureListener
      javax.faces.FacesException: java.lang.UnsupportedOperationException
       at com.sun.faces.config.ConfigureListener.contextInitialized(ConfigureListener.java:408)
       at org.jboss.web.jsf.integration.config.JBossJSFConfigureListener.contextInitialized(JBossJSFConfigureListener.java:69)
       at org.apache.catalina.core.StandardContext.listenerStart(StandardContext.java:3854)
       at org.apache.catalina.core.StandardContext.start(StandardContext.java:4359)
       at org.apache.catalina.core.ContainerBase.addChildInternal(ContainerBase.java:761)
       at org.apache.catalina.core.ContainerBase.addChild(ContainerBase.java:741)
       at org.apache.catalina.core.StandardHost.addChild(StandardHost.java:553)
       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.tomcat.util.modeler.BaseModelMBean.invoke(BaseModelMBean.java:297)
       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:5310)
       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.tomcat.util.modeler.BaseModelMBean.invoke(BaseModelMBean.java:297)
       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.service.TomcatDeployer.performDeployInternal(TomcatDeployer.java:301)
       at org.jboss.web.tomcat.service.TomcatDeployer.performDeploy(TomcatDeployer.java:104)
       at org.jboss.web.AbstractWebDeployer.start(AbstractWebDeployer.java:375)
       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.GeneratedMethodAccessor9.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 $Proxy45.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.integration.jboss42.DeployerInterceptor.start(DeployerInterceptor.java:93)
       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 $Proxy46.start(Unknown Source)
       at org.jboss.deployment.MainDeployer.start(MainDeployer.java:1025)
       at org.jboss.deployment.MainDeployer.start(MainDeployer.java:1015)
       at org.jboss.deployment.MainDeployer.deploy(MainDeployer.java:819)
       at org.jboss.deployment.MainDeployer.deploy(MainDeployer.java:782)
       at sun.reflect.GeneratedMethodAccessor18.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 $Proxy9.deploy(Unknown Source)
       at org.jboss.deployment.scanner.URLDeploymentScanner.deploy(URLDeploymentScanner.java:421)
       at org.jboss.deployment.scanner.URLDeploymentScanner.scan(URLDeploymentScanner.java:610)
       at org.jboss.deployment.scanner.AbstractDeploymentScanner$ScannerThread.doScan(AbstractDeploymentScanner.java:263)
       at org.jboss.deployment.scanner.AbstractDeploymentScanner$ScannerThread.loop(AbstractDeploymentScanner.java:274)
       at org.jboss.deployment.scanner.AbstractDeploymentScanner$ScannerThread.run(AbstractDeploymentScanner.java:225)
      Caused by: java.lang.UnsupportedOperationException
       at com.sun.faces.config.ConfigureListener$InitFacesContext.getViewRoot(ConfigureListener.java:1690)
       at com.sun.faces.util.MessageFactory.getMessage(MessageFactory.java:113)
       at com.sun.faces.util.MessageUtils.getExceptionMessageString(MessageUtils.java:277)
       at com.sun.faces.config.ConfigureListener.configure(ConfigureListener.java:855)
       at com.sun.faces.config.ConfigureListener.configure(ConfigureListener.java:502)
       at com.sun.faces.config.ConfigureListener.contextInitialized(ConfigureListener.java:402)
      
      


      I dont have a clue what to do about it.


        • 1. Re: java.lang.UnsupportedOperationException
          Robin Newbie

          Sorry not 1.3.0.BETA; 2.0.0.BETA

          • 2. Re: java.lang.UnsupportedOperationException
            Robin Newbie

            Before I got that error I had some problem with drools. After I changed the drools-core and drools-compiler from 3.0.5 to drools-core-4.0.0.12865MR3 I got rid of those errors instead got the error described above.

            Was that a correct thing to do or is my new problems related to the new drools jar's?

            • 3. Re: java.lang.UnsupportedOperationException
              Pete Muir Master

              Post your web.xml and faces-config.xml

              • 4. Re: java.lang.UnsupportedOperationException
                Ricardo Memoria Novice

                After spending a long time trying to upgrade from one SEAM version to another I found a "quick" way:

                1 - Rename your eclipse project;
                2 - With the new SEAM version, use SEAM-GEN to generate a project with the same name of the previous one;
                3 - Copy the .xhtml pages, and source dir from the renamed project to the new one;
                4 - Copy manually any changes made in components.xml and pages.xml to the new project

                It saves me a lot of time.

                Regards,
                Ricardo Memoria

                • 5. Re: java.lang.UnsupportedOperationException
                  Gavin King Master

                  This error is almost always the result of some misconfiguration in web.xml or faces-config.xml. Check the Seam examples to see what these should now look like. (And read the migration guide.)

                  • 6. Re: java.lang.UnsupportedOperationException
                    Robin Newbie

                     

                    "pete.muir@jboss.org" wrote:
                    Post your web.xml and faces-config.xml


                    web.xml
                    
                    <?xml version="1.0" ?>
                    <web-app xmlns="http://java.sun.com/xml/ns/j2ee"
                     xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
                     xsi:schemaLocation="http://java.sun.com/xml/ns/j2ee http://java.sun.com/xml/ns/j2ee/web-app_2_4.xsd"
                     version="2.4">
                    
                     <!-- Ajax4jsf (must come first!) -->
                    
                     <filter>
                     <display-name>Ajax4jsf Filter</display-name>
                     <filter-name>ajax4jsf</filter-name>
                     <filter-class>org.ajax4jsf.Filter</filter-class>
                     </filter>
                    
                     <filter-mapping>
                     <filter-name>ajax4jsf</filter-name>
                     <url-pattern>*.seam</url-pattern>
                     </filter-mapping>
                    
                     <context-param>
                     <param-name>org.ajax4jsf.VIEW_HANDLERS</param-name>
                     <param-value>org.jboss.seam.ui.facelet.SeamFaceletViewHandler</param-value>
                     </context-param>
                    
                     <!-- Seam -->
                    
                     <listener>
                     <listener-class>org.jboss.seam.servlet.SeamListener</listener-class>
                     </listener>
                    
                     <filter>
                     <filter-name>Seam Filter</filter-name>
                     <filter-class>org.jboss.seam.web.SeamFilter</filter-class>
                     </filter>
                    
                     <filter-mapping>
                     <filter-name>Seam Filter</filter-name>
                     <url-pattern>/*</url-pattern>
                     </filter-mapping>
                    
                     <servlet>
                     <servlet-name>Seam Resource Servlet</servlet-name>
                     <servlet-class>org.jboss.seam.servlet.ResourceServlet</servlet-class>
                     </servlet>
                    
                     <servlet-mapping>
                     <servlet-name>Seam Resource Servlet</servlet-name>
                     <url-pattern>/seam/resource/*</url-pattern>
                     </servlet-mapping>
                    
                     <!-- Facelets development mode (disable in production) -->
                    
                     <context-param>
                     <param-name>facelets.DEVELOPMENT</param-name>
                     <param-value>true</param-value>
                     </context-param>
                    
                     <!-- 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>
                    
                     <servlet>
                     <servlet-name>Faces Servlet</servlet-name>
                     <servlet-class>javax.faces.webapp.FacesServlet</servlet-class>
                     <load-on-startup>1</load-on-startup>
                     </servlet>
                    
                     <servlet-mapping>
                     <servlet-name>Faces Servlet</servlet-name>
                     <url-pattern>*.seam</url-pattern>
                     </servlet-mapping>
                    
                    
                     <!-- Content Servlet -->
                    
                     <servlet>
                     <servlet-name>Content Servlet</servlet-name>
                     <servlet-class>com.omxgroup.lap.attachment.ContentServlet</servlet-class>
                     </servlet>
                    
                     <servlet-mapping>
                     <servlet-name>Content Servlet</servlet-name>
                     <url-pattern>/content/*</url-pattern>
                     </servlet-mapping>
                    
                     <!-- Security -->
                    
                     <security-constraint>
                     <display-name>Restrict raw XHTML Documents</display-name>
                     <web-resource-collection>
                     <web-resource-name>XHTML</web-resource-name>
                     <url-pattern>*.xhtml</url-pattern>
                     </web-resource-collection>
                     <auth-constraint>
                     <role-name>NONE</role-name>
                     </auth-constraint>
                     </security-constraint>
                    
                    </web-app>
                    
                    


                    faces-config:

                    <?xml version='1.0' encoding='UTF-8'?>
                    <faces-config version="1.2"
                     xmlns="http://java.sun.com/xml/ns/javaee"
                     xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
                     xsi:schemaLocation="http://java.sun.com/xml/ns/javaee
                     http://java.sun.com/xml/ns/javaee/web-facesconfig_2_0.xsd">
                    
                    
                     <application>
                     <el-resolver>org.jboss.seam.jsf.SeamELResolver</el-resolver>
                     <message-bundle>messages</message-bundle>
                     <!-- Disabled when using Ajax4JSF -->
                     <!--
                     <view-handler>org.jboss.seam.ui.facelet.SeamFaceletViewHandler</view-handler>
                     -->
                     </application>
                    
                     <!-- Seam transaction management -->
                     <lifecycle>
                     <phase-listener>org.jboss.seam.jsf.TransactionalSeamPhaseListener</phase-listener>
                     </lifecycle>
                    
                     <!-- No Seam transaction management -->
                     <!--
                     <lifecycle>
                     <phase-listener>org.jboss.seam.jsf.SeamPhaseListener</phase-listener>
                     </lifecycle>
                     -->
                    
                    </faces-config>
                    


                    • 7. Re: java.lang.UnsupportedOperationException
                      Robin Newbie

                      I have compared my web.xml and faces-config.xml to the ones in the example applications, but I dont seem to find the solution.

                      • 8. Re: java.lang.UnsupportedOperationException
                        Pete Muir Master

                        This is a horrendously useless error message, that is probably wrapping some classloading exception.

                        try

                        <filter>
                         <filter-name>Seam Filter</filter-name>
                         <filter-class>org.jboss.seam.servlet.SeamFilter</filter-class>
                        </filter>



                        • 9. Re: java.lang.UnsupportedOperationException
                          Robin Newbie

                          I did as rmemoria suggested and made a new project with seamgen and cut and pasted my code.

                          However I ran into another problem, when I open one of my xhtml pages in Internet Explorer everything works fine, however when I open the same page in Firefox it thinks it is an xml file and displays the code.

                          What have I missed?