diff --git a/wise-webapp/src/main/java/com/wisemapping/config/AppConfig.java b/wise-webapp/src/main/java/com/wisemapping/config/AppConfig.java index 561000f5..9bc43335 100644 --- a/wise-webapp/src/main/java/com/wisemapping/config/AppConfig.java +++ b/wise-webapp/src/main/java/com/wisemapping/config/AppConfig.java @@ -19,22 +19,14 @@ public class AppConfig { @Bean HandlerExceptionResolver errorHandler() { - final SimpleMappingExceptionResolver result = - new SimpleMappingExceptionResolver(); - - //exception to view name mapping - final Properties p = new Properties(); - p.setProperty(MapNotPublicSecurityException.class.getName(), "reactInclude"); - p.setProperty(AccessDeniedSecurityException.class.getName(), "reactInclude"); - result.setExceptionMappings(p); + final SimpleMappingExceptionResolver result = new SimpleMappingExceptionResolver(); //mapping status code with view response. result.addStatusCode("reactInclude", 403); //setting default error view - result.setDefaultErrorView("errorTemplate"); + result.setDefaultErrorView("reactInclude"); result.setDefaultStatusCode(500); - return result; } diff --git a/wise-webapp/src/main/webapp/WEB-INF/defs/definitions.xml b/wise-webapp/src/main/webapp/WEB-INF/defs/definitions.xml deleted file mode 100644 index 4c9d2687..00000000 --- a/wise-webapp/src/main/webapp/WEB-INF/defs/definitions.xml +++ /dev/null @@ -1,23 +0,0 @@ - - - - - - - - - - - - - - - - - - - - - - -