Hello Everyone,
I'm trying to install JSF 1.2 for the first time.
I came accross installation instructions for JSF1.1 but not for JSF1.2
http://java.sun.com/javaee/javaserverfaces/docs/Installation.html
do the same instructions apply for JSF 1.2?
Here's my environment settings:
- Upgraded from Tomcat 5.5 to Tomcat 6.0.x (fresh install)
- Changed CATALINA_HOME to point to Tomcat 6.0.x installation folder
IDE NetBeans 5.5 - comes with JSF 1.1 and JSTL 1.1 by default. I disabled those default JAR files.
Downloaded JSF1.2 and moved jsf-impl.jar and jsf-api.jar to my projects WEB-INF/lib folder
List of all JAR files in the project's lib folder:
antlr-2.7.5.jar
cglib-nodep-2.2_beta1.jar
commons-collections-3.2.jar
dom4j-1.6.1.jar
hibernate3.jar
hsqldb.jar
jsf-api.jar
jsf-impl.jar
jstl-1.2.jar
jta-1_0_1B-classes.jar
log4j-1.2.14.jar
~~~~~~~~~~~~~~~~~~~~~~~~~~
JavaSE 6
The tld folder has:
html_basic.tld
jsf_core.tld
web.xml has:
<?xml version="1.0" encoding="UTF-8"?>
<web-app xmlns="http://java.sun.com/xml/ns/javaee" version="2.5" metadata-complete="true">
<context-param>
<param-name>com.sun.faces.verifyObjects</param-name>
<param-value>false</param-value>
</context-param>
<context-param>
<param-name>com.sun.faces.validateXml</param-name>
<param-value>true</param-value>
</context-param>
<context-param>
<param-name>javax.faces.STATE_SAVING_METHOD</param-name>
<param-value>client</param-value>
</context-param>
<servlet>
<servlet-name>Faces Servlet</servlet-name>
<servlet-class>javax.faces.webapp.FacesServlet</servlet-class>
<load-on-startup>1</load-on-startup>
</servlet>
<servlet-mapping>
<servlet-name>Faces Servlet</servlet-name>
<url-pattern>/faces/*</url-pattern>
</servlet-mapping>
<session-config>
<session-timeout>
30
</session-timeout>
</session-config>
<welcome-file-list>
<welcome-file>
index.jsp
</welcome-file>
</welcome-file-list>
<taglib>
<taglib-uri>http://java.sun.com/jsf/core</taglib-uri>
<tablig-location>/WEB-INF/tld/jsf_core.tld</tablig-location>
</taglib>
<taglib>
<taglib-uri>http://java.sun.com/jsf/html</taglib-uri>
<tablig-location>/WEB-INF/tld/html_basic.tld</tablig-location>
</taglib>
</web-app>
I think I've provided all the relevant information, if I've missed anything please let me know.
So with the above configuration I get this error message when I try to load this JSP page:
org.apache.jasper.JasperException: The absolute uri: http://java.sun.com/jsf/core cannot be resolved in either web.xml or the jar files deployed with this application
<%@page contentType="text/html"%>
<%@page pageEncoding="UTF-8"%>
<%@ taglib prefix="f" uri="http://java.sun.com/jsf/core" %>
<%@ taglib prefix="h" uri="http://java.sun.com/jsf/html" %>
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN"
"http://www.w3.org/TR/html4/loose.dtd">
<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
<title>JSP Page</title>
</head>
<body>
<f:view>
<h1><h:outputText value="JavaServer Faces" /></h1>
</f:view>
</body>
</html>
Any help is appreciated.