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/trunk@1588269 13f79535-47bb-0310-9956-ffa450edef68
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/trunk@1588272 13f79535-47bb-0310-9956-ffa450edef68