10 Replies Latest reply on May 29, 2014 5:43 AM by Ferdinan Tolentino

    JSF 1.2 to JSF 2.x migration problem

    Ferdinan Tolentino Newbie

      Can someone help me on this. It seems like my JSF, RF and Seam components doesn't recognize upon migrating and running it on JbossAS7.
      I can successfully running it, but the problem is that it ONLY display the text and once I try to view-source on my browser it shows the actual code as is.

       

      Thanks,

      fftolentino

        • 1. Re: JSF 1.2 to JSF 2.x migration problem
          Farah Juma Novice

          What versions of RichFaces and Seam are being used?

          • 2. Re: JSF 1.2 to JSF 2.x migration problem
            Ferdinan Tolentino Newbie

            @Farah Juma,

             

            Right now Im using RF4 and Seam2.3 (migrated from RF3 and Seam 2.2).

            • 4. Re: JSF 1.2 to JSF 2.x migration problem
              Ferdinan Tolentino Newbie

              Yeah thanks im using those links as my reference. but i dont know why im having an issue like this. Like what ive said i run it successfully but its just like plain page with text.

              • 5. Re: JSF 1.2 to JSF 2.x migration problem
                Tomas Remes Expert

                Hi Ferdinan!

                Can you provide us more information? This is really insufficient to tell, what the issue is. How does your deployment look like? How does your web.xml, components.xml and possibly faces-config.xml look like? I guess it will be some basic issue like missing FacesServlet definition or something similar....but just guessing.

                • 6. Re: Re: JSF 1.2 to JSF 2.x migration problem
                  Ferdinan Tolentino Newbie

                  Hi @Tomas,

                   

                  Here's my screenshot.

                  And when i try to check the view-source code it gives me the actual code of my login.xhtml page.

                  Please see attached files for my components.xml, web.xml, faces-config.xml and jboss-deplyoment-structure.xml

                   

                  Thanks!

                  • 7. Re: Re: JSF 1.2 to JSF 2.x migration problem
                    Tomas Remes Expert

                    Hm a lot of things in web.xml...So you are trying to access login.seam and you got this for login.xhtml? Does your archive contains seam.properties file? I am also not 100% sure about using javax.faces.DISABLE_FACELET_JSF_VIEWHANDLER parameter.

                    • 8. Re: JSF 1.2 to JSF 2.x migration problem
                      Ferdinan Tolentino Newbie

                      Hi @Tomas,

                       

                      When i try to remove/comment this out.

                      <context-param>
                                <param-name>javax.faces.DISABLE_FACELET_JSF_VIEWHANDLER</param-name>

                                <param-value>true</param-value>

                      </context-param>

                      I encounter an error like this.

                      15:16:24,055 ERROR [org.jboss.seam.exception.Exceptions] (http-localhost/127.0.0.1:8080-1) handled and logged exception: javax.servlet.ServletException: No enum const class org.richfaces.component.Positioning.top-right

                          at javax.faces.webapp.FacesServlet.service(FacesServlet.java:606) [jboss-jsf-api_2.1_spec-2.0.4.Final.jar:2.0.4.Final]

                          at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:329) [jbossweb-7.0.17.Final.jar:]

                          at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:248) [jbossweb-7.0.17.Final.jar:]

                          at org.jboss.seam.servlet.SeamFilter$FilterChainImpl.doFilter(SeamFilter.java:83) [jboss-seam.jar:2.3.1.Final]

                          at org.jboss.seam.web.LoggingFilter.doFilter(LoggingFilter.java:60) [jboss-seam.jar:2.3.1.Final]

                          at org.jboss.seam.servlet.SeamFilter$FilterChainImpl.doFilter(SeamFilter.java:69) [jboss-seam.jar:2.3.1.Final]

                          at org.jboss.seam.servlet.SeamFilter$FilterChainImpl.doFilter(SeamFilter.java:73) [jboss-seam.jar:2.3.1.Final]

                          at org.jboss.seam.web.IdentityFilter.doFilter(IdentityFilter.java:40) [jboss-seam.jar:2.3.1.Final]

                          at org.jboss.seam.servlet.SeamFilter$FilterChainImpl.doFilter(SeamFilter.java:69) [jboss-seam.jar:2.3.1.Final]

                          at org.jboss.seam.web.MultipartFilter.doFilter(MultipartFilter.java:90) [jboss-seam.jar:2.3.1.Final]

                          at org.jboss.seam.servlet.SeamFilter$FilterChainImpl.doFilter(SeamFilter.java:69) [jboss-seam.jar:2.3.1.Final]

                          at org.jboss.seam.web.ExceptionFilter.doFilter(ExceptionFilter.java:64) [jboss-seam.jar:2.3.1.Final]

                          at org.jboss.seam.servlet.SeamFilter$FilterChainImpl.doFilter(SeamFilter.java:69) [jboss-seam.jar:2.3.1.Final]

                          at org.jboss.seam.web.RedirectFilter.doFilter(RedirectFilter.java:45) [jboss-seam.jar:2.3.1.Final]

                          at org.jboss.seam.servlet.SeamFilter$FilterChainImpl.doFilter(SeamFilter.java:69) [jboss-seam.jar:2.3.1.Final]

                          at org.jboss.seam.web.HotDeployFilter.doFilter(HotDeployFilter.java:53) [jboss-seam.jar:2.3.1.Final]

                          at org.jboss.seam.servlet.SeamFilter$FilterChainImpl.doFilter(SeamFilter.java:69) [jboss-seam.jar:2.3.1.Final]

                          at org.jboss.seam.web.CharacterEncodingFilter.doFilter(CharacterEncodingFilter.java:42) [jboss-seam.jar:2.3.1.Final]

                          at org.jboss.seam.servlet.SeamFilter$FilterChainImpl.doFilter(SeamFilter.java:69) [jboss-seam.jar:2.3.1.Final]

                          at org.jboss.seam.servlet.SeamFilter.doFilter(SeamFilter.java:158) [jboss-seam.jar:2.3.1.Final]

                          at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:280) [jbossweb-7.0.17.Final.jar:]

                          at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:248) [jbossweb-7.0.17.Final.jar:]

                          at org.apache.catalina.core.StandardWrapperValve.invoke(StandardWrapperValve.java:275) [jbossweb-7.0.17.Final.jar:]

                          at org.apache.catalina.core.StandardContextValve.invoke(StandardContextValve.java:161) [jbossweb-7.0.17.Final.jar:]

                          at org.apache.catalina.authenticator.AuthenticatorBase.invoke(AuthenticatorBase.java:397) [jbossweb-7.0.17.Final.jar:]

                          at org.jboss.as.jpa.interceptor.WebNonTxEmCloserValve.invoke(WebNonTxEmCloserValve.java:50) [jboss-as-jpa-7.1.3.Final.jar:7.1.3.Final]

                          at org.jboss.as.web.security.SecurityContextAssociationValve.invoke(SecurityContextAssociationValve.java:165) [jboss-as-web-7.1.3.Final.jar:7.1.3.Final]

                          at org.apache.catalina.core.StandardHostValve.invoke(StandardHostValve.java:155) [jbossweb-7.0.17.Final.jar:]

                          at org.apache.catalina.valves.ErrorReportValve.invoke(ErrorReportValve.java:102) [jbossweb-7.0.17.Final.jar:]

                          at org.apache.catalina.core.StandardEngineValve.invoke(StandardEngineValve.java:109) [jbossweb-7.0.17.Final.jar:]

                          at org.apache.catalina.connector.CoyoteAdapter.service(CoyoteAdapter.java:372) [jbossweb-7.0.17.Final.jar:]

                          at org.apache.coyote.http11.Http11Processor.process(Http11Processor.java:877) [jbossweb-7.0.17.Final.jar:]

                          at org.apache.coyote.http11.Http11Protocol$Http11ConnectionHandler.process(Http11Protocol.java:679) [jbossweb-7.0.17.Final.jar:]

                          at org.apache.tomcat.util.net.JIoEndpoint$Worker.run(JIoEndpoint.java:931) [jbossweb-7.0.17.Final.jar:]

                          at java.lang.Thread.run(Thread.java:662) [rt.jar:1.6.0_38]

                      Caused by: java.lang.IllegalArgumentException: No enum const class org.richfaces.component.Positioning.top-right

                          at java.lang.Enum.valueOf(Enum.java:196) [rt.jar:1.6.0_38]

                          at org.jboss.el.lang.ELSupport.coerceToEnum(ELSupport.java:154) [jboss-el.jar:1.0_02.CR6]

                          at org.jboss.el.lang.ELSupport.coerceToType(ELSupport.java:345) [jboss-el.jar:1.0_02.CR6]

                          at org.jboss.el.ExpressionFactoryImpl.coerceToType(ExpressionFactoryImpl.java:46) [jboss-el.jar:1.0_02.CR6]

                          at org.jboss.seam.el.SeamExpressionFactory.coerceToType(SeamExpressionFactory.java:70) [jboss-seam.jar:2.3.1.Final]

                          at com.sun.faces.facelets.tag.BeanPropertyTagRule$LiteralPropertyMetadata.applyMetadata(BeanPropertyTagRule.java:88) [jsf-impl-2.1.11-jbossorg-3.jar:]

                          at com.sun.faces.facelets.tag.MetadataImpl.applyMetadata(MetadataImpl.java:81) [jsf-impl-2.1.11-jbossorg-3.jar:]

                          at javax.faces.view.facelets.MetaTagHandler.setAttributes(MetaTagHandler.java:129) [jboss-jsf-api_2.1_spec-2.0.4.Final.jar:2.0.4.Final]

                          at javax.faces.view.facelets.DelegatingMetaTagHandler.setAttributes(DelegatingMetaTagHandler.java:102) [jboss-jsf-api_2.1_spec-2.0.4.Final.jar:2.0.4.Final]

                          at org.richfaces.view.facelets.html.BehaviorsAddingComponentHandlerWrapper.setAttributes(BehaviorsAddingComponentHandlerWrapper.java:113) [richfaces-components-ui-4.3.5.Final.jar:4.3.5.Final]

                          at com.sun.faces.facelets.tag.jsf.ComponentTagHandlerDelegateImpl.doNewComponentActions(ComponentTagHandlerDelegateImpl.java:424) [jsf-impl-2.1.11-jbossorg-3.jar:]

                          at com.sun.faces.facelets.tag.jsf.ComponentTagHandlerDelegateImpl.apply(ComponentTagHandlerDelegateImpl.java:171) [jsf-impl-2.1.11-jbossorg-3.jar:]

                          at javax.faces.view.facelets.DelegatingMetaTagHandler.apply(DelegatingMetaTagHandler.java:120) [jboss-jsf-api_2.1_spec-2.0.4.Final.jar:2.0.4.Final]

                          at javax.faces.view.facelets.CompositeFaceletHandler.apply(CompositeFaceletHandler.java:98) [jboss-jsf-api_2.1_spec-2.0.4.Final.jar:2.0.4.Final]

                          at javax.faces.view.facelets.DelegatingMetaTagHandler.applyNextHandler(DelegatingMetaTagHandler.java:137) [jboss-jsf-api_2.1_spec-2.0.4.Final.jar:2.0.4.Final]

                          at org.richfaces.view.facelets.html.BehaviorsAddingComponentHandlerWrapper.applyNextHandler(BehaviorsAddingComponentHandlerWrapper.java:53) [richfaces-components-ui-4.3.5.Final.jar:4.3.5.Final]

                          at com.sun.faces.facelets.tag.jsf.ComponentTagHandlerDelegateImpl.apply(ComponentTagHandlerDelegateImpl.java:196) [jsf-impl-2.1.11-jbossorg-3.jar:]

                          at javax.faces.view.facelets.DelegatingMetaTagHandler.apply(DelegatingMetaTagHandler.java:120) [jboss-jsf-api_2.1_spec-2.0.4.Final.jar:2.0.4.Final]

                          at javax.faces.view.facelets.CompositeFaceletHandler.apply(CompositeFaceletHandler.java:98) [jboss-jsf-api_2.1_spec-2.0.4.Final.jar:2.0.4.Final]

                          at javax.faces.view.facelets.DelegatingMetaTagHandler.applyNextHandler(DelegatingMetaTagHandler.java:137) [jboss-jsf-api_2.1_spec-2.0.4.Final.jar:2.0.4.Final]

                          at org.richfaces.view.facelets.html.BehaviorsAddingComponentHandlerWrapper.applyNextHandler(BehaviorsAddingComponentHandlerWrapper.java:53) [richfaces-components-ui-4.3.5.Final.jar:4.3.5.Final]

                          at com.sun.faces.facelets.tag.jsf.ComponentTagHandlerDelegateImpl.apply(ComponentTagHandlerDelegateImpl.java:196) [jsf-impl-2.1.11-jbossorg-3.jar:]

                          at javax.faces.view.facelets.DelegatingMetaTagHandler.apply(DelegatingMetaTagHandler.java:120) [jboss-jsf-api_2.1_spec-2.0.4.Final.jar:2.0.4.Final]

                          at javax.faces.view.facelets.CompositeFaceletHandler.apply(CompositeFaceletHandler.java:98) [jboss-jsf-api_2.1_spec-2.0.4.Final.jar:2.0.4.Final]

                          at javax.faces.view.facelets.DelegatingMetaTagHandler.applyNextHandler(DelegatingMetaTagHandler.java:137) [jboss-jsf-api_2.1_spec-2.0.4.Final.jar:2.0.4.Final]

                          at org.richfaces.view.facelets.html.BehaviorsAddingComponentHandlerWrapper.applyNextHandler(BehaviorsAddingComponentHandlerWrapper.java:53) [richfaces-components-ui-4.3.5.Final.jar:4.3.5.Final]

                          at com.sun.faces.facelets.tag.jsf.ComponentTagHandlerDelegateImpl.apply(ComponentTagHandlerDelegateImpl.java:196) [jsf-impl-2.1.11-jbossorg-3.jar:]

                          at javax.faces.view.facelets.DelegatingMetaTagHandler.apply(DelegatingMetaTagHandler.java:120) [jboss-jsf-api_2.1_spec-2.0.4.Final.jar:2.0.4.Final]

                          at javax.faces.view.facelets.CompositeFaceletHandler.apply(CompositeFaceletHandler.java:98) [jboss-jsf-api_2.1_spec-2.0.4.Final.jar:2.0.4.Final]

                          at javax.faces.view.facelets.DelegatingMetaTagHandler.applyNextHandler(DelegatingMetaTagHandler.java:137) [jboss-jsf-api_2.1_spec-2.0.4.Final.jar:2.0.4.Final]

                          at org.richfaces.view.facelets.html.BehaviorsAddingComponentHandlerWrapper.applyNextHandler(BehaviorsAddingComponentHandlerWrapper.java:53) [richfaces-components-ui-4.3.5.Final.jar:4.3.5.Final]

                          at com.sun.faces.facelets.tag.jsf.ComponentTagHandlerDelegateImpl.apply(ComponentTagHandlerDelegateImpl.java:196) [jsf-impl-2.1.11-jbossorg-3.jar:]

                          at javax.faces.view.facelets.DelegatingMetaTagHandler.apply(DelegatingMetaTagHandler.java:120) [jboss-jsf-api_2.1_spec-2.0.4.Final.jar:2.0.4.Final]

                          at javax.faces.view.facelets.DelegatingMetaTagHandler.applyNextHandler(DelegatingMetaTagHandler.java:137) [jboss-jsf-api_2.1_spec-2.0.4.Final.jar:2.0.4.Final]

                          at org.richfaces.view.facelets.html.BehaviorsAddingComponentHandlerWrapper.applyNextHandler(BehaviorsAddingComponentHandlerWrapper.java:53) [richfaces-components-ui-4.3.5.Final.jar:4.3.5.Final]

                          at com.sun.faces.facelets.tag.jsf.ComponentTagHandlerDelegateImpl.apply(ComponentTagHandlerDelegateImpl.java:196) [jsf-impl-2.1.11-jbossorg-3.jar:]

                          at javax.faces.view.facelets.DelegatingMetaTagHandler.apply(DelegatingMetaTagHandler.java:120) [jboss-jsf-api_2.1_spec-2.0.4.Final.jar:2.0.4.Final]

                          at javax.faces.view.facelets.CompositeFaceletHandler.apply(CompositeFaceletHandler.java:98) [jboss-jsf-api_2.1_spec-2.0.4.Final.jar:2.0.4.Final]

                          at com.sun.faces.facelets.tag.ui.DefineHandler.applyDefinition(DefineHandler.java:107) [jsf-impl-2.1.11-jbossorg-3.jar:]

                          at com.sun.faces.facelets.tag.ui.CompositionHandler.apply(CompositionHandler.java:178) [jsf-impl-2.1.11-jbossorg-3.jar:]

                          at com.sun.faces.facelets.impl.DefaultFaceletContext$TemplateManager.apply(DefaultFaceletContext.java:395) [jsf-impl-2.1.11-jbossorg-3.jar:]

                          at com.sun.faces.facelets.impl.DefaultFaceletContext.includeDefinition(DefaultFaceletContext.java:366) [jsf-impl-2.1.11-jbossorg-3.jar:]

                          at com.sun.faces.facelets.tag.ui.InsertHandler.apply(InsertHandler.java:112) [jsf-impl-2.1.11-jbossorg-3.jar:]

                          at javax.faces.view.facelets.CompositeFaceletHandler.apply(CompositeFaceletHandler.java:98) [jboss-jsf-api_2.1_spec-2.0.4.Final.jar:2.0.4.Final]

                          at javax.faces.view.facelets.DelegatingMetaTagHandler.applyNextHandler(DelegatingMetaTagHandler.java:137) [jboss-jsf-api_2.1_spec-2.0.4.Final.jar:2.0.4.Final]

                          at org.richfaces.view.facelets.html.BehaviorsAddingComponentHandlerWrapper.applyNextHandler(BehaviorsAddingComponentHandlerWrapper.java:53) [richfaces-components-ui-4.3.5.Final.jar:4.3.5.Final]

                          at com.sun.faces.facelets.tag.jsf.ComponentTagHandlerDelegateImpl.apply(ComponentTagHandlerDelegateImpl.java:196) [jsf-impl-2.1.11-jbossorg-3.jar:]

                          at javax.faces.view.facelets.DelegatingMetaTagHandler.apply(DelegatingMetaTagHandler.java:120) [jboss-jsf-api_2.1_spec-2.0.4.Final.jar:2.0.4.Final]

                          at javax.faces.view.facelets.CompositeFaceletHandler.apply(CompositeFaceletHandler.java:98) [jboss-jsf-api_2.1_spec-2.0.4.Final.jar:2.0.4.Final]

                          at com.sun.faces.facelets.tag.jsf.core.ViewHandler.apply(ViewHandler.java:182) [jsf-impl-2.1.11-jbossorg-3.jar:]

                          at com.sun.faces.facelets.compiler.NamespaceHandler.apply(NamespaceHandler.java:93) [jsf-impl-2.1.11-jbossorg-3.jar:]

                          at javax.faces.view.facelets.CompositeFaceletHandler.apply(CompositeFaceletHandler.java:98) [jboss-jsf-api_2.1_spec-2.0.4.Final.jar:2.0.4.Final]

                          at com.sun.faces.facelets.compiler.EncodingHandler.apply(EncodingHandler.java:86) [jsf-impl-2.1.11-jbossorg-3.jar:]

                          at com.sun.faces.facelets.impl.DefaultFacelet.include(DefaultFacelet.java:308) [jsf-impl-2.1.11-jbossorg-3.jar:]

                          at com.sun.faces.facelets.impl.DefaultFacelet.include(DefaultFacelet.java:367) [jsf-impl-2.1.11-jbossorg-3.jar:]

                          at com.sun.faces.facelets.impl.DefaultFacelet.include(DefaultFacelet.java:346) [jsf-impl-2.1.11-jbossorg-3.jar:]

                          at com.sun.faces.facelets.impl.DefaultFaceletContext.includeFacelet(DefaultFaceletContext.java:199) [jsf-impl-2.1.11-jbossorg-3.jar:]

                          at com.sun.faces.facelets.tag.ui.CompositionHandler.apply(CompositionHandler.java:155) [jsf-impl-2.1.11-jbossorg-3.jar:]

                          at com.sun.faces.facelets.compiler.NamespaceHandler.apply(NamespaceHandler.java:93) [jsf-impl-2.1.11-jbossorg-3.jar:]

                          at com.sun.faces.facelets.compiler.EncodingHandler.apply(EncodingHandler.java:86) [jsf-impl-2.1.11-jbossorg-3.jar:]

                          at com.sun.faces.facelets.impl.DefaultFacelet.apply(DefaultFacelet.java:152) [jsf-impl-2.1.11-jbossorg-3.jar:]

                          at com.sun.faces.application.view.FaceletViewHandlingStrategy.buildView(FaceletViewHandlingStrategy.java:838) [jsf-impl-2.1.11-jbossorg-3.jar:]

                          at com.sun.faces.lifecycle.RenderResponsePhase.execute(RenderResponsePhase.java:100) [jsf-impl-2.1.11-jbossorg-3.jar:]

                          at com.sun.faces.lifecycle.Phase.doPhase(Phase.java:101) [jsf-impl-2.1.11-jbossorg-3.jar:]

                          at com.sun.faces.lifecycle.LifecycleImpl.render(LifecycleImpl.java:139) [jsf-impl-2.1.11-jbossorg-3.jar:]

                          at javax.faces.webapp.FacesServlet.service(FacesServlet.java:594) [jboss-jsf-api_2.1_spec-2.0.4.Final.jar:2.0.4.Final]

                          ... 34 more

                      • 9. Re: JSF 1.2 to JSF 2.x migration problem
                        Tomas Remes Expert

                        I don't know RichFaces much, but it looks like that for 4.x is it org.richfaces.component.Positioning.topRight.

                        • 10. Re: JSF 1.2 to JSF 2.x migration problem
                          Ferdinan Tolentino Newbie

                          "Does your archive contains seam.properties file?"

                          -- Yes, but its just an empty file.