can't access the page when using JSF capabilities

hi

i am new to JSF, i have just taken a test for it

but when i accessing the page for test, i get the following messages:

Error 404--Not Found

my test page is named "test.jsf" located in /WebRoot/cc_vip/ directory

here is the content of my Web.xml

<servlet>

<servlet-name>Faces Servlet</servlet-name>

<servlet-class>javax.faces.webapp.FacesServlet</servlet-class>

</servlet>

<servlet-mapping>

<servlet-name>Faces Servlet</servlet-name>

<url-pattern>*.jsf</url-pattern>

</servlet-mapping>

and, all the neccesary JAR files are placed in the /WEB-INF/lib directory!

so, how can i sovle this problem!~~~~any replys will be appreciated

popcon

[819 byte] By [popcona] at [2007-10-2 5:13:19]
# 1

Try renaming your JSF file to JSP. You would still use "*.jsf" in the servlet mapping. I believe that the JSF servlet that is activated when you pass in a .jsf request attempts to map the request to a file that has a .jsp suffix.

- tim

> hi

>

> i am new to JSF, i have just taken a test for it

> but when i accessing the page for test, i get the

> following messages:

> Error 404--Not Found

> my test page is named "test.jsf" located in

> /WebRoot/cc_vip/ directory

>

> here is the content of my Web.xml

><servlet>

><servlet-name>Faces Servlet</servlet-name>

>

>

>

>

>

> <servlet-class>javax.faces.webapp.FacesServlet</servl

> et-class>

></servlet>

><servlet-mapping>

><servlet-name>Faces Servlet</servlet-name>

><url-pattern>*.jsf</url-pattern>

></servlet-mapping>

>

> and, all the neccesary JAR files are placed in the

> /WEB-INF/lib directory!

>

> so, how can i sovle this problem!~~~~any replys

> will be appreciated

>

> popcon

TimothyMDeana at 2007-7-16 1:15:55 > top of Java-index,Enterprise & Remote Computing,Web Tier APIs...
# 2
timthank u so much for ur reply , you save me from the problem!!the reason is exactly what u said!- popcon
popcona at 2007-7-16 1:15:55 > top of Java-index,Enterprise & Remote Computing,Web Tier APIs...