2 Replies Latest reply on Jan 20, 2008 3:25 PM by erasmo2 marciano2

    JBOSS Error

    erasmo2 marciano2 Master

      I have this error

      Root exception is java.security.AccessControlException: access denied

      When i run my application standalone java

      Exception in thread "main" javax.naming.CommunicationException: Could not obtain connection to any of these urls: 10.173.172.176 and discovery failed with error: java.security.AccessControlException: access denied (java.net.SocketPermission 230.0.0.4 connect,accept,resolve) [Root exception is javax.naming.CommunicationException: Failed to connect to server 10.173.172.176:1099 [Root exception is java.security.AccessControlException: access denied (java.net.SocketPermission 10.173.172.176:1099 connect,resolve)]]
      at org.jnp.interfaces.NamingContext.checkRef(NamingContext.java:1414)
      at org.jnp.interfaces.NamingContext.lookup(NamingContext.java:594)
      at org.jnp.interfaces.NamingContext.lookup(NamingContext.java:587)
      at javax.naming.InitialContext.lookup(InitialContext.java:351)
      at erasmo.jms.Sender.main(Sender.java:50)
      Caused by: javax.naming.CommunicationException: Failed to connect to server 10.173.172.176:1099 [Root exception is java.security.AccessControlException: access denied (java.net.SocketPermission 10.173.172.176:1099 connect,resolve)]
      at org.jnp.interfaces.NamingContext.getServer(NamingContext.java:269)
      at org.jnp.interfaces.NamingContext.checkRef(NamingContext.java:1385)
      ... 4 more
      Caused by: java.security.AccessControlException: access denied (java.net.SocketPermission 10.173.172.176:1099 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)
      at java.lang.SecurityManager.checkConnect(SecurityManager.java:1034)
      at java.net.Socket.connect(Socket.java:501)
      at java.net.Socket.connect(Socket.java:457)
      at java.net.Socket.(Socket.java:365)
      at java.net.Socket.(Socket.java:265)
      at org.jnp.interfaces.TimedSocketFactory.createSocket(TimedSocketFactory.java:84)
      at org.jnp.interfaces.TimedSocketFactory.createSocket(TimedSocketFactory.java:77)
      at org.jnp.interfaces.NamingContext.getServer(NamingContext.java:239)
      ... 5 more