HTTP Status 500 -


type Exception report

message

description The server encountered an internal error () that prevented it from fulfilling this request.

exception

org.apache.jasper.JasperException: javax.servlet.ServletException: Servlet.init() for servlet Faces Servlet threw exception
	org.apache.jasper.servlet.JspServletWrapper.handleJspException(JspServletWrapper.java:500)
	org.apache.jasper.servlet.JspServletWrapper.service(JspServletWrapper.java:410)
	org.apache.jasper.servlet.JspServlet.serviceJspFile(JspServlet.java:313)
	org.apache.jasper.servlet.JspServlet.service(JspServlet.java:260)
	javax.servlet.http.HttpServlet.service(HttpServlet.java:717)
	com.apetonic.upload.ExtensionsFilter.doFilter(ExtensionsFilter.java:181)
	com.ocpsoft.pretty.PrettyFilter.doFilter(PrettyFilter.java:91)

root cause

javax.servlet.ServletException: Servlet.init() for servlet Faces Servlet threw exception
	org.apache.jasper.runtime.PageContextImpl.doForward(PageContextImpl.java:709)
	org.apache.jasper.runtime.PageContextImpl.forward(PageContextImpl.java:680)
	org.apache.jsp.index_jsp._jspService(index_jsp.java:57)
	org.apache.jasper.runtime.HttpJspBase.service(HttpJspBase.java:70)
	javax.servlet.http.HttpServlet.service(HttpServlet.java:717)
	org.apache.jasper.servlet.JspServletWrapper.service(JspServletWrapper.java:386)
	org.apache.jasper.servlet.JspServlet.serviceJspFile(JspServlet.java:313)
	org.apache.jasper.servlet.JspServlet.service(JspServlet.java:260)
	javax.servlet.http.HttpServlet.service(HttpServlet.java:717)
	com.apetonic.upload.ExtensionsFilter.doFilter(ExtensionsFilter.java:181)
	com.ocpsoft.pretty.PrettyFilter.doFilter(PrettyFilter.java:91)

root cause

java.lang.IllegalStateException: No Factories configured for this Application. This happens if the faces-initialization does not work at all - make sure that you properly include all configuration settings necessary for a basic faces application and that all the necessary libs are included. Also check the logging output of your web application and your container for any exceptions!
If you did that and find nothing, the mistake might be due to the fact that you use some special web-containers which do not support registering context-listeners via TLD files and a context listener is not setup in your web.xml.
A typical config looks like this;
<listener>
  <listener-class>org.apache.myfaces.webapp.StartupServletContextListener</listener-class>
</listener>

	javax.faces.FactoryFinder.getFactory(FactoryFinder.java:93)
	javax.faces.webapp.FacesServlet.init(FacesServlet.java:91)
	org.apache.jasper.runtime.PageContextImpl.doForward(PageContextImpl.java:709)
	org.apache.jasper.runtime.PageContextImpl.forward(PageContextImpl.java:680)
	org.apache.jsp.index_jsp._jspService(index_jsp.java:57)
	org.apache.jasper.runtime.HttpJspBase.service(HttpJspBase.java:70)
	javax.servlet.http.HttpServlet.service(HttpServlet.java:717)
	org.apache.jasper.servlet.JspServletWrapper.service(JspServletWrapper.java:386)
	org.apache.jasper.servlet.JspServlet.serviceJspFile(JspServlet.java:313)
	org.apache.jasper.servlet.JspServlet.service(JspServlet.java:260)
	javax.servlet.http.HttpServlet.service(HttpServlet.java:717)
	com.apetonic.upload.ExtensionsFilter.doFilter(ExtensionsFilter.java:181)
	com.ocpsoft.pretty.PrettyFilter.doFilter(PrettyFilter.java:91)

note The full stack trace of the root cause is available in the Apache Tomcat/6.0.32 logs.


Apache Tomcat/6.0.32