Eclipse - Cannot find facelet tag library for uri http://java.sun.com/jsf/html

In my index.xhtml , I have a namespace defined as xmlns:h="http://java.sun.com/jsf/html" . The server at this URL indicates that the page was not found .

Do you know where the page has moved?

Eclipse Information

  Version: Indigo Release
 Build id: 20110615-0604
+4
source share
4 answers

To solve this problem, this is what I did:

  1. Close the eclipse project
      2. Open the eclipse project
      3. Right click on the project
      4. Click on Validate

    => The (false) warnings are gone.
+14
source

The XML taglib namespace identifier does not point to a real web resource or anything else. It just points to the same value as the <namespace> .taglib.xml XML taglib file in question in the path to the run-time classes, which in the case of JSF tags (and other others) is simply an HTTP URL . In the case of Mojarra, you can find the ad in the /com/sun/faces/metadata/taglib/html_basic.taglib.xml file in the jsf-impl.jar .

If you run into problems with reference to JSF HTML tags, the reason lies elsewhere.

+5
source

The previous answers were helpful to me. Here I provide an alternative way to solve this problem. I fixed this problem by adding jar primefaces-[version].jar to the WEB-INF/lib .

+2
source
 <%@taglib uri="http://java.sun.com/jsf/html" prefix="h"%> 

jsf-api.jar and jsf-impl.jar jar in your lib.

+1
source

All Articles