Tomcat, jsf

I am using Tomcat, and are trying to run a simple jsf page.

my page is in \apache-tomcat-5.5.23\webapps\jsf-test

my faces-config and web.xml is in \apache-tomcat-5.5.23\webapps\jsf-test\WEB-INF

part of web.xml is:

- <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 files

-->

- <welcome-file-list>

<welcome-file>index.jsp</welcome-file>

</welcome-file-list>

</web-app>

but when i try to test it http://localhost:808/jsf-test/index.faces or index.jsp it says it cant find the page? what may be wrong?

[1005 byte] By [ITBoy2a] at [2007-11-26 21:42:17]
# 1

Did you check your context.xml and the application context loading path being "/jsf-test" ? (look in your META-INF directory beside your WEB-INF). You should have a faces-config.xml file also but it could (as it is apparrent, have nothing in it except its root and DTD declaration).

And not localhost should be 8080 not 808 in your URL if thats a Tomcat

or sun one. If you get Netbeans.org IDE it can help you quite well but

you must use a project and enter all of the file names you have through the IDE it also requires a Sun Microsystems J2EE SDK(it also has the docs).

nicephotoga at 2007-7-10 3:28:16 > top of Java-index,Enterprise & Remote Computing,Web Tier APIs...