At what point are you calling FactoryFinder.getFactory()? Inside
your JSF application or in a servlet filter?
On 8/3/06, Venkat Rao <[EMAIL PROTECTED]> wrote:
I have a normal functional JSF application which is working fine. When I
introduce the following statement in it:
LifecycleFactory lifecycleFactory = (LifecycleFactory)
FactoryFinder.getFactory(FactoryFinder.LIFECYCLE_FACTORY);
it complains with the message:
Caused by: 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>
at
javax.faces.FactoryFinder.getFactory(FactoryFinder.java:90)
I am using JBoss, and do have the above <listener-class> configured in my
web.xml – my JSF application was working normally before introducing the
FactoryFinder call. Am I missing some configuration?
-- venkat