Hello!

I downloaded MyFaces 0.9.0 and Tomcat 5.0.30 and installed it (WinNT, jvm
1.4.2). I dropped the myfaces-examples.war in the auto deploy dir and tomcat
deployed it.
Now when I browse to "http://localhost:8080/myfaces-examples/"; I get the error
below. I browsed the web but havent found anybody else with the same problem.
The same occures when I try other MyFaces demos like the one from the German
magazine ct... Can anybody help??


HTTP Status 500 -

type Exception report

message

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

exception

javax.servlet.ServletException: Servlet.init() for servlet Faces Servlet threw
exception
       
org.apache.catalina.valves.ErrorReportValve.invoke(ErrorReportValve.java:118)
        org.apache.coyote.tomcat5.CoyoteAdapter.service(CoyoteAdapter.java:160)
       
org.apache.coyote.http11.Http11Processor.process(Http11Processor.java:799)
       
org.apache.coyote.http11.Http11Protocol$Http11ConnectionHandler.processConnection(Http11Protocol.java:705)
       
org.apache.tomcat.util.net.TcpWorkerThread.runIt(PoolTcpEndpoint.java:577)
       
org.apache.tomcat.util.threads.ThreadPool$ControlRunnable.run(ThreadPool.java:684)
        java.lang.Thread.run(Thread.java:534)

root cause

java.lang.IllegalStateException: No Factories configured for this Application -
typically this is because 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:101)
        javax.faces.webapp.FacesServlet.init(FacesServlet.java:88)
       
org.apache.catalina.valves.ErrorReportValve.invoke(ErrorReportValve.java:118)
        org.apache.coyote.tomcat5.CoyoteAdapter.service(CoyoteAdapter.java:160)
       
org.apache.coyote.http11.Http11Processor.process(Http11Processor.java:799)
       
org.apache.coyote.http11.Http11Protocol$Http11ConnectionHandler.processConnection(Http11Protocol.java:705)
       
org.apache.tomcat.util.net.TcpWorkerThread.runIt(PoolTcpEndpoint.java:577)
       
org.apache.tomcat.util.threads.ThreadPool$ControlRunnable.run(ThreadPool.java:684)
        java.lang.Thread.run(Thread.java:534)

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


Reply via email to