Closed glassfishrobot closed 16 years ago
— src/main/java/com/sun/enterprise/security/SecurityLifecycle.java (revisio n 19603) +++ src/main/java/com/sun/enterprise/security/SecurityLifecycle.java (working copy) @@ -111,7 +111,11 @@ if (secMgr != null && !(J2EESecurityManager.class.equals(secMgr.getClass()))) { J2EESecurityManager mgr = new J2EESecurityManager();
System.setSecurityManager(mgr);
catch (SecurityException ex)
{ + _logger.log(Level.WARNING, "security.secmgr.could.not.overr ide"); + }
}
if (_logger.isLoggable(Level.INFO)) {
@glassfishrobot Commented This issue was imported from java.net JIRA GLASSFISH-4591
@glassfishrobot Commented Reported by @vbkumarjayanti
@glassfishrobot Commented Marked as fixed on Monday, April 7th 2008, 1:46:48 am
When trying to run V3 in embedded mode in Netbeans we are getting an NPE situation below. Looking at the code we can see thatwe are trying to forcefully reset the security manager to V3 SM if one is already set.
this does not seem the right thing to do in embedded mode where we should be capable of delegating to the outer security manager instance.