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]

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