Hello
I was having trouble getting with JSF because of this error described
below. I tried using my code as well as the
tomahawk-examples-1.1.5-bin.zip. I tried removing different WAR files
as well as the correction described below.
Eventually I just tried the examples using Tomcat 5.0.28 and everything
worked correctly.
Is there a known issue with Tomcat 5.5.23 and MyFaces?
javax.servlet.ServletException: Servlet.init() for servlet Faces Servlet
threw exception
org.apache.catalina.valves.ErrorReportValve.invoke(ErrorReportValve.java
:117)
org.apache.catalina.connector.CoyoteAdapter.service(CoyoteAdapter.java:1
51)
org.apache.coyote.http11.Http11Processor.process(Http11Processor.java:87
0)
org.apache.coyote.http11.Http11BaseProtocol$Http11ConnectionHandler.proc
essConnection(Http11BaseProtocol.java:665)
org.apache.tomcat.util.net.PoolTcpEndpoint.processSocket(PoolTcpEndpoint
.java:528)
org.apache.tomcat.util.net.LeaderFollowerWorkerThread.runIt(LeaderFollow
erWorkerThread.java:81)
org.apache.tomcat.util.threads.ThreadPool$ControlRunnable.run(ThreadPool
.java:685)
java.lang.Thread.run(Thread.java:619)
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.catalina.valves.ErrorReportValve.invoke(ErrorReportValve.java
:117)
org.apache.catalina.connector.CoyoteAdapter.service(CoyoteAdapter.java:1
51)
org.apache.coyote.http11.Http11Processor.process(Http11Processor.java:87
0)
org.apache.coyote.http11.Http11BaseProtocol$Http11ConnectionHandler.proc
essConnection(Http11BaseProtocol.java:665)
org.apache.tomcat.util.net.PoolTcpEndpoint.processSocket(PoolTcpEndpoint
.java:528)
org.apache.tomcat.util.net.LeaderFollowerWorkerThread.runIt(LeaderFollow
erWorkerThread.java:81)
org.apache.tomcat.util.threads.ThreadPool$ControlRunnable.run(ThreadPool
.java:685)
java.lang.Thread.run(Thread.java:619)
Michael Fletcher
p: 403-296-4215
--------------------------------------------------------
This email communication is intended as a private communication for the sole
use of the primary addressee and those individuals listed for copies in the
original message. The information contained in this email is private and
confidential and If you are not an intended recipient you are hereby notified
that copying, forwarding or other dissemination or distribution of this
communication by any means is prohibited. If you are not specifically
authorized to receive this email and if you believe that you received it in
error please notify the original sender immediately. We honour similar
requests relating to the privacy of email communications.
Cette communication par courrier electronique est une communication privee a
l'usage exclusif du destinataire principal ainsi que des personnes dont les
noms figurent en copie. Les renseignements contenus dans ce courriel sont
confidentiels et si vous n'etes pas le destinataire prevu, vous etes avise, par
les presentes que toute reproduction, transfert ou autre forme de diffusion de
cette communication par quelque moyen que ce soit est interdite. Si vous
n'etes pas specifiquement autorise a recevoir ce courriel ou si vous croyez
l'avoir recu par erreur, veuillez en aviser l'expediteur original
immediatement. Nous respectons les demandes similaires qui touchent la
confidentialite des communications par courrier electronique.