2 Replies Latest reply on Feb 4, 2009 2:17 PM by Rogerio Gaioso

    NoSuchMethodError: org.richfaces.taglib.SpacerTag.setWidth(S

    Rogerio Gaioso Newbie

      I have an application with Richfaces 3.1.6-GA and MyFaces 1.2.2 which had some problems with rendering of some components. I chose to do the upgrade to 3.3.0-GA Richfaces and, according to the documentation, for MyFaces 1.2.5.

      When trying to initialize the Tomcat-6.0.16, which previously carried only normal, began to display the following error:

      javax.faces.FacesException: javax.servlet.ServletException: java.lang.NoSuchMethodError: org.richfaces.taglib.SpacerTag.setWidth(Ljava/lang/String;)V
      at org.apache.myfaces.context.servlet.ServletExternalContextImpl.dispatch(ServletExternalContextImpl.java:347)
      at org.apache.myfaces.application.jsp.JspViewHandlerImpl.buildView(JspViewHandlerImpl.java:486)
      at org.apache.myfaces.application.jsp.JspViewHandlerImpl.renderView(JspViewHandlerImpl.java:337)
      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.ajax4jsf.webapp.BaseXMLFilter.doXmlFilter(BaseXMLFilter.java:178)
      at org.ajax4jsf.webapp.BaseFilter.handleRequest(BaseFilter.java:290)
      at org.ajax4jsf.webapp.BaseFilter.processUploadsAndHandleRequest(BaseFilter.java:390)
      at org.ajax4jsf.webapp.BaseFilter.doFilter(BaseFilter.java:517)
      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:233)
      at org.apache.catalina.core.StandardContextValve.invoke(StandardContextValve.java:175)
      at org.apache.catalina.authenticator.AuthenticatorBase.invoke(AuthenticatorBase.java:433)
      at org.apache.catalina.core.StandardHostValve.invoke(StandardHostValve.java:128)
      at org.apache.catalina.valves.ErrorReportValve.invoke(ErrorReportValve.java:102)
      at org.apache.catalina.core.StandardEngineValve.invoke(StandardEngineValve.java:109)
      at org.apache.catalina.connector.CoyoteAdapter.service(CoyoteAdapter.java:286)
      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:447)
      at java.lang.Thread.run(Unknown Source)

      Caused by: org.apache.jasper.JasperException: javax.servlet.ServletException: java.lang.NoSuchMethodError: org.richfaces.taglib.SpacerTag.setWidth(Ljava/lang/String;)V
      at org.apache.jasper.servlet.JspServletWrapper.handleJspException(JspServletWrapper.java:522)
      at org.apache.jasper.servlet.JspServletWrapper.service(JspServletWrapper.java:398)
      at org.apache.jasper.servlet.JspServlet.serviceJspFile(JspServlet.java:337)
      at org.apache.jasper.servlet.JspServlet.service(JspServlet.java:266)
      at javax.servlet.http.HttpServlet.service(HttpServlet.java:803)
      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:630)
      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)
      ... 26 more

      Caused by: javax.servlet.ServletException: java.lang.NoSuchMethodError: org.richfaces.taglib.SpacerTag.setWidth(Ljava/lang/String;)V
      at org.apache.jasper.runtime.PageContextImpl.doHandlePageException(PageContextImpl.java:850)
      at org.apache.jasper.runtime.PageContextImpl.handlePageException(PageContextImpl.java:779)
      at org.apache.jsp.jsp.index_jsp._jspService(index_jsp.java:293)
      at org.apache.jasper.runtime.HttpJspBase.service(HttpJspBase.java:70)
      at javax.servlet.http.HttpServlet.service(HttpServlet.java:803)
      at org.apache.jasper.servlet.JspServletWrapper.service(JspServletWrapper.java:374)
      ... 36 more

      Caused by: java.lang.NoSuchMethodError: org.richfaces.taglib.SpacerTag.setWidth(Ljava/lang/String;)V
      at org.apache.jsp.jsp.index_jsp._jspx_meth_rich_005fspacer_005f0(index_jsp.java:363)
      at org.apache.jsp.jsp.index_jsp._jspx_meth_h_005fform_005f0(index_jsp.java:320)
      at org.apache.jsp.jsp.index_jsp._jspService(index_jsp.java:243)
      ... 39 more


      I tried with other combinations of Richfaces and MyFaces. What can I do to eliminate this error ?