Hi,

After installed Tomcat 5.5.20, every time when try to see 
tomahawk-sandbox-examples or myfaces-example-simple I have to manually add the 
folowing lines to web.xml.
<listener>  
    
<listener-class>org.apache.myfaces.webapp.StartupServletContextListener</listener-class>
</listener>
The error that I get is this:
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)

Can this be solved when building wars from myfaces scripts? Or it is a problem 
in Tomcat?

Thank you,
Alin.

Reply via email to