Skip to Main Content

Java EE (Java Enterprise Edition) General Discussion

Announcement

For appeals, questions and feedback about Oracle Forums, please email oracle-forums-moderators_us@oracle.com. Technical questions should be asked in the appropriate category. Thank you!

how to install jsf

843844Jul 12 2007 — edited Jul 13 2007
hi all .
i using eclipse 3.3 and tomcat 5.5 to work with jsf. First, i create a project with jsf 1.1 support and copy : jsf-api.jar, jsf-impl.jar , jstl.jar and standar.jar to /WEB-INF/lib . this is my web.xml
<?xml version="1.0" encoding="UTF-8"?>
<web-app id="WebApp_ID" version="2.4" 
xmlns="http://java.sun.com/xml/ns/j2ee" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
 xsi:schemaLocation="http://java.sun.com/xml/ns/j2ee http://java.sun.com/xml/ns/j2ee/web-app_2_4.xsd">

	<display-name>
	webfaces</display-name>
	<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>
	<welcome-file-list>
		<welcome-file>index.html</welcome-file>
		<welcome-file>index.htm</welcome-file>
		<welcome-file>index.jsp</welcome-file>
		<welcome-file>default.html</welcome-file>
		<welcome-file>default.htm</welcome-file>
		<welcome-file>default.jsp</welcome-file>
	</welcome-file-list>
</web-app>
try to run a jsp file (without any jsf tag) , i take this :
HTTP Status 404 - /webfaces/faces/index.jsp

type Status report

message /webfaces/faces/index.jsp

description The requested resource (/webfaces/faces/index.jsp) is not available.
Apache Tomcat/5.5.23
i've try add this to web.xml :

<listener> <listener-class>com.sun.faces.config.ConfigureListener</listener-class>
</listener>

but nothing change . humm, it's take me a day but can't solve the problem , please help me ! thanks.

Message was edited by:
secmask
Comments
Locked Post
New comments cannot be posted to this locked post.
Post Details
Locked on Aug 10 2007
Added on Jul 12 2007
6 comments
149 views