User: starksm
Date: 01/11/09 02:35:49
Modified: src/main/org/jboss Tag: Branch_2_4 Main.java
Log:
Remove the setting of the security properties as this should be done through
the command line
Revision Changes Path
No revision
No revision
1.35.2.13 +1 -16 jboss/src/main/org/jboss/Main.java
Index: Main.java
===================================================================
RCS file: /cvsroot/jboss/jboss/src/main/org/jboss/Main.java,v
retrieving revision 1.35.2.12
retrieving revision 1.35.2.13
diff -u -r1.35.2.12 -r1.35.2.13
--- Main.java 2001/10/19 23:57:34 1.35.2.12
+++ Main.java 2001/11/09 10:35:49 1.35.2.13
@@ -27,7 +27,7 @@
* @author Rickard �berg ([EMAIL PROTECTED])
* @author <a href="mailto:[EMAIL PROTECTED]">Daniel O'Connor</a>.
* @author [EMAIL PROTECTED]
- * @version $Revision: 1.35.2.12 $
+ * @version $Revision: 1.35.2.13 $
*/
public class Main
{
@@ -103,21 +103,6 @@
System.out.println("Warning: no auth.conf found in config="+confName);
}
}
-
- // Set security
- URL serverPolicy =
Main.class.getClassLoader().getResource(confName+"/server.policy");
-
- if ( serverPolicy == null )
- {
- throw new IOException("server.policy missing");
- }
-
- System.setProperty("java.security.policy", serverPolicy.getFile());
-
- // Set security manager
- // Optional for better performance
- if (System.getProperty("java.security.manager") != null)
-
System.setSecurityManager((SecurityManager)Class.forName(System.getProperty("java.security.manager")).newInstance());
// Start server - Main does not have the proper permissions
AccessController.doPrivileged(new PrivilegedAction()
_______________________________________________
Jboss-development mailing list
[EMAIL PROTECTED]
https://lists.sourceforge.net/lists/listinfo/jboss-development