[EMAIL PROTECTED] wrote:
I use 1.1.1.
In the simple app there is not entry in web.xml for a listener class.
I use JBoss and a ear file. When I use the example-config.xml file of the
simple webapp I get the error message.
java.lang.IllegalStateException: No Factories configured for this Application
- typically this is because 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>
MyFaces does need some initialisation, and this is done via a context
listener. However this is declared within the myfaces jar and most
servlet engines will detect the declaration there and insert the
listener automatically.
If you are using Tomcat as the servlet engine in jboss then you do *not*
need this listener declaration. Getting this message means that
something else has failed earlier in the MyFaces initialisation so check
your logfiles.
If you are using Resin as the servlet engine, then I believe Resin does
not support detecting/installing listeners declared within jar files so
you need to add the listener clause to your web.xml file as described in
the error message.
Regards,
SImon