Enhancing Warning log entry to output Resource (if defined) that cannot be parsed.
git-svn-id: svn+ssh://dev.eclipse.org/svnroot/rt/org.eclipse.jetty/jetty/trunk@563 7e9141cc-0065-0410-87d8-b60c137991c4
This commit is contained in:
parent
975d2daa77
commit
c22ea486a4
|
@ -21,9 +21,6 @@ import java.util.HashSet;
|
|||
import java.util.Iterator;
|
||||
import java.util.List;
|
||||
import java.util.Set;
|
||||
import java.util.jar.JarEntry;
|
||||
import java.util.regex.Pattern;
|
||||
|
||||
import javax.servlet.Servlet;
|
||||
|
||||
import org.eclipse.jetty.util.Loader;
|
||||
|
@ -251,19 +248,21 @@ public class TagLibConfiguration implements Configuration
|
|||
// Create a processor for the tlds and save it
|
||||
TldProcessor processor = new TldProcessor (context);
|
||||
context.setAttribute(TldProcessor.__taglib_processor, processor);
|
||||
|
||||
// Parse the tlds into memory
|
||||
Resource tld = null;
|
||||
Iterator iter = tlds.iterator();
|
||||
while (iter.hasNext())
|
||||
{
|
||||
try
|
||||
{
|
||||
Resource tld = (Resource)iter.next();
|
||||
tld = (Resource)iter.next();
|
||||
if (Log.isDebugEnabled()) Log.debug("TLD="+tld);
|
||||
processor.parse(tld);
|
||||
}
|
||||
catch(Exception e)
|
||||
{
|
||||
Log.warn(e);
|
||||
Log.warn("Unable to parse TLD: " + tld,e);
|
||||
}
|
||||
}
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue