jsp - JSF HelloWorld The requested resource () is not available -


I am trying to create a HellowWorld app with JSF. I create dynamic web products, choose JSF v 2.0 for configuration , Then disable the library configuration then I add jsf-api.jar, jsf-impl.jar, jstl-api.jar and jstl-impl.jar to my lib folder. Then make simple japp and when trying to start it, I'm not available to get the requested resource (). I think this web. There is something with the mapping of Faces Servlet in Xml.

You must ensure that FacesServlet is passed to web.xml and the request URL (which appears in the browser address bar) & lt; Url-pattern & gt; Matches to FacesServlet .

For example, if you have a simple.jsp file present in the webcontent and FacesServlet to & lt; Url-pattern & gt; * .jsf of , then you have to open it.

  & lt; Servlet & gt; & Lt; Servlet-name & gt; FacesServlet & lt; / Servlet-name & gt; & Lt; Servlet category & gt; Javax.faces.webapp.FacesServlet & lt; / Servlet category & gt; & Lt; Load-On-Startup & gt; 1 & lt; / Load-on-startup & gt; & Lt; / Servlet & gt; & Lt; Servlet-mapping & gt; & Lt; Servlet-name & gt; FacesServlet & lt; / Servlet-name & gt; & Lt; URL pattern & gt; * JSF & Lt; / Url pattern & gt; & Lt; / Servlet-mapping & gt;   Unrelated  for a solid problem: Why would you ever like the legacy / frustrated JSP compared to your modern heir, which is standard visualization technology after JSF 2.0?   

Comments