cannot run jsf application
843844Feb 14 2007 — edited Oct 6 2008hi ...
iam getting
javax.servlet.ServletException: Servlet.init() for servlet Faces Servlet threw exception
java.lang.IllegalStateException: Application was not properly initialized at startup, could not find Factory: javax.faces.context.FacesContextFactory
i included jstl.jar,standard.jar,servlet-api.jar,jsp-api.jar,commons-beanutils.jar,commons-digester-1.8.jar,jsf-impl.jar,jsf-api.jar
in the WEB-INF\lib directory of the web application
and also faces-config.xml and web.xml in WEB-INF
.class file in WEB-INF\classes
here is faces-config.xml
<?xml version="1.0"?>
<!DOCTYPE faces-config PUBLIC
"-//Sun Microsystems, Inc.//DTD JavaServer Faces Config 1.0//EN"
"http://java.sun.com/dtd/web-facesconfig_1_0.dtd">
<faces-config>
<navigation-rule>
<from-view-id>/index.jsp</from-view-id>
<navigation-case>
<from-outcome>login</from-outcome>
<to-view-id>/welcome.jsp</to-view-id>
</navigation-case>
</navigation-rule>
<managed-bean>
<managed-bean-name>user</managed-bean-name>
<managed-bean-class>com.core.UserBean</managed-bean-class>
<managed-bean-scope>session</managed-bean-scope>
</managed-bean>
</faces-config>
here is web.xml
<?xml version="1.0"?>
<!DOCTYPE web-app PUBLIC
"-//Sun Microsystems, Inc.//DTD Web Application 2.3//EN"
"http://java.sun.com/dtd/web-app_2_3.dtd">
<web-app>
<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-list>
</web-app>
iam using tomcat 5.5.20 , jsf-1_2_03 and jdk 1.5
can anyone plz tell me starting from setting the classpath to run the application....on windows xp
iam doing project on this ,so i need it....plz..