In short, the listener is not found - Simon is absolutely right in
that with JBoss, your listener should be found automatically.

So this basically means that the MyFaces jar file is not accessible to
your container somehow - or that the tld files in the jar file cannot
be read, as the listener is read from these tld files.

The log message is misleading and has been corrected in the meantime.

regards,

Martin

On 10/30/05, [EMAIL PROTECTED] <[EMAIL PROTECTED]> wrote:
>
> My problem is I do not understand the log entry. So the simplest was for
> me the listener in the log file.
> yonfigured 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
>
>


--

http://www.irian.at
Your JSF powerhouse -
JSF Trainings in English and German

Reply via email to