Struts 2 on GAE – java.security.AccessControlException: access denied

Problem Developing Struts2 (v 2.3.1.2) on Google App Engine (SDK v1.6.3.1), local development, hit “java.security.AccessControlException: access denied” error? Solution Normally, this is because you turn the “devMode on” in struts.xml file. File : struts.xml <?xml version="1.0" encoding="UTF-8" ?> <!DOCTYPE struts PUBLIC "-//Apache Software Foundation//DTD Struts Configuration 2.0//EN" "http://struts.apache.org/dtds/struts-2.0.dtd"> <struts> <constant name="struts.devMode" value="true" /> //… </struts> …

Read more

Spring Security : Customize 403 access denied page

In Spring Security, if non authorized user try to access a protected page, a default “http 403 access denied” will be displayed : In this tutorial, we will show you how to customize 403 access denied page in Spring Security. 1. Spring Security Configuration Review a configuration, if “alex” try to access /admin page, above …

Read more