Hi

I have done extensive testing with various versions of Tomcat, and MyFaces does 
not work on anything above 5.5.17 running on Java 5 (On 1.4 it works). From 
what I have seen, I think this may have something todo with locale. I have not 
had the time yet to debug the startup, but I think that there is an Exception 
that is not logged that makes the initialization fail.

Hermod

-----Original Message-----
From: Simon Kitching [mailto:[EMAIL PROTECTED]
Sent: Sunday, May 06, 2007 10:33 PM
To: MyFaces Discussion
Subject: Re: "No Factories configured for this Application" with Tomcat
5.5.23


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?
* * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * *

This email with attachments is solely for the use of the individual or
entity to whom it is addressed. Please also be aware that the DnB NOR Group
cannot accept any payment orders or other legally binding correspondence with
customers as a part of an email. 

This email message has been virus checked by the anti virus programs used
in the DnB NOR Group.

* * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * *

Reply via email to