import org.apache.jasper.JasperException;
import org.apache.jasper.JspCompilationContext;
+import org.apache.jasper.util.ExceptionUtils;
import org.apache.jasper.xmlparser.ParserUtils;
import org.apache.jasper.xmlparser.TreeNode;
try {
in.close();
} catch (Throwable t) {
+ ExceptionUtils.handleThrowable(t);
}
}
}
import org.apache.jasper.JasperException;
import org.apache.jasper.JspCompilationContext;
+import org.apache.jasper.util.ExceptionUtils;
import org.apache.juli.logging.Log;
import org.apache.juli.logging.LogFactory;
longName, encoding);
}
} catch (Throwable ex) {
+ ExceptionUtils.handleThrowable(ex);
log.error("Exception parsing file ", ex);
// Pop state being constructed:
popFile();
import org.apache.jasper.runtime.JspFactoryImpl;
import org.apache.jasper.security.SecurityClassLoad;
import org.apache.jasper.servlet.JspServletWrapper;
+import org.apache.jasper.util.ExceptionUtils;
import org.apache.jasper.util.JspQueue;
import org.apache.juli.logging.Log;
import org.apache.juli.logging.LogFactory;
} catch (FileNotFoundException ex) {
ctxt.incrementRemoved();
} catch (Throwable t) {
+ ExceptionUtils.handleThrowable(t);
jsw.getServletContext().log("Background compile failed",
t);
}
import java.util.MissingResourceException;
import java.util.ResourceBundle;
+import org.apache.jasper.util.ExceptionUtils;
+
/**
* Class responsible for converting error codes to corresponding localized
* error messages.
bundle = ResourceBundle.getBundle(
"org.apache.jasper.resources.LocalStrings");
} catch (Throwable t) {
+ ExceptionUtils.handleThrowable(t);
t.printStackTrace();
}
}
import org.apache.jasper.JasperException;
import org.apache.jasper.JspCompilationContext;
+import org.apache.jasper.util.ExceptionUtils;
import org.apache.jasper.xmlparser.XMLEncodingDetector;
import org.xml.sax.Attributes;
if (jarFile != null) {
try {
jarFile.close();
- } catch (Throwable t) {}
+ } catch (Throwable t) {
+ ExceptionUtils.handleThrowable(t);
+ }
}
baseDirStack.pop();
import org.apache.jasper.JasperException;
import org.apache.jasper.JspCompilationContext;
+import org.apache.jasper.util.ExceptionUtils;
import org.apache.jasper.xmlparser.ParserUtils;
import org.apache.jasper.xmlparser.TreeNode;
import org.apache.juli.logging.Log;
try {
in.close();
} catch (Throwable t) {
+ ExceptionUtils.handleThrowable(t);
}
}
}
try {
stream.close();
} catch (Throwable t) {
- // do nothing
+ ExceptionUtils.handleThrowable(t);
}
}
}
try {
stream.close();
} catch (Throwable t) {
- // do nothing
+ ExceptionUtils.handleThrowable(t);
}
}
}
try {
stream.close();
} catch (Throwable t) {
- // do nothing
+ ExceptionUtils.handleThrowable(t);
}
}
}
import javax.servlet.jsp.PageContext;
import org.apache.jasper.Constants;
+import org.apache.jasper.util.ExceptionUtils;
import org.apache.juli.logging.Log;
import org.apache.juli.logging.LogFactory;
needsSession, bufferSize, autoflush);
return pc;
} catch (Throwable ex) {
- /* FIXME: need to do something reasonable here!! */
+ ExceptionUtils.handleThrowable(ex);
log.fatal("Exception initializing page context", ex);
return null;
}
return
(getResource(path).getFile().replace('/', File.separatorChar));
} catch (Throwable t) {
+ ExceptionUtils.handleThrowable(t);
return (null);
}
try {
is = url.openStream();
} catch (Throwable t) {
+ ExceptionUtils.handleThrowable(t);
url = null;
} finally {
if (is != null) {
try {
return (getResource(path).openStream());
} catch (Throwable t) {
+ ExceptionUtils.handleThrowable(t);
return (null);
}
import org.apache.jasper.compiler.JspRuntimeContext;
import org.apache.jasper.compiler.Localizer;
import org.apache.jasper.security.SecurityUtil;
+import org.apache.jasper.util.ExceptionUtils;
import org.apache.juli.logging.Log;
import org.apache.juli.logging.LogFactory;
import org.apache.tomcat.PeriodicEventListener;
Object[] args = { config, context };
options = (Options) ctor.newInstance(args);
} catch (Throwable e) {
+ ExceptionUtils.handleThrowable(e);
// Need to localize this.
log.warn("Failed to load engineOptionsClass", e);
// Use the default Options implementation
} catch (IOException e) {
throw e;
} catch (Throwable e) {
+ ExceptionUtils.handleThrowable(e);
throw new ServletException(e);
}
import org.apache.jasper.runtime.InstanceManagerFactory;
import org.apache.jasper.runtime.JspSourceDependent;
import org.apache.jasper.util.Entry;
+import org.apache.jasper.util.ExceptionUtils;
import org.apache.juli.logging.Log;
import org.apache.juli.logging.LogFactory;
import org.apache.tomcat.InstanceManager;
return ((JspSourceDependent) target).getDependants();
}
} catch (Throwable ex) {
+ ExceptionUtils.handleThrowable(ex);
}
return null;
}