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.Iterator;
|
||||||
import java.util.List;
|
import java.util.List;
|
||||||
import java.util.Set;
|
import java.util.Set;
|
||||||
import java.util.jar.JarEntry;
|
|
||||||
import java.util.regex.Pattern;
|
|
||||||
|
|
||||||
import javax.servlet.Servlet;
|
import javax.servlet.Servlet;
|
||||||
|
|
||||||
import org.eclipse.jetty.util.Loader;
|
import org.eclipse.jetty.util.Loader;
|
||||||
|
@ -251,19 +248,21 @@ public class TagLibConfiguration implements Configuration
|
||||||
// Create a processor for the tlds and save it
|
// Create a processor for the tlds and save it
|
||||||
TldProcessor processor = new TldProcessor (context);
|
TldProcessor processor = new TldProcessor (context);
|
||||||
context.setAttribute(TldProcessor.__taglib_processor, processor);
|
context.setAttribute(TldProcessor.__taglib_processor, processor);
|
||||||
|
|
||||||
// Parse the tlds into memory
|
// Parse the tlds into memory
|
||||||
|
Resource tld = null;
|
||||||
Iterator iter = tlds.iterator();
|
Iterator iter = tlds.iterator();
|
||||||
while (iter.hasNext())
|
while (iter.hasNext())
|
||||||
{
|
{
|
||||||
try
|
try
|
||||||
{
|
{
|
||||||
Resource tld = (Resource)iter.next();
|
tld = (Resource)iter.next();
|
||||||
if (Log.isDebugEnabled()) Log.debug("TLD="+tld);
|
if (Log.isDebugEnabled()) Log.debug("TLD="+tld);
|
||||||
processor.parse(tld);
|
processor.parse(tld);
|
||||||
}
|
}
|
||||||
catch(Exception e)
|
catch(Exception e)
|
||||||
{
|
{
|
||||||
Log.warn(e);
|
Log.warn("Unable to parse TLD: " + tld,e);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in New Issue