[ 
http://issues.apache.org/jira/browse/MYFACES-704?page=comments#action_12332413 
] 

Simon Kitching commented on MYFACES-704:
----------------------------------------

Perhaps the wording could be " - make sure that you properly include all 
configuration settings necessary for a basic faces configuration, and check the 
logging output for any exceptions"?

An exception on initialisation was my problem - a colleague insisting that 
StartupServletContextListener was needed in the web.xml because the error 
message was telling him so. I told him that with 1.1.0 that wasn't needed but 
couldn't convince him. Eventually an exception was found in the container log 
files re a missing library that was causing faces initialisation to fail.

> Misleading error message: "a context listener is not setup in your web.xml"
> ---------------------------------------------------------------------------
>
>          Key: MYFACES-704
>          URL: http://issues.apache.org/jira/browse/MYFACES-704
>      Project: MyFaces
>         Type: Bug
>     Versions: 1.1.1
>     Reporter: Simon Kitching
>     Assignee: Martin Marinschek
>     Priority: Minor
>      Fix For: Nightly

>
> Prior to 1.1.0 it was necessary to specify a custom context listener in the 
> web.xml file to enable JSF.
> Since 1.10 this has been defined automatically.
> However class "javax/faces/FactoryFinder.java" still outputs this message 
> whenever anything goes wrong with MyFaces initialisation:
>   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>
> I think this message is now misleading; no such entry is needed in the 
> web.xml file.

-- 
This message is automatically generated by JIRA.
-
If you think it was sent incorrectly contact one of the administrators:
   http://issues.apache.org/jira/secure/Administrators.jspa
-
For more information on JIRA, see:
   http://www.atlassian.com/software/jira

Reply via email to