9 Replies Latest reply on Jun 21, 2007 6:21 AM by mailmustu

    Which view handler JBoss 4.2 needs for facelets ?

    mailmustu

      Which view handler is to be used in JBoss 4.2 with Seam 1.2.1 for facelets ?

      org.jboss.seam.ui.facelet.SeamFaceletViewHandler
      or
      com.sun.facelets.FaceletViewHandler

      Please tell me what changes will have to be made in faces-config.xml and web.xml, and what jars are needed to use these view handler

      I read at Jboss forum:
      http://www.jboss.com/index.html?module=bb&op=viewtopic&p=3975563#3975563
      You should only use org.jboss.seam.ui.facelet.SeamFaceletViewHandler only if you are using Seam 1.1 and need the enhanced method binding support.


      Thanks,
      Mustafa

        • 1. Re: Which view handler JBoss 4.2 needs for facelets ?
          pmuir

          That post is old (pre 1.2). In 1.2.1.GA use either of the below (SeamFaceletViewHandler to get the EL extension). In 1.3 you only have FaceletViewHandler.

          • 2. Re: Which view handler JBoss 4.2 needs for facelets ?
            mailmustu

            hi Pete,

            Thanks for the quick reply.

            I get a "java.lang.UnsupportedOperationException" in both cases.

            Can you please tell me which jars "should be there" and "should not be there" (to avoid duplicate references) in the EAR.

            Also what changes my web.xml and faces-config.xml files need to use these view handlers.

            here is the exception snippet:

            06:49:12,132 INFO [TomcatDeployer] deploy, ctxPath=/FpRegistration, warUrl=.../tmp/deploy/tmp34553FpRegistration.ear-contents/FpRegistration-exp.war/
            06:49:12,960 ERROR [STDERR] java.lang.UnsupportedOperationException
            06:49:12,960 ERROR [STDERR] at com.sun.faces.config.ConfigureListener$InitFacesContext.getViewRoot(ConfigureListener.java:1690)
            06:49:12,960 ERROR [STDERR] at com.sun.faces.util.MessageFactory.getMessage(MessageFactory.java:113)
            06:49:12,960 ERROR [STDERR] at com.sun.faces.util.MessageUtils.getExceptionMessageString(MessageUtils.java:277)
            06:49:12,960 ERROR [STDERR] at com.sun.faces.util.Util.createInstance(Util.java:477)
            


            06:49:13,101 ERROR [[/FpRegistration]] 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)
            


            Thanks,
            Mustafa

            • 3. Re: Which view handler JBoss 4.2 needs for facelets ?
              pmuir

              Post the web.xml and faces-config.xml. You need the jars as for JBoss 4.0.5.GA (seam-gen a simple app to find out what), with the changes described by Michael http://www.michaelyuan.com/blog/2007/05/29/seam-book-examples-updated-to-jboss-as-420-ga/ You need to post full exceptions as well please.

              • 4. Re: Which view handler JBoss 4.2 needs for facelets ?
                mailmustu

                oh ok,
                I am using Jboss 4.2.0 with Seam 1.2.1
                I have removed the jars "el-ri.jar" and "el-api.jar" as mentioned by Michael
                I want to know which jars should be added for facelets support

                faces-config.xml:

                <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_1_2.xsd">
                
                 <application>
                 <view-handler>com.sun.facelets.FaceletViewHandler</view-handler>
                 <el-resolver>org.jboss.seam.jsf.SeamELResolver</el-resolver>
                 </application>
                
                 <lifecycle>
                <phase-listener>org.jboss.seam.jsf.SeamPhaseListener</phase-listener>
                 </lifecycle>
                
                </faces-config>
                


                web.xml:
                <?xml version="1.0" encoding="UTF-8"?>
                <web-app version="2.5" 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-app_2_5.xsd">
                
                 <!-- Seam Listener -->
                 <listener>
                 <listener-class>
                 org.jboss.seam.servlet.SeamListener
                 </listener-class>
                 </listener>
                
                 <!-- MyFaces Listener - remove for JBoss 4.2 -->
                 <!--
                 <listener>
                 <listener-class>org.apache.myfaces.webapp.StartupServletContextListener</listener-class>
                 </listener>
                 -->
                
                
                 <!-- JSF context params -->
                 <context-param>
                 <param-name>javax.faces.CONFIG_FILES</param-name>
                 <param-value>/WEB-INF/navigation.xml</param-value>
                 </context-param>
                
                 <context-param>
                 <param-name>javax.faces.STATE_SAVING_METHOD</param-name>
                 <param-value>client</param-value>
                 </context-param>
                
                 <context-param>
                 <param-name>facelets.DEVELOPMENT</param-name>
                 <param-value>true</param-value>
                 </context-param>
                
                 <context-param>
                 <param-name>javax.faces.DEFAULT_SUFFIX</param-name>
                 <param-value>.xhtml</param-value>
                 </context-param>
                
                
                
                 <!-- Seam Resource Servlet -->
                 <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>
                
                
                
                 <!-- Seam Filter -->
                 <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>
                
                
                
                 <!-- Faces Servlet -->
                 <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>
                
                </web-app>
                



                and here is the exception in server log:
                its humongous!.......but you asked for it ;)

                06:49:12,132 INFO [TomcatDeployer] deploy, ctxPath=/FpRegistration, warUrl=.../tmp/deploy/tmp34553FpRegistration.ear-contents/FpRegistration-exp.war/
                06:49:12,960 ERROR [STDERR] java.lang.UnsupportedOperationException
                06:49:12,960 ERROR [STDERR] at com.sun.faces.config.ConfigureListener$InitFacesContext.getViewRoot(ConfigureListener.java:1690)
                06:49:12,960 ERROR [STDERR] at com.sun.faces.util.MessageFactory.getMessage(MessageFactory.java:113)
                06:49:12,960 ERROR [STDERR] at com.sun.faces.util.MessageUtils.getExceptionMessageString(MessageUtils.java:277)
                06:49:12,960 ERROR [STDERR] at com.sun.faces.util.Util.createInstance(Util.java:477)
                06:49:12,960 ERROR [STDERR] at com.sun.faces.config.ConfigureListener.configure(ConfigureListener.java:671)
                06:49:12,960 ERROR [STDERR] at com.sun.faces.config.ConfigureListener.configure(ConfigureListener.java:503)
                06:49:12,960 ERROR [STDERR] at com.sun.faces.config.ConfigureListener.contextInitialized(ConfigureListener.java:402)
                06:49:12,960 ERROR [STDERR] at org.jboss.web.jsf.integration.config.JBossJSFConfigureListener.contextInitialized(JBossJSFConfigureListener.java:69)
                06:49:12,976 ERROR [STDERR] at org.apache.catalina.core.StandardContext.listenerStart(StandardContext.java:3854)
                06:49:12,976 ERROR [STDERR] at org.apache.catalina.core.StandardContext.start(StandardContext.java:4359)
                06:49:12,976 ERROR [STDERR] at org.apache.catalina.core.ContainerBase.addChildInternal(ContainerBase.java:761)
                06:49:12,976 ERROR [STDERR] at org.apache.catalina.core.ContainerBase.addChild(ContainerBase.java:741)
                06:49:12,976 ERROR [STDERR] at org.apache.catalina.core.StandardHost.addChild(StandardHost.java:553)
                06:49:12,976 ERROR [STDERR] at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
                06:49:12,976 ERROR [STDERR] at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39)
                06:49:12,991 ERROR [STDERR] at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
                06:49:12,991 ERROR [STDERR] at java.lang.reflect.Method.invoke(Method.java:585)
                06:49:12,991 ERROR [STDERR] at org.apache.tomcat.util.modeler.BaseModelMBean.invoke(BaseModelMBean.java:297)
                06:49:12,991 ERROR [STDERR] at org.jboss.mx.server.RawDynamicInvoker.invoke(RawDynamicInvoker.java:164)
                06:49:12,991 ERROR [STDERR] at org.jboss.mx.server.MBeanServerImpl.invoke(MBeanServerImpl.java:659)
                06:49:12,991 ERROR [STDERR] at org.apache.catalina.core.StandardContext.init(StandardContext.java:5310)
                06:49:12,991 ERROR [STDERR] at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
                06:49:12,991 ERROR [STDERR] at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39)
                06:49:12,991 ERROR [STDERR] at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
                06:49:12,991 ERROR [STDERR] at java.lang.reflect.Method.invoke(Method.java:585)
                06:49:12,991 ERROR [STDERR] at org.apache.tomcat.util.modeler.BaseModelMBean.invoke(BaseModelMBean.java:297)
                06:49:12,991 ERROR [STDERR] at org.jboss.mx.server.RawDynamicInvoker.invoke(RawDynamicInvoker.java:164)
                06:49:13,007 ERROR [STDERR] at org.jboss.mx.server.MBeanServerImpl.invoke(MBeanServerImpl.java:659)
                06:49:13,007 ERROR [STDERR] at org.jboss.web.tomcat.service.TomcatDeployer.performDeployInternal(TomcatDeployer.java:301)
                06:49:13,007 ERROR [STDERR] at org.jboss.web.tomcat.service.TomcatDeployer.performDeploy(TomcatDeployer.java:104)
                06:49:13,007 ERROR [STDERR] at org.jboss.web.AbstractWebDeployer.start(AbstractWebDeployer.java:375)
                06:49:13,007 ERROR [STDERR] at org.jboss.web.WebModule.startModule(WebModule.java:83)
                06:49:13,007 ERROR [STDERR] at org.jboss.web.WebModule.startService(WebModule.java:61)
                06:49:13,007 ERROR [STDERR] at org.jboss.system.ServiceMBeanSupport.jbossInternalStart(ServiceMBeanSupport.java:289)
                06:49:13,007 ERROR [STDERR] at org.jboss.system.ServiceMBeanSupport.jbossInternalLifecycle(ServiceMBeanSupport.java:245)
                06:49:13,023 ERROR [STDERR] at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
                06:49:13,023 ERROR [STDERR] at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39)
                06:49:13,023 ERROR [STDERR] at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
                06:49:13,023 ERROR [STDERR] at java.lang.reflect.Method.invoke(Method.java:585)
                06:49:13,023 ERROR [STDERR] at org.jboss.mx.interceptor.ReflectedDispatcher.invoke(ReflectedDispatcher.java:155)
                06:49:13,023 ERROR [STDERR] at org.jboss.mx.server.Invocation.dispatch(Invocation.java:94)
                06:49:13,023 ERROR [STDERR] at org.jboss.mx.server.Invocation.invoke(Invocation.java:86)
                06:49:13,023 ERROR [STDERR] at org.jboss.mx.server.AbstractMBeanInvoker.invoke(AbstractMBeanInvoker.java:264)
                06:49:13,023 ERROR [STDERR] at org.jboss.mx.server.MBeanServerImpl.invoke(MBeanServerImpl.java:659)
                06:49:13,023 ERROR [STDERR] at org.jboss.system.ServiceController$ServiceProxy.invoke(ServiceController.java:978)
                06:49:13,023 ERROR [STDERR] at $Proxy0.start(Unknown Source)
                06:49:13,023 ERROR [STDERR] at org.jboss.system.ServiceController.start(ServiceController.java:417)
                06:49:13,038 ERROR [STDERR] at sun.reflect.GeneratedMethodAccessor9.invoke(Unknown Source)
                06:49:13,038 ERROR [STDERR] at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
                06:49:13,038 ERROR [STDERR] at java.lang.reflect.Method.invoke(Method.java:585)
                06:49:13,038 ERROR [STDERR] at org.jboss.mx.interceptor.ReflectedDispatcher.invoke(ReflectedDispatcher.java:155)
                06:49:13,038 ERROR [STDERR] at org.jboss.mx.server.Invocation.dispatch(Invocation.java:94)
                06:49:13,038 ERROR [STDERR] at org.jboss.mx.server.Invocation.invoke(Invocation.java:86)
                06:49:13,038 ERROR [STDERR] at org.jboss.mx.server.AbstractMBeanInvoker.invoke(AbstractMBeanInvoker.java:264)
                06:49:13,038 ERROR [STDERR] at org.jboss.mx.server.MBeanServerImpl.invoke(MBeanServerImpl.java:659)
                06:49:13,038 ERROR [STDERR] at org.jboss.mx.util.MBeanProxyExt.invoke(MBeanProxyExt.java:210)
                06:49:13,038 ERROR [STDERR] at $Proxy45.start(Unknown Source)
                06:49:13,038 ERROR [STDERR] at org.jboss.web.AbstractWebContainer.start(AbstractWebContainer.java:466)
                06:49:13,038 ERROR [STDERR] at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
                06:49:13,038 ERROR [STDERR] at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39)
                06:49:13,038 ERROR [STDERR] at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
                06:49:13,054 ERROR [STDERR] at java.lang.reflect.Method.invoke(Method.java:585)
                06:49:13,054 ERROR [STDERR] at org.jboss.mx.interceptor.ReflectedDispatcher.invoke(ReflectedDispatcher.java:155)
                06:49:13,054 ERROR [STDERR] at org.jboss.mx.server.Invocation.dispatch(Invocation.java:94)
                06:49:13,054 ERROR [STDERR] at org.jboss.mx.interceptor.AbstractInterceptor.invoke(AbstractInterceptor.java:133)
                06:49:13,054 ERROR [STDERR] at org.jboss.mx.server.Invocation.invoke(Invocation.java:88)
                06:49:13,054 ERROR [STDERR] at org.jboss.mx.interceptor.ModelMBeanOperationInterceptor.invoke(ModelMBeanOperationInterceptor.java:142)
                06:49:13,054 ERROR [STDERR] at org.jboss.mx.interceptor.DynamicInterceptor.invoke(DynamicInterceptor.java:97)
                06:49:13,054 ERROR [STDERR] at org.jboss.system.InterceptorServiceMBeanSupport.invokeNext(InterceptorServiceMBeanSupport.java:238)
                06:49:13,054 ERROR [STDERR] at org.jboss.ws.integration.jboss42.DeployerInterceptor.start(DeployerInterceptor.java:93)
                06:49:13,054 ERROR [STDERR] at org.jboss.deployment.SubDeployerInterceptorSupport$XMBeanInterceptor.start(SubDeployerInterceptorSupport.java:188)
                06:49:13,070 ERROR [STDERR] at org.jboss.deployment.SubDeployerInterceptor.invoke(SubDeployerInterceptor.java:95)
                06:49:13,070 ERROR [STDERR] at org.jboss.mx.server.Invocation.invoke(Invocation.java:88)
                06:49:13,070 ERROR [STDERR] at org.jboss.mx.server.AbstractMBeanInvoker.invoke(AbstractMBeanInvoker.java:264)
                06:49:13,070 ERROR [STDERR] at org.jboss.mx.server.MBeanServerImpl.invoke(MBeanServerImpl.java:659)
                06:49:13,070 ERROR [STDERR] at org.jboss.mx.util.MBeanProxyExt.invoke(MBeanProxyExt.java:210)
                06:49:13,070 ERROR [STDERR] at $Proxy46.start(Unknown Source)
                06:49:13,070 ERROR [STDERR] at org.jboss.deployment.MainDeployer.start(MainDeployer.java:1025)
                06:49:13,070 ERROR [STDERR] at org.jboss.deployment.MainDeployer.start(MainDeployer.java:1015)
                06:49:13,070 ERROR [STDERR] at org.jboss.deployment.MainDeployer.deploy(MainDeployer.java:819)
                06:49:13,070 ERROR [STDERR] at org.jboss.deployment.MainDeployer.deploy(MainDeployer.java:782)
                06:49:13,070 ERROR [STDERR] at sun.reflect.GeneratedMethodAccessor17.invoke(Unknown Source)
                06:49:13,070 ERROR [STDERR] at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
                06:49:13,070 ERROR [STDERR] at java.lang.reflect.Method.invoke(Method.java:585)
                06:49:13,070 ERROR [STDERR] at org.jboss.mx.interceptor.ReflectedDispatcher.invoke(ReflectedDispatcher.java:155)
                06:49:13,070 ERROR [STDERR] at org.jboss.mx.server.Invocation.dispatch(Invocation.java:94)
                06:49:13,070 ERROR [STDERR] at org.jboss.mx.interceptor.AbstractInterceptor.invoke(AbstractInterceptor.java:133)
                06:49:13,070 ERROR [STDERR] at org.jboss.mx.server.Invocation.invoke(Invocation.java:88)
                06:49:13,085 ERROR [STDERR] at org.jboss.mx.interceptor.ModelMBeanOperationInterceptor.invoke(ModelMBeanOperationInterceptor.java:142)
                06:49:13,085 ERROR [STDERR] at org.jboss.mx.server.Invocation.invoke(Invocation.java:88)
                06:49:13,085 ERROR [STDERR] at org.jboss.mx.server.AbstractMBeanInvoker.invoke(AbstractMBeanInvoker.java:264)
                06:49:13,085 ERROR [STDERR] at org.jboss.mx.server.MBeanServerImpl.invoke(MBeanServerImpl.java:659)
                06:49:13,085 ERROR [STDERR] at org.jboss.mx.util.MBeanProxyExt.invoke(MBeanProxyExt.java:210)
                06:49:13,085 ERROR [STDERR] at $Proxy9.deploy(Unknown Source)
                06:49:13,085 ERROR [STDERR] at org.jboss.deployment.scanner.URLDeploymentScanner.deploy(URLDeploymentScanner.java:421)
                06:49:13,085 ERROR [STDERR] at org.jboss.deployment.scanner.URLDeploymentScanner.scan(URLDeploymentScanner.java:610)
                06:49:13,085 ERROR [STDERR] at org.jboss.deployment.scanner.AbstractDeploymentScanner$ScannerThread.doScan(AbstractDeploymentScanner.java:263)
                06:49:13,085 ERROR [STDERR] at org.jboss.deployment.scanner.AbstractDeploymentScanner$ScannerThread.loop(AbstractDeploymentScanner.java:274)
                06:49:13,085 ERROR [STDERR] at org.jboss.deployment.scanner.AbstractDeploymentScanner$ScannerThread.run(AbstractDeploymentScanner.java:225)
                06:49:13,101 ERROR [[/FpRegistration]] 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.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.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.GeneratedMethodAccessor17.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.util.Util.createInstance(Util.java:477)
                 at com.sun.faces.config.ConfigureListener.configure(ConfigureListener.java:671)
                 at com.sun.faces.config.ConfigureListener.configure(ConfigureListener.java:503)
                 at com.sun.faces.config.ConfigureListener.contextInitialized(ConfigureListener.java:402)
                 ... 92 more
                06:49:13,101 INFO [ServletContextListener] Welcome to Seam 1.2.1
                


                Thanks,
                Mustafa

                • 5. Re: Which view handler JBoss 4.2 needs for facelets ?
                  mailmustu

                  in essence it has something to do with "JBossJSFConfigureListener"

                  it says.....almost in english...

                  Exception sending context initialized event to listener instance of class
                  org.jboss.web.jsf.integration.config.JBossJSFConfigureListener
                  javax.faces.FacesException: java.lang.UnsupportedOperationException

                  I have following jars in my lib folder:
                  jboss-seam-ui.jar
                  jsf-api.jar
                  jsf-facelets.jar
                  jsf-impl.jar
                  jstl-1.1.0.jar
                  myfaces-api-1.1.4.jar
                  myfaces-impl-1.1.4.jar


                  do I need to add / romove any jars ?
                  Please let me know.

                  Thanks,
                  Mustafa

                  • 6. Re: Which view handler JBoss 4.2 needs for facelets ?
                    mailmustu

                    hi.....any idea why am I getting this exception ?

                    • 7. Re: Which view handler JBoss 4.2 needs for facelets ?
                      craig.barker

                      Hi, I had the same problem running 1.3.0 a1 on 4.2.

                      I upgraded the JSF RI to the latest version (jsf-1.2_04-b16-p02) and that gave me much more information on what was going wrong. Just drop the jars into #JBOSS_HOME#\server\default\deploy\jboss-web.deployer\jsf-libs

                      Once I did this it uncovered that I had a class not found on org.jboss.seam.jsf.SeamELResolver.

                      I dug some more and discovered that I needed to take out the line

                      <el-resolver>org.jboss.seam.jsf.SeamELResolver</el-resolver>


                      from faces-config.xml.

                      Now I don't know if you'll have the same root issue with 1.2.1 on 4.2 but if you do the first step it'll give you much more information to work with.

                      Good luck.

                      Craig

                      • 8. Re: Which view handler JBoss 4.2 needs for facelets ?
                        mailmustu

                        Thanks a lot craig , I will try that out.

                        • 9. Re: Which view handler JBoss 4.2 needs for facelets ?
                          mailmustu

                          I replaced jars jsf-api.jar and jsf-impl.jar in jsf-libs folder of my Jboss server
                          with new jars of "jsf-1.2-b20-FCS"

                          I also commented out "<el-resolver>org.jboss.seam.jsf.SeamELResolver</el-resolver>"

                          still i get same exception !