// call init() method on all resolvers
while (beanNameFinderIterator.hasNext())
{
// log resolver name
ELBeanNameResolver resolver = beanNameFinderIterator.next();
if (log.isTraceEnabled())
{
log.trace("Initializing BeanNameResolver: " + resolver.getClass().getName());
}
try
{
// call the resolver's init() method
boolean initialized = resolver.init(servletContext, classLoader);
// register resolver, if his initialization has completed
if (initialized)
{
resolvers.add(resolver);
}
}
catch (ClassFormatError e)
{
/*
* Seems to happen for CDI classes when using GWT
* In this case just ignore the resolver
* See: http://code.google.com/p/prettyfaces/issues/detail?id=101
*/
log.warn("Failed to initialize "+resolver.getClass().getSimpleName()+": "+e.getMessage());
}
}
}