Fix https://issues.apache.org/bugzilla/show_bug.cgi?id=56409
Avoid StackOverflowError on non-Windows systems if a file named '\' is encountered when scanning for TLDs.

git-svn-id: https://svn.apache.org/repos/asf/tomcat/tc7.0.x/trunk@1588288 13f79535-47bb-0310-9956-ffa450edef68
Modify generic exception handling so that StackOverflowError is not treated as a fatal error and can handled and/or logged as required.

git-svn-id: https://svn.apache.org/repos/asf/tomcat/tc7.0.x/trunk@1588291 13f79535-47bb-0310-9956-ffa450edef68