I did it to work. Copy the following from struts-default.xml and copy it into your struts.xml application .
<constant name="struts.excludedClasses" value=" java.lang.Object, java.lang.Runtime, java.lang.System, java.lang.Class, java.lang.ClassLoader, java.lang.Shutdown, ognl.OgnlContext, ognl.MemberAccess, ognl.ClassResolver, ognl.TypeConverter, com.opensymphony.xwork2.ActionContext" />
Remove only java.lang.Class from above. Saving, compiling, building, and deploying. Happy Days!
But for this we are making an exit strategy. We inform all our developers that they no longer use static access and begin to delete it (we do not have many places that are used)!
avijendr
source share