0 Replies Latest reply on Jul 9, 2015 1:11 PM by jonliu6

    The absolute uri: http://java.sun.com/jsf/html cannot be resolved when running JSF 1.0 application on Wildfly 8.1

    jonliu6

         

       

      I'm working on upgrading one of my applications from JSF 1.0 to 2.0. It runs on JBoss 4.0.3SP1 and I'm trying to make it run on Wildfly 8.1 final. After some struggles, I was able to get the application compiled and deployed to Wildfly but got this error when accessing the .jsp file.

      2015-07-09 07:40:08,600 ERROR [io.undertow.request] (default task-2) UT005022: Exception generating error page /errorpages/error.faces: org.apache.jasper.Jasper Exception: JBWEB004113: The absolute uri: http://java.sun.com/jsf/html cannot be resolved in either web.xml or the jar files deployed with this application at org.apache.jasper.compiler.DefaultErrorHandler.jspError(DefaultErrorHandler.java:53) [jastow-1.0.0.Final.jar:1.0.0.Final] at org.apache.jasper.compiler.ErrorDispatcher.jspError(ErrorDispatcher.java:147) [jastow-1.0.0.Final.jar:1.0.0.Final]

       

      I've read the following articles but still cannot fix the problem.

       

      http://stackoverflow.com/questions/22758645/jsf-1-2-on-wildfly-8-final-weld-core-jsf-is-still-referencing-jsf-2-2-api

      http://stackoverflow.com/questions/6322127/can-not-find-the-tag-library-descriptor-for-http-java-sun-com-jsf-facelets

      https://developer.jboss.org/wiki/StepsToAddAnyNewJSFImplementationOrVersionToWildFly

      https://developer.jboss.org/wiki/DesignOfWildFlyMulti-JSFFeature

       

      I also enabled org.jboss.jbossfaces.WAR_BUNDLES_JSF_IMPL in web.xml and disabled "weld" in Wildfly, and I put the following libs/files in /lib, /WEB-INF/lib. jsf-api.jar, jsf-impl.jar, jstl.jar, standard.jar, html_basic.tld, jsf_core.tld

      And, for JSTL, I tried different URLs, like: <%@ taglib uri="http://java.sun.com/jsf/html" prefix="h"%> or <%@ taglib uri="http://java.sun.com/jsp/jstl/html" prefix="h"%> or put the URL into ... instead of using "<%@taglib>"

      However, the problem cannot be resolved by the above steps.

      Is there anyone had the same problem can share some experience? I'd like to see if there is a possibility I can run the JSF 1.0 code on Wildfly?

      Thanks in advance!