1 Reply Latest reply on Jan 2, 2011 11:32 PM by Janakiram Narla

    The page isn't redirecting properly

    Janakiram Narla Newbie
      Hi Everybody,


        Can anyone help me in solving the below issue. I am getting the below exception when i try to access any .xhtml page.





      Exception:-

      INFO: Added Library from: jar:file:/C:/jboss-4.2.2.GA/server/default/deploy/mobeeadmin.war/WEB-INF/lib/jboss-seam-excel.jar!/META-INF/seam-excel.taglib.xml
      15:24:47,000 ERROR [STDERR] Dec 28, 2010 3:24:47 PM com.sun.facelets.compiler.TagLibraryConfig loadImplicit
      INFO: Added Library from: jar:file:/C:/jboss-4.2.2.GA/server/default/deploy/mobeeadmin.war/WEB-INF/lib/jboss-seam-mail.jar!/META-INF/seam-mail.taglib.xml
      15:24:47,004 ERROR [STDERR] Dec 28, 2010 3:24:47 PM com.sun.facelets.compiler.TagLibraryConfig loadImplicit
      INFO: Added Library from: jar:file:/C:/jboss-4.2.2.GA/server/default/deploy/mobeeadmin.war/WEB-INF/lib/jboss-seam-pdf.jar!/META-INF/seam-pdf.taglib.xml
      15:24:47,008 ERROR [STDERR] Dec 28, 2010 3:24:47 PM com.sun.facelets.compiler.TagLibraryConfig loadImplicit
      INFO: Added Library from: jar:file:/C:/jboss-4.2.2.GA/server/default/deploy/mobeeadmin.war/WEB-INF/lib/jboss-seam-rss.jar!/META-INF/seam-rss.taglib.xml
      15:24:47,029 ERROR [STDERR] Dec 28, 2010 3:24:47 PM com.sun.facelets.compiler.TagLibraryConfig loadImplicit
      INFO: Added Library from: jar:file:/C:/jboss-4.2.2.GA/server/default/deploy/mobeeadmin.war/WEB-INF/lib/jboss-seam-ui.jar!/META-INF/s.taglib.xml
      15:24:47,055 ERROR [STDERR] Dec 28, 2010 3:24:47 PM com.sun.facelets.compiler.TagLibraryConfig loadImplicit
      INFO: Added Library from: jar:file:/C:/jboss-4.2.2.GA/server/default/deploy/mobeeadmin.war/WEB-INF/lib/jsf-facelets.jar!/META-INF/jsf-core.taglib.xml
      15:24:47,062 ERROR [STDERR] Dec 28, 2010 3:24:47 PM com.sun.facelets.compiler.TagLibraryConfig loadImplicit
      INFO: Added Library from: jar:file:/C:/jboss-4.2.2.GA/server/default/deploy/mobeeadmin.war/WEB-INF/lib/jsf-facelets.jar!/META-INF/jsf-html.taglib.xml
      15:24:47,077 ERROR [STDERR] Dec 28, 2010 3:24:47 PM com.sun.facelets.compiler.TagLibraryConfig loadImplicit
      INFO: Added Library from: jar:file:/C:/jboss-4.2.2.GA/server/default/deploy/mobeeadmin.war/WEB-INF/lib/jsf-facelets.jar!/META-INF/jsf-ui.taglib.xml
      15:24:47,092 ERROR [STDERR] Dec 28, 2010 3:24:47 PM com.sun.facelets.compiler.TagLibraryConfig loadImplicit
      INFO: Added Library from: jar:file:/C:/jboss-4.2.2.GA/server/default/deploy/mobeeadmin.war/WEB-INF/lib/jsf-facelets.jar!/META-INF/jstl-core.taglib.xml
      15:24:47,099 ERROR [STDERR] Dec 28, 2010 3:24:47 PM com.sun.facelets.compiler.TagLibraryConfig loadImplicit
      INFO: Added Library from: jar:file:/C:/jboss-4.2.2.GA/server/default/deploy/mobeeadmin.war/WEB-INF/lib/jsf-facelets.jar!/META-INF/jstl-fn.taglib.xml
      15:24:47,136 ERROR [STDERR] Dec 28, 2010 3:24:47 PM com.sun.facelets.compiler.TagLibraryConfig loadImplicit
      INFO: Added Library from: jar:file:/C:/jboss-4.2.2.GA/server/default/deploy/mobeeadmin.war/WEB-INF/lib/richfaces-ui-3.3.2.GA.jar!/META-INF/a4j.taglib.xml
      15:24:47,205 ERROR [STDERR] Dec 28, 2010 3:24:47 PM com.sun.facelets.compiler.TagLibraryConfig loadImplicit
      INFO: Added Library from: jar:file:/C:/jboss-4.2.2.GA/server/default/deploy/mobeeadmin.war/WEB-INF/lib/richfaces-ui-3.3.2.GA.jar!/META-INF/rich.taglib.xml
      15:24:47,210 ERROR [STDERR] Dec 28, 2010 3:24:47 PM com.sun.facelets.compiler.TagLibraryConfig loadImplicit
      INFO: Added Library from: jar:file:/C:/jboss-4.2.2.GA/server/default/deploy/mobeeadmin.war/WEB-INF/lib/richfaces-ui-3.3.2.GA.jar!/META-INF/jsp.taglib.xml
      15:24:47,219 ERROR [STDERR] Dec 28, 2010 3:24:47 PM com.sun.facelets.compiler.TagLibraryConfig loadImplicit
      INFO: Added Library from: jar:file:/C:/jboss-4.2.2.GA/server/default/deploy/mobeeadmin.war/WEB-INF/lib/richfaces-ui-3.3.2.GA.jar!/META-INF/richfaces.taglib.xml
      15:24:47,226 ERROR [STDERR] Dec 28, 2010 3:24:47 PM com.sun.facelets.compiler.TagLibraryConfig loadImplicit
      INFO: Added Library from: jar:file:/C:/jboss-4.2.2.GA/server/default/deploy/mobeeadmin.war/WEB-INF/lib/richfaces-ui-3.3.2.GA.jar!/META-INF/ajax4jsf.taglib.xml
      15:24:48,305 ERROR [STDERR] Dec 28, 2010 3:24:48 PM com.sun.facelets.FaceletViewHandler handleRenderException
      SEVERE: Error Rendering View[/home.xhtml]
      java.lang.NullPointerException
           at javax.faces.component.UIComponentBase$AttributesMap.put(UIComponentBase.java:1605)
           at javax.faces.component.UIComponentBase$AttributesMap.put(UIComponentBase.java:1499)
           at org.ajax4jsf.taglib.html.facelets.KeepAliveHandler.apply(KeepAliveHandler.java:80)
           at com.sun.facelets.tag.CompositeFaceletHandler.apply(CompositeFaceletHandler.java:47)
           at com.sun.facelets.tag.ui.CompositionHandler.apply(CompositionHandler.java:119)
           at com.sun.facelets.compiler.NamespaceHandler.apply(NamespaceHandler.java:49)
           at com.sun.facelets.compiler.EncodingHandler.apply(EncodingHandler.java:25)
           at com.sun.facelets.impl.DefaultFacelet.include(DefaultFacelet.java:248)
           at com.sun.facelets.impl.DefaultFacelet.include(DefaultFacelet.java:294)
           at com.sun.facelets.impl.DefaultFacelet.include(DefaultFacelet.java:273)
           at com.sun.facelets.impl.DefaultFaceletContext.includeFacelet(DefaultFaceletContext.java:140)
           at com.sun.facelets.tag.ui.IncludeHandler.apply(IncludeHandler.java:65)
           at com.sun.facelets.tag.CompositeFaceletHandler.apply(CompositeFaceletHandler.java:47)
           at com.sun.facelets.compiler.NamespaceHandler.apply(NamespaceHandler.java:49)
           at com.sun.facelets.tag.CompositeFaceletHandler.apply(CompositeFaceletHandler.java:47)
           at com.sun.facelets.compiler.EncodingHandler.apply(EncodingHandler.java:25)
           at com.sun.facelets.impl.DefaultFacelet.include(DefaultFacelet.java:248)
           at com.sun.facelets.impl.DefaultFacelet.include(DefaultFacelet.java:294)
           at com.sun.facelets.impl.DefaultFacelet.include(DefaultFacelet.java:273)
           at com.sun.facelets.impl.DefaultFaceletContext.includeFacelet(DefaultFaceletContext.java:140)
           at com.sun.facelets.tag.ui.CompositionHandler.apply(CompositionHandler.java:113)
           at com.sun.facelets.compiler.NamespaceHandler.apply(NamespaceHandler.java:49)
           at com.sun.facelets.compiler.EncodingHandler.apply(EncodingHandler.java:25)
           at com.sun.facelets.impl.DefaultFacelet.apply(DefaultFacelet.java:95)
           at com.sun.facelets.FaceletViewHandler.buildView(FaceletViewHandler.java:524)
           at com.sun.facelets.FaceletViewHandler.renderView(FaceletViewHandler.java:567)
           at org.ajax4jsf.application.ViewHandlerWrapper.renderView(ViewHandlerWrapper.java:100)
           at org.ajax4jsf.application.AjaxViewHandler.renderView(AjaxViewHandler.java:176)
           at com.sun.faces.lifecycle.RenderResponsePhase.execute(RenderResponsePhase.java:106)
           at com.sun.faces.lifecycle.LifecycleImpl.phase(LifecycleImpl.java:251)
           at com.sun.faces.lifecycle.LifecycleImpl.render(LifecycleImpl.java:144)
           at javax.faces.webapp.FacesServlet.service(FacesServlet.java:245)
           at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:290)
           at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:206)
           at org.jboss.seam.servlet.SeamFilter$FilterChainImpl.doFilter(SeamFilter.java:83)
           at org.jboss.seam.web.IdentityFilter.doFilter(IdentityFilter.java:40)
           at org.jboss.seam.servlet.SeamFilter$FilterChainImpl.doFilter(SeamFilter.java:69)
           at org.jboss.seam.web.MultipartFilter.doFilter(MultipartFilter.java:90)
           at org.jboss.seam.servlet.SeamFilter$FilterChainImpl.doFilter(SeamFilter.java:69)
           at org.jboss.seam.web.ExceptionFilter.doFilter(ExceptionFilter.java:64)
           at org.jboss.seam.servlet.SeamFilter$FilterChainImpl.doFilter(SeamFilter.java:69)
           at org.jboss.seam.web.RedirectFilter.doFilter(RedirectFilter.java:45)
           at org.jboss.seam.servlet.SeamFilter$FilterChainImpl.doFilter(SeamFilter.java:69)
           at org.ajax4jsf.webapp.BaseXMLFilter.doXmlFilter(BaseXMLFilter.java:178)
           at org.ajax4jsf.webapp.BaseFilter.handleRequest(BaseFilter.java:290)
           at org.ajax4jsf.webapp.BaseFilter.processUploadsAndHandleRequest(BaseFilter.java:388)
           at org.ajax4jsf.webapp.BaseFilter.doFilter(BaseFilter.java:515)
           at org.jboss.seam.web.Ajax4jsfFilter.doFilter(Ajax4jsfFilter.java:56)
           at org.jboss.seam.servlet.SeamFilter$FilterChainImpl.doFilter(SeamFilter.java:69)
           at org.jboss.seam.web.LoggingFilter.doFilter(LoggingFilter.java:60)
           at org.jboss.seam.servlet.SeamFilter$FilterChainImpl.doFilter(SeamFilter.java:69)
           at org.jboss.seam.web.HotDeployFilter.doFilter(HotDeployFilter.java:53)
           at org.jboss.seam.servlet.SeamFilter$FilterChainImpl.doFilter(SeamFilter.java:69)
           at org.jboss.seam.servlet.SeamFilter.doFilter(SeamFilter.java:158)
           at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:235)
           at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:206)
           at org.jboss.web.tomcat.filters.ReplyHeaderFilter.doFilter(ReplyHeaderFilter.java:96)
           at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:235)
           at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:206)
           at org.apache.catalina.core.StandardWrapperValve.invoke(StandardWrapperValve.java:230)
           at org.apache.catalina.core.StandardContextValve.invoke(StandardContextValve.java:175)
           at org.jboss.web.tomcat.security.SecurityAssociationValve.invoke(SecurityAssociationValve.java:179)
           at org.apache.catalina.authenticator.AuthenticatorBase.invoke(AuthenticatorBase.java:432)
           at org.jboss.web.tomcat.security.JaccContextValve.invoke(JaccContextValve.java:84)
           at org.apache.catalina.core.StandardHostValve.invoke(StandardHostValve.java:127)
           at org.apache.catalina.valves.ErrorReportValve.invoke(ErrorReportValve.java:102)
           at org.jboss.web.tomcat.service.jca.CachedConnectionValve.invoke(CachedConnectionValve.java:157)
           at org.apache.catalina.core.StandardEngineValve.invoke(StandardEngineValve.java:109)
           at org.apache.catalina.connector.CoyoteAdapter.service(CoyoteAdapter.java:262)
           at org.apache.coyote.http11.Http11Processor.process(Http11Processor.java:844)
           at org.apache.coyote.http11.Http11Protocol$Http11ConnectionHandler.process(Http11Protocol.java:583)
           at org.apache.tomcat.util.net.JIoEndpoint$Worker.run(JIoEndpoint.java:446)
           at java.lang.Thread.run(Thread.java:619)
      15:24:48,306 WARN  [lifecycle] executePhase(RENDER_RESPONSE 6,com.sun.faces.context.FacesContextImpl@1fc5681) threw exception
      java.lang.NullPointerException
           at javax.faces.component.UIComponentBase$AttributesMap.put(UIComponentBase.java:1605)
           at javax.faces.component.UIComponentBase$AttributesMap.put(UIComponentBase.java:1499)
           at org.ajax4jsf.taglib.html.facelets.KeepAliveHandler.apply(KeepAliveHandler.java:80)
           at com.sun.facelets.tag.CompositeFaceletHandler.apply(CompositeFaceletHandler.java:47)
           at com.sun.facelets.tag.ui.CompositionHandler.apply(CompositionHandler.java:119)
           at com.sun.facelets.compiler.NamespaceHandler.apply(NamespaceHandler.java:49)
           at com.sun.facelets.compiler.EncodingHandler.apply(EncodingHandler.java:25)
           at com.sun.facelets.impl.DefaultFacelet.include(DefaultFacelet.java:248)
           at com.sun.facelets.impl.DefaultFacelet.include(DefaultFacelet.java:294)
           at com.sun.facelets.impl.DefaultFacelet.include(DefaultFacelet.java:273)
           at com.sun.facelets.impl.DefaultFaceletContext.includeFacelet(DefaultFaceletContext.java:140)
           at com.sun.facelets.tag.ui.IncludeHandler.apply(IncludeHandler.java:65)
           at com.sun.facelets.tag.CompositeFaceletHandler.apply(CompositeFaceletHandler.java:47)






      components.xml file
      --------------------


      <?xml version="1.0" encoding="UTF-8"?>
      <components xmlns="http://jboss.com/products/seam/components"
      xmlns:async="http://jboss.com/products/seam/async"
      xmlns:core="http://jboss.com/products/seam/core"
      xmlns:drools="http://jboss.com/products/seam/drools"
      xmlns:mail="http://jboss.com/products/seam/mail"
      xmlns:persistence="http://jboss.com/products/seam/persistence"
      xmlns:security="http://jboss.com/products/seam/security"
      xmlns:web="http://jboss.com/products/seam/web"
      xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:schemaLocation="http://jboss.com/products/seam/core http://jboss.com/products/seam/core-2.1.xsd                  http://jboss.com/products/seam/persistence http://jboss.com/products/seam/persistence-2.1.xsd                  http://jboss.com/products/seam/drools http://jboss.com/products/seam/drools-2.1.xsd                  http://jboss.com/products/seam/bpm http://jboss.com/products/seam/bpm-2.1.xsd                  http://jboss.com/products/seam/security http://jboss.com/products/seam/security-2.1.xsd                  http://jboss.com/products/seam/mail http://jboss.com/products/seam/mail-2.1.xsd                  http://jboss.com/products/seam/web http://jboss.com/products/seam/web-2.1.xsd                  http://jboss.com/products/seam/components http://jboss.com/products/seam/components-2.1.xsd http://jboss.com/products/seam/async http://jboss.com/products/seam/async-2.1.xsd">
      <core:init debug="true" jndi-pattern="@jndiPattern@"/>
      <core:manager concurrent-request-timeout="2000"
        conversation-id-parameter="cid" conversation-timeout="1200000" parent-conversation-id-parameter="pid"/>

      <persistence:entity-manager-factory installed="@seamBootstrapsPu@"
        name="entityManagerFactory" persistence-unit-name="mobeeadmin"/>
      <persistence:managed-persistence-context auto-create="true"
        entity-manager-factory="@seamEmfRef@" name="entityManager" persistence-unit-jndi-name="@puJndiName@"/>

      <async:quartz-dispatcher/>
      <security:identity authenticate-method="#{authenticator.authenticate}"/>



      <mail:mail-session host="localhost" port="25"/>

      </components>

      and faces-config.xml page
      --------------------------




      <?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_1_2.xsd">

         <application>
            <locale-config>
               <default-locale>en</default-locale>
               <supported-locale>bg</supported-locale>
               <supported-locale>de</supported-locale>
               <supported-locale>en</supported-locale>
               <supported-locale>fr</supported-locale>
               <supported-locale>it</supported-locale>
               <supported-locale>tr</supported-locale>
            </locale-config>
            <view-handler>com.sun.facelets.FaceletViewHandler</view-handler>
         </application>
        
         <managed-bean>
                <managed-bean-name>skinBean</managed-bean-name>
                <managed-bean-class>
                     com.manam.mobee.fwk.ui.looknfeel.SkinController
                </managed-bean-class>
                <managed-bean-scope>session</managed-bean-scope>
           </managed-bean>

      </faces-config>



      i am using sesm2.1.2 and richfaces3.3.2.Please anyone help me to solve the above issue.is there anything wrong with configurations?

        • 1. Re: The page isn't redirecting properly
          Janakiram Narla Newbie

                    i could able to solve the above problem.the problem occurred because of no name annotation to user entity(name(user)).



                     
          name(user)-- if i put user as component name then i am not getting exception while accessing page.Once i change the component name(user) to something else then i am getting exception.




          can any one explain any dependency on component name.