Martin, the jira issue is here:
https://issues.apache.org/jira/browse/MYFACES-1812


Val


Martin Marinschek wrote:
> 
> Can you open an issue in the issue-tracker of MyFaces? I have already
> prepared a fix, and will commit it this evening.
> 
> regards,
> 
> Martin
> 
> On 1/30/08, Val Blant <[EMAIL PROTECTED]> wrote:
>>
>> The log shows that the configs are read twice:
>>
>>
>> [2008-01-29 18:43:55,145] INFO   myfaces.config.FacesConfigurator:159  ->
>> Reading standard config
>> org/apache/myfaces/resource/standard-faces-config.xml
>> [2008-01-29 18:43:55,226] INFO   myfaces.config.FacesConfigurator:379  ->
>> Reading config
>> jar:file:/home/val/workspaces/workspace.v2/OPSWeb/src/main/webapp/WEB-INF/lib/acegi-jsf.jar!/META-INF/faces-config.xml
>> [2008-01-29 18:43:55,237] INFO   myfaces.config.FacesConfigurator:379  ->
>> Reading config
>> jar:file:/home/val/workspaces/workspace.v2/OPSWeb/src/main/webapp/WEB-INF/lib/jsf-facelets-1.1.11.jar!/META-INF/faces-config.xml
>> [2008-01-29 18:43:55,245] INFO   myfaces.config.FacesConfigurator:379  ->
>> Reading config
>> jar:file:/home/val/workspaces/workspace.v2/OPSWeb/src/main/webapp/WEB-INF/lib/richfaces-3.0.0.jar!/META-INF/faces-config.xml
>> [2008-01-29 18:43:55,330] INFO   myfaces.config.FacesConfigurator:379  ->
>> Reading config
>> jar:file:/home/val/workspaces/workspace.v2/OPSWeb/src/main/webapp/WEB-INF/lib/ajax4jsf-1.1.0.jar!/META-INF/faces-config.xml
>> [2008-01-29 18:43:55,345] INFO   myfaces.config.FacesConfigurator:379  ->
>> Reading config
>> jar:file:/home/val/workspaces/workspace.v2/OPSWeb/src/main/webapp/WEB-INF/lib/tomahawk-1.1.5.jar!/META-INF/faces-config.xml
>> [2008-01-29 18:43:55,384] INFO   myfaces.config.FacesConfigurator:379  ->
>> Reading config
>> jar:file:/home/val/workspaces/workspace.v2/OPSWeb/src/main/webapp/WEB-INF/lib/jenia4faces-dynamic_1.2.1.jar!/META-INF/faces-config.xml
>> [2008-01-29 18:43:55,401] INFO   myfaces.config.FacesConfigurator:379  ->
>> Reading config
>> jar:file:/home/val/workspaces/workspace.v2/OPSWeb/src/main/webapp/WEB-INF/lib/jenia4faces-popup_1.2.1.jar!/META-INF/faces-config.xml
>> [2008-01-29 18:43:55,410] INFO   myfaces.config.FacesConfigurator:379  ->
>> Reading config
>> jar:file:/home/val/workspaces/workspace.v2/OPS/shale-remoting-1.0.4.jar!/META-INF/faces-config.xml
>> [2008-01-29 18:43:55,416] INFO   myfaces.config.FacesConfigurator:379  ->
>> Reading config
>> jar:file:/home/val/workspaces/workspace.v2/OPSWeb/src/main/webapp/WEB-INF/lib/jsf-message-decorator-1.2.jar!/META-INF/faces-config.xml
>> [2008-01-29 18:43:55,422] INFO   myfaces.config.FacesConfigurator:379  ->
>> Reading config
>> jar:file:/home/val/workspaces/workspace.v2/OPSWeb/src/main/webapp/WEB-INF/lib/tomahawk-sandbox-1.1.7-SNAPSHOT.jar!/META-INF/faces-config.xml
>> [2008-01-29 18:43:55,518] INFO   myfaces.config.FacesConfigurator:379  ->
>> Reading config
>> jar:file:/home/val/workspaces/workspace.v2/OPSWeb/src/main/webapp/WEB-INF/lib/jenia4faces-popup_1.2.1.jar!/META-INF/faces-config.xml
>> [2008-01-29 18:43:55,583] INFO   myfaces.config.FacesConfigurator:379  ->
>> Reading config
>> jar:file:/home/val/workspaces/workspace.v2/OPSWeb/src/main/webapp/WEB-INF/lib/tomahawk-1.1.5.jar!/META-INF/faces-config.xml
>> [2008-01-29 18:43:55,612] INFO   myfaces.config.FacesConfigurator:379  ->
>> Reading config
>> jar:file:/home/val/workspaces/workspace.v2/OPSWeb/src/main/webapp/WEB-INF/lib/jenia4faces-dynamic_1.2.1.jar!/META-INF/faces-config.xml
>> [2008-01-29 18:43:55,621] INFO   myfaces.config.FacesConfigurator:379  ->
>> Reading config
>> jar:file:/home/val/workspaces/workspace.v2/OPSWeb/src/main/webapp/WEB-INF/lib/jsf-facelets-1.1.11.jar!/META-INF/faces-config.xml
>> [2008-01-29 18:43:55,633] INFO   myfaces.config.FacesConfigurator:379  ->
>> Reading config
>> jar:file:/home/val/workspaces/workspace.v2/OPSWeb/src/main/webapp/WEB-INF/lib/tomahawk-sandbox-1.1.7-SNAPSHOT.jar!/META-INF/faces-config.xml
>> [2008-01-29 18:43:55,748] INFO   myfaces.config.FacesConfigurator:379  ->
>> Reading config
>> jar:file:/home/val/workspaces/workspace.v2/OPSWeb/src/main/webapp/WEB-INF/lib/ajax4jsf-1.1.0.jar!/META-INF/faces-config.xml
>> [2008-01-29 18:43:55,781] INFO   myfaces.config.FacesConfigurator:379  ->
>> Reading config
>> jar:file:/home/val/workspaces/workspace.v2/OPSWeb/src/main/webapp/WEB-INF/lib/richfaces-3.0.0.jar!/META-INF/faces-config.xml
>> [2008-01-29 18:43:55,941] INFO   myfaces.config.FacesConfigurator:379  ->
>> Reading config
>> jar:file:/home/val/workspaces/workspace.v2/OPSWeb/src/main/webapp/WEB-INF/lib/jsf-message-decorator-1.2.jar!/META-INF/faces-config.xml
>> [2008-01-29 18:43:55,949] INFO   myfaces.config.FacesConfigurator:379  ->
>> Reading config
>> jar:file:/home/val/workspaces/workspace.v2/OPSWeb/src/main/webapp/WEB-INF/lib/acegi-jsf.jar!/META-INF/faces-config.xml
>> [2008-01-29 18:43:55,956] INFO   myfaces.config.FacesConfigurator:540  ->
>> Reading config /WEB-INF/faces-config.xml
>>
>>
>>
>> Martin Marinschek wrote:
>> >
>> > Can you please post your logging-output?
>> >
>> > You should see info-messages starting with: Reading config
>> >
>> > with log-level info on FacesConfigurator.java.
>> >
>> > regards,
>> >
>> > Martin
>> >
>> > On Jan 29, 2008 9:39 PM, Val Blant <[EMAIL PROTECTED]> wrote:
>> >
>> >>
>> >> Hello.
>> >>
>> >> I just found something that I think is a bug in
>> >> FacesConfigurator.feedClassloaderConfigurations() algorithm. Please
>> >> correct
>> >> me if I am wrong.
>> >>
>> >> The problem I see is this:
>> >>
>> >> "ClassUtils.getResources(FACES_CONFIG_RESOURCE, this)" will return an
>> >> iterator over all "META-INF/faces-config.xml" resources that were
>> found.
>> >> The
>> >> search is carried out by starting at WebAppClassLoader and making an
>> >> Enumeration of all resources with the given name, that
>> WebAppClassLoader
>> >> and
>> >> all its parents see. The jars placed into WEB-INF/lib will be seen by
>> the
>> >> WebAppClassLoader AND AppClassLoader, thus resulting in the same jars
>> >> (the
>> >> ones that have "META-INF/faces-config.xml") being placed on the list
>> >> twice.
>> >> This is fine, but things break when
>> >> FacesConfigurator.feedClassloaderConfigurations() does not check for
>> >> duplicate URLs and just blindly registers everything from these jars
>> >> twice.
>> >>
>> >> I noticed this b/c all of my phase listeners were executing twice due
>> to
>> >> being registered with the lifecycle twice.
>> >>
>> >> Is this a bug, or have I configured something wrong?
>> >>
>> >>
>> >> Val
>> >> --
>> >> View this message in context:
>> >>
>> http://www.nabble.com/Bug-in-FacesConfigurator.feedClassloaderConfigurations%28%29--tp15168891p15168891.html
>> >> Sent from the My Faces - Dev mailing list archive at Nabble.com.
>> >>
>> >>
>> >
>> >
>> > --
>> >
>> > http://www.irian.at
>> >
>> > Your JSF powerhouse -
>> > JSF Consulting, Development and
>> > Courses in English and German
>> >
>> > Professional Support for Apache MyFaces
>> >
>> >
>>
>> --
>> View this message in context:
>> http://www.nabble.com/Bug-in-FacesConfigurator.feedClassloaderConfigurations%28%29--tp15168891p15173488.html
>> Sent from the My Faces - Dev mailing list archive at Nabble.com.
>>
>>
> 
> 
> -- 
> 
> http://www.irian.at
> 
> Your JSF powerhouse -
> JSF Consulting, Development and
> Courses in English and German
> 
> Professional Support for Apache MyFaces
> 
> 

-- 
View this message in context: 
http://www.nabble.com/Bug-in-FacesConfigurator.feedClassloaderConfigurations%28%29--tp15168891p15188813.html
Sent from the My Faces - Dev mailing list archive at Nabble.com.

Reply via email to