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.

Reply via email to