The "no security manager" error sure looked familiar, but it took me some time 
to find it.  I ran into the same error when I wrote mbean client code that I 
ran on my Linux box attempting to connect to JBoss running on my Windows box.  
Here is what I did.  I added the following lines before the code I posted:

if (System.getSecurityManager() == null) {
  |   System.setSecurityManager(new RMISecurityManager());
  | }

In addition, I changed the JAVA_HOME/jre/lib/security/java.policy file to read:

grant {
  |   permission java.security.AllPermission;
  | };

As you probably notice, this is not the correct way to set this, unless you 
don't care about security (it was fine for me, I only needed to demo a 
prototype after which I restored the original java.policy file).  If you google 
RMISecurityManager you will get many hits that will tell you how to configure 
the security properly.

View the original post : 
http://www.jboss.com/index.html?module=bb&op=viewtopic&p=3952430#3952430

Reply to the post : 
http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=3952430


_______________________________________________
JBoss-user mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/jboss-user

Reply via email to