|
|
|
@ -54,14 +54,12 @@ class TomcatErrorPage {
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
private Object createNativePage(ErrorPage errorPage) {
|
|
|
|
|
Object nativePage = null;
|
|
|
|
|
try {
|
|
|
|
|
if (ClassUtils.isPresent(ERROR_PAGE_CLASS, null)) {
|
|
|
|
|
nativePage = BeanUtils
|
|
|
|
|
.instantiate(ClassUtils.forName(ERROR_PAGE_CLASS, null));
|
|
|
|
|
return BeanUtils.instantiate(ClassUtils.forName(ERROR_PAGE_CLASS, null));
|
|
|
|
|
}
|
|
|
|
|
else if (ClassUtils.isPresent(LEGACY_ERROR_PAGE_CLASS, null)) {
|
|
|
|
|
nativePage = BeanUtils
|
|
|
|
|
if (ClassUtils.isPresent(LEGACY_ERROR_PAGE_CLASS, null)) {
|
|
|
|
|
return BeanUtils
|
|
|
|
|
.instantiate(ClassUtils.forName(LEGACY_ERROR_PAGE_CLASS, null));
|
|
|
|
|
}
|
|
|
|
|
}
|
|
|
|
@ -71,7 +69,7 @@ class TomcatErrorPage {
|
|
|
|
|
catch (LinkageError ex) {
|
|
|
|
|
// Swallow and continue
|
|
|
|
|
}
|
|
|
|
|
return nativePage;
|
|
|
|
|
return null;
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
public void addToContext(Context context) {
|
|
|
|
|