aspose file tools*
The moose likes Struts and the fly likes help on security warning on Struts configuration on J2SDKEE 1.3.1 Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login
JavaRanch » Java Forums » Frameworks » Struts
Bookmark "help on security warning on Struts configuration on J2SDKEE 1.3.1 " Watch "help on security warning on Struts configuration on J2SDKEE 1.3.1 " New topic
Author

help on security warning on Struts configuration on J2SDKEE 1.3.1

Laurency Heo
Greenhorn

Joined: May 21, 2003
Posts: 9
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

Joined: May 21, 2003
Posts: 9
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();
}
});
.....
 
Don't get me started about those stupid light bulbs.
 
subject: help on security warning on Struts configuration on J2SDKEE 1.3.1