1 Reply Latest reply on Feb 3, 2011 1:37 AM by Mark Paluch

    Is it the problem with JSF or Richfaces

    Shahbaz Ali Newbie

      Hi all,

       

      I am getting following exception when I first hit my applicaiton's JSF page. When i refresh the same page then no exception occurred. My application using :

       

      myfaces 1.2.5

      tomahawk12 1.1.9

      richfaces 3.3.3.Final

      tiles 2.0.5

       

      I was thinking it might be the issue with the Ajax4jsf Filter i defined in web.xml but i cant figure it out.. do you guys have any idea? any guesses?

       

      Thanks.

       

       

      SEVERE: Servlet.service() for servlet jsp threw exception
      java.lang.IllegalArgumentException: Component org.ajax4jsf.component.AjaxViewRoot is no javax.faces.component.html.HtmlForm
                at org.apache.myfaces.taglib.html.HtmlFormTag.setProperties(HtmlFormTag.java:189)
                at javax.faces.webapp.UIComponentClassicTagBase.findComponent(UIComponentClassicTagBase.java:1019)
                at javax.faces.webapp.UIComponentClassicTagBase.doStartTag(UIComponentClassicTagBase.java:434)
                at org.apache.jsp.jsp.document.documentMain_jsp._jspx_meth_h_005fform_005f0(documentMain_jsp.java:105)
                at org.apache.jsp.jsp.document.documentMain_jsp._jspService(documentMain_jsp.java:78)
                at org.apache.jasper.runtime.HttpJspBase.service(HttpJspBase.java:70)
                at javax.servlet.http.HttpServlet.service(HttpServlet.java:717)
                at org.apache.jasper.servlet.JspServletWrapper.service(JspServletWrapper.java:377)
                at org.apache.jasper.servlet.JspServlet.serviceJspFile(JspServlet.java:313)
                at org.apache.jasper.servlet.JspServlet.service(JspServlet.java:260)
                at javax.servlet.http.HttpServlet.service(HttpServlet.java:717)
                at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:290)
                at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:206)
                at org.apache.catalina.core.ApplicationDispatcher.invoke(ApplicationDispatcher.java:646)
                at org.apache.catalina.core.ApplicationDispatcher.processRequest(ApplicationDispatcher.java:436)
                at org.apache.catalina.core.ApplicationDispatcher.doForward(ApplicationDispatcher.java:374)
                at org.apache.catalina.core.ApplicationDispatcher.forward(ApplicationDispatcher.java:302)
                at org.apache.myfaces.context.servlet.ServletExternalContextImpl.dispatch(ServletExternalContextImpl.java:341)
                at org.apache.myfaces.application.jsp.JspViewHandlerImpl.buildView(JspViewHandlerImpl.java:486)
                at org.apache.myfaces.application.jsp.JspViewHandlerImpl.renderView(JspViewHandlerImpl.java:337)
                at org.apache.myfaces.tomahawk.application.jsp.JspTilesTwoViewHandlerImpl.renderView(JspTilesTwoViewHandlerImpl.java:139)
                at com.avanza.unison.config.LocaleResolverViewHandler.renderView(LocaleResolverViewHandler.java:76)
                at org.ajax4jsf.application.ViewHandlerWrapper.renderView(ViewHandlerWrapper.java:100)
                at org.ajax4jsf.application.AjaxViewHandler.renderView(AjaxViewHandler.java:176)
                at org.apache.myfaces.lifecycle.RenderResponseExecutor.execute(RenderResponseExecutor.java:41)
                at org.apache.myfaces.lifecycle.LifecycleImpl.render(LifecycleImpl.java:140)
                at javax.faces.webapp.FacesServlet.service(FacesServlet.java:155)
                at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:290)
                at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:206)
                at org.apache.myfaces.webapp.filter.ExtensionsFilter.doFilter(ExtensionsFilter.java:341)
                at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:235)
                at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:206)
                at org.ajax4jsf.webapp.BaseXMLFilter.doXmlFilter(BaseXMLFilter.java:206)
                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.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:235)
                at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:206)