0 Replies Latest reply on Nov 11, 2009 8:09 AM by sv kap

    Illegal view ID .xhtml/page.xhtml.  The ID must begin with /

    sv kap Newbie

      Hello.

      I was using IceFaces but because of some annoying issues I decided to go with RichFaces. I am using facelets and I replaced all IceFaces tags with appropriate RichFaces or JSF tags but I cannot open a single page. I am getting the following exception:


      javax.servlet.ServletException: Illegal view ID .xhtml/page.xhtml. The ID must begin with /
      javax.faces.webapp.FacesServlet.service(FacesServlet.java:277)
      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)

      root cause

      java.lang.IllegalArgumentException: Illegal view ID .xhtml/page.xhtml. The ID must begin with /
      com.sun.faces.application.ViewHandlerImpl.getActionURL(ViewHandlerImpl.java:655)
      com.sun.facelets.FaceletViewHandler.getActionURL(FaceletViewHandler.java:654)
      com.sun.facelets.FaceletViewHandler.handleFaceletNotFound(FaceletViewHandler.java:543)
      com.sun.facelets.FaceletViewHandler.renderView(FaceletViewHandler.java:499)
      org.ajax4jsf.application.ViewHandlerWrapper.renderView(ViewHandlerWrapper.java:100)
      org.ajax4jsf.application.AjaxViewHandler.renderView(AjaxViewHandler.java:176)
      com.sun.faces.lifecycle.RenderResponsePhase.execute(RenderResponsePhase.java:110)
      com.sun.faces.lifecycle.Phase.doPhase(Phase.java:100)
      com.sun.faces.lifecycle.LifecycleImpl.render(LifecycleImpl.java:139)
      javax.faces.webapp.FacesServlet.service(FacesServlet.java:266)
      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)


      All my xhtml files are placed under WebContent/xhtml folder.