My problem is I do not understand the log entry. So the simplest was for
me the listener in the log file.
14:16:12,329 ERROR [[/partnervermittlung]] StandardWrapper.Throwable
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>
at javax.faces.FactoryFinder.getFactory(FactoryFinder.java:84)
at javax.faces.webapp.FacesServlet.init(FacesServlet.java:84)
at
org.apache.catalina.core.StandardWrapper.loadServlet(StandardWrapper.java:1091)
at
org.apache.catalina.core.StandardWrapper.load(StandardWrapper.java:925)
...
>-- Original-Nachricht --
>Reply-To: "MyFaces Discussion" <[email protected]>
>Date: Sun, 30 Oct 2005 22:05:06 +1300
>From: Simon Kitching <[EMAIL PROTECTED]>
>To: MyFaces Discussion <[email protected]>
>Subject: Re: I have to add a listener class. why?
>
>
>[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