Hi Michael,

Fletcher, Michael (Calgary) wrote:
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?


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>
        

There are no known problems like this, and they would certainly be noticed! I cannot imagine tomcat5.5 not executing a servlet-listener registered in its web.xml file...

It sure looks like you haven't followed the instructions in the error message about defining StartupServletContextListener. Maybe you have the block present in your web.xml but it is commented out or something?

Reply via email to