[jboss-user] [Remoting] - RMI call from JBoss Servlet : Security Exception

Lokeya do-not-reply at jboss.com
Mon Jul 9 16:50:29 EDT 2007

I am using JBoss as my Application server and trying to make an RMI call from that. Facing following exception. I googled and understood that its something to do with the Java 2 security issue. I tried to overcome that using the following lines of code in my servlet(RMI client) and RMI server 

System.setSecurityManager(new RMISecurityManager());

where i grant AllPermissions. Even then facing the following issue. Is there some JBoss configuration which needs to be changed to get this working?

Help Appreciated.

java.security.AccessControlException: access denied (java.net.SocketPermission connect,resolve)
        at java.security.AccessControlContext.checkPermission(AccessControlContext.java :264)
        at java.security.AccessController.checkPermission(AccessController.java:427)
        at java.lang.SecurityManager.checkPermission(SecurityManager.java:532)

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

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

More information about the jboss-user mailing list