7 Replies Latest reply on Dec 21, 2009 9:12 PM by Rafael Ribeiro

    Upgrade to JSF 2

    guy bashan Apprentice

      Hi,


      I upgrade to JSF 2.


      After submit the login form, I got this exception:



      HTTP Status 500 -
      
      type Exception report
      
      message
      
      description The server encountered an internal error () that prevented it from fulfilling this request.
      
      exception
      
      javax.servlet.ServletException
           javax.faces.webapp.FacesServlet.service(FacesServlet.java:325)
           org.tuckey.web.filters.urlrewrite.RuleChain.handleRewrite(RuleChain.java:164)
           org.tuckey.web.filters.urlrewrite.RuleChain.doRules(RuleChain.java:141)
           org.tuckey.web.filters.urlrewrite.UrlRewriter.processRequest(UrlRewriter.java:90)
           org.tuckey.web.filters.urlrewrite.UrlRewriteFilter.doFilter(UrlRewriteFilter.java:417)
           org.jboss.seam.web.RewriteFilter.process(RewriteFilter.java:98)
           org.jboss.seam.web.RewriteFilter.doFilter(RewriteFilter.java:57)
           org.jboss.seam.servlet.SeamFilter$FilterChainImpl.doFilter(SeamFilter.java:69)
           org.jboss.seam.web.IdentityFilter.doFilter(IdentityFilter.java:40)
           org.jboss.seam.servlet.SeamFilter$FilterChainImpl.doFilter(SeamFilter.java:69)
           org.jboss.seam.web.MultipartFilter.doFilter(MultipartFilter.java:90)
           org.jboss.seam.servlet.SeamFilter$FilterChainImpl.doFilter(SeamFilter.java:69)
           org.jboss.seam.web.ExceptionFilter.doFilter(ExceptionFilter.java:64)
           org.jboss.seam.servlet.SeamFilter$FilterChainImpl.doFilter(SeamFilter.java:69)
           org.jboss.seam.web.RedirectFilter.doFilter(RedirectFilter.java:45)
           org.jboss.seam.servlet.SeamFilter$FilterChainImpl.doFilter(SeamFilter.java:69)
           org.ajax4jsf.webapp.BaseXMLFilter.doXmlFilter(BaseXMLFilter.java:178)
           org.ajax4jsf.webapp.BaseFilter.handleRequest(BaseFilter.java:290)
           org.ajax4jsf.webapp.BaseFilter.processUploadsAndHandleRequest(BaseFilter.java:388)
           org.ajax4jsf.webapp.BaseFilter.doFilter(BaseFilter.java:515)
           org.jboss.seam.web.Ajax4jsfFilter.doFilter(Ajax4jsfFilter.java:56)
           org.jboss.seam.servlet.SeamFilter$FilterChainImpl.doFilter(SeamFilter.java:69)
           org.jboss.seam.web.LoggingFilter.doFilter(LoggingFilter.java:60)
           org.jboss.seam.servlet.SeamFilter$FilterChainImpl.doFilter(SeamFilter.java:69)
           com.snaptale.ui.view.util.SessionIdFilter.doFilter(SessionIdFilter.java:75)
           org.jboss.seam.servlet.SeamFilter$FilterChainImpl.doFilter(SeamFilter.java:69)
           org.jboss.seam.servlet.SeamFilter.doFilter(SeamFilter.java:158)
      
      root cause
      
      java.lang.UnsupportedOperationException
           javax.faces.context.FacesContext.getAttributes(FacesContext.java:141)
           com.sun.faces.util.RequestStateManager.get(RequestStateManager.java:194)
           com.sun.faces.util.Util.getFacesMapping(Util.java:564)
           com.sun.faces.application.view.MultiViewHandler.derivePhysicalViewId(MultiViewHandler.java:483)
           com.sun.faces.application.view.MultiViewHandler.createView(MultiViewHandler.java:160)
           org.jboss.seam.jsf.SeamViewHandler.createView(SeamViewHandler.java:68)
           com.sun.facelets.FaceletViewHandler.createView(FaceletViewHandler.java:799)
           org.ajax4jsf.application.ViewHandlerWrapper.createView(ViewHandlerWrapper.java:79)
           org.ajax4jsf.application.AjaxViewHandler.createView(AjaxViewHandler.java:93)
           com.sun.faces.application.NavigationHandlerImpl.handleNavigation(NavigationHandlerImpl.java:195)
           org.jboss.seam.jsf.SeamNavigationHandler.handleNavigation(SeamNavigationHandler.java:44)
           org.apache.myfaces.custom.redirectTracker.RedirectTrackerNavigationHandler.handleNavigation(RedirectTrackerNavigationHandler.java:40)
           com.sun.faces.application.ActionListenerImpl.processAction(ActionListenerImpl.java:130)
           javax.faces.component.UICommand.broadcast(UICommand.java:315)
           org.ajax4jsf.component.AjaxViewRoot.processEvents(AjaxViewRoot.java:324)
           org.ajax4jsf.component.AjaxViewRoot.broadcastEvents(AjaxViewRoot.java:299)
           org.ajax4jsf.component.AjaxViewRoot.processPhase(AjaxViewRoot.java:256)
           org.ajax4jsf.component.AjaxViewRoot.processApplication(AjaxViewRoot.java:469)
           com.sun.faces.lifecycle.InvokeApplicationPhase.execute(InvokeApplicationPhase.java:82)
           com.sun.faces.lifecycle.Phase.doPhase(Phase.java:101)
           com.sun.faces.lifecycle.LifecycleImpl.execute(LifecycleImpl.java:118)
           javax.faces.webapp.FacesServlet.service(FacesServlet.java:312)
           org.tuckey.web.filters.urlrewrite.RuleChain.handleRewrite(RuleChain.java:164)
           org.tuckey.web.filters.urlrewrite.RuleChain.doRules(RuleChain.java:141)
           org.tuckey.web.filters.urlrewrite.UrlRewriter.processRequest(UrlRewriter.java:90)
           org.tuckey.web.filters.urlrewrite.UrlRewriteFilter.doFilter(UrlRewriteFilter.java:417)
           org.jboss.seam.web.RewriteFilter.process(RewriteFilter.java:98)
           org.jboss.seam.web.RewriteFilter.doFilter(RewriteFilter.java:57)
           org.jboss.seam.servlet.SeamFilter$FilterChainImpl.doFilter(SeamFilter.java:69)
           org.jboss.seam.web.IdentityFilter.doFilter(IdentityFilter.java:40)
           org.jboss.seam.servlet.SeamFilter$FilterChainImpl.doFilter(SeamFilter.java:69)
           org.jboss.seam.web.MultipartFilter.doFilter(MultipartFilter.java:90)
           org.jboss.seam.servlet.SeamFilter$FilterChainImpl.doFilter(SeamFilter.java:69)
           org.jboss.seam.web.ExceptionFilter.doFilter(ExceptionFilter.java:64)
           org.jboss.seam.servlet.SeamFilter$FilterChainImpl.doFilter(SeamFilter.java:69)
           org.jboss.seam.web.RedirectFilter.doFilter(RedirectFilter.java:45)
           org.jboss.seam.servlet.SeamFilter$FilterChainImpl.doFilter(SeamFilter.java:69)
           org.ajax4jsf.webapp.BaseXMLFilter.doXmlFilter(BaseXMLFilter.java:178)
           org.ajax4jsf.webapp.BaseFilter.handleRequest(BaseFilter.java:290)
           org.ajax4jsf.webapp.BaseFilter.processUploadsAndHandleRequest(BaseFilter.java:388)
           org.ajax4jsf.webapp.BaseFilter.doFilter(BaseFilter.java:515)
           org.jboss.seam.web.Ajax4jsfFilter.doFilter(Ajax4jsfFilter.java:56)
           org.jboss.seam.servlet.SeamFilter$FilterChainImpl.doFilter(SeamFilter.java:69)
           org.jboss.seam.web.LoggingFilter.doFilter(LoggingFilter.java:60)
           org.jboss.seam.servlet.SeamFilter$FilterChainImpl.doFilter(SeamFilter.java:69)
           com.snaptale.ui.view.util.SessionIdFilter.doFilter(SessionIdFilter.java:75)
           org.jboss.seam.servlet.SeamFilter$FilterChainImpl.doFilter(SeamFilter.java:69)
           org.jboss.seam.servlet.SeamFilter.doFilter(SeamFilter.java:158)
      
      note The full stack trace of the root cause is available in the Apache Tomcat/6.0.20 logs.
      Apache Tomcat/6.0.20



      Any ideas?