use of org.apache.jasper.JasperException in project tomcat by apache.
the class JspRuntimeLibrary method handleSetProperty.
public static void handleSetProperty(Object bean, String prop, double value) throws JasperException {
try {
Method method = getWriteMethod(bean.getClass(), prop);
method.invoke(bean, new Object[] { Double.valueOf(value) });
} catch (Exception ex) {
Throwable thr = ExceptionUtils.unwrapInvocationTargetException(ex);
ExceptionUtils.handleThrowable(thr);
throw new JasperException(ex);
}
}
use of org.apache.jasper.JasperException in project Payara by payara.
the class AllJSPsMustBeCompilable method check.
public Result check(WebBundleDescriptor descriptor) {
Result result = getInitializedResult();
ComponentNameConstructor compName = getVerifierContext().getComponentNameConstructor();
// initialize good result
addGoodDetails(result, compName);
result.addGoodDetails(smh.getLocalString(getClass().getName() + ".passed", "All JSPs are compilable."));
// set default status to PASSED
result.setStatus(Result.PASSED);
// initialize error results.
addErrorDetails(result, compName);
result.addErrorDetails(smh.getLocalString(getClass().getName() + ".exception", "Error: Some JSPs bundled inside [ {0} ] could not be compiled. See details below.", new Object[] { descriptor.getName() }));
for (JasperException e : compile(descriptor)) {
result.failed(formatMessage(descriptor, e.toString()));
}
return result;
}
Aggregations