diff --git a/sbin/create_dm_db.sh b/sbin/create_dm_db.sh index cb57e75f6ef7e2d6d21a5b6713e74e4643d084b3..b29eb7b8f3a5ba97d263329018e4dacb42aebe76 100755 --- a/sbin/create_dm_db.sh +++ b/sbin/create_dm_db.sh @@ -182,7 +182,8 @@ DM_DB_TABLES="\ user_system_role \ policy_type \ policy_property \ - allowed_policy_value + allowed_policy_value \ + users_last_update " for dbTable in $DM_DB_TABLES; do dbFile=populate_$dbTable.sql diff --git a/src/java/DmWebPortal/web/WEB-INF/web.xml b/src/java/DmWebPortal/web/WEB-INF/web.xml index aeb3a011a523c949a165d2e7248a8724da79fe11..4045e75aaca4579d3476f7194f92a6bf1ba12000 100644 --- a/src/java/DmWebPortal/web/WEB-INF/web.xml +++ b/src/java/DmWebPortal/web/WEB-INF/web.xml @@ -23,8 +23,12 @@ </welcome-file-list> <error-page> <exception-type>javax.faces.application.ViewExpiredException</exception-type> - <location>/login.xhtml</location> + <location>/views/login.xhtml</location> </error-page> + <error-page> + <exception-type>com.sun.faces.context.FacesFileNotFoundException</exception-type> + <location>/views/pagenotfound.xhtml</location> + </error-page> <security-constraint> <display-name>Restrict Private Files</display-name> <web-resource-collection> diff --git a/src/java/DmWebPortal/web/views/pagenotfound.xhtml b/src/java/DmWebPortal/web/views/pagenotfound.xhtml new file mode 100644 index 0000000000000000000000000000000000000000..057c70b135f6d143a69010a7907dfa48e03bb8b8 --- /dev/null +++ b/src/java/DmWebPortal/web/views/pagenotfound.xhtml @@ -0,0 +1,12 @@ +<!--<?xml version='1.0' encoding='UTF-8' ?>--> +<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd"> + +<html xmlns="http://www.w3.org/1999/xhtml" + xmlns:ui="http://java.sun.com/jsf/facelets" + xmlns:h="http://java.sun.com/jsf/html"> + + <h:body> + <h1>Page not found</h1> + </h:body> + +</html>