Win a copy of Programmer's Guide to Java SE 8 Oracle Certified Associate (OCA) this week in the OCAJP forum!
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

help on security warning on Struts configuration on J2SDKEE 1.3.1

 
Laurency Heo
Greenhorn
Posts: 9
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
I configure Struts 1.1 on J2SDKEE 1.3.1
when staring, it give a security warning message, else are ok!
[INFO] PropertyMessageResources - -Initializing, config='org.apache.struts.action.ActionResources', returnNull=true
[WARN] MethodUtils - -Cannot use JVM pre-1.4 access bug workaround die to restrictive security manager.
Another solved problems:
For the origianl WEB-INF/validation.xml,validator-rules.xml, i removed the dtd declaration,
because server says 'can not found the entity' on startup.
 
Laurency Heo
Greenhorn
Posts: 9
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
access previlage check in file,
org.apache.commons.beanutils.MappedPropertyDescriptor.java,
how to work around the java.lang.RuntimePermission accessDelaredMembers
??
/*
* Internal method to return *public* methods within a class.
*/
private static synchronized Method[] getPublicDeclaredMethods(Class clz) {
// Looking up Class.getDeclaredMethods is relatively expensive,
// so we cache the results.
final Class fclz = clz;
Method[] result = (Method[]) declaredMethodCache.get(fclz);
if (result != null) {
return result;
}
// We have to raise privilege for getDeclaredMethods
result = (Method[])
AccessController.doPrivileged(new PrivilegedAction() {
public Object run() {
return fclz.getDeclaredMethods();
}
});
.....
 
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic