0 Replies Latest reply on Oct 29, 2001 6:02 AM by Jens Kumpfmueller

    ejb security problem

    Jens Kumpfmueller Newbie

      hi

      when i test a deployed ejb via junit i got following error:


      java.security.AccessControlException: access denied (java.net.SocketPermission 127.0.0.1:1099 connect,resolve)
      at java.security.AccessControlContext.checkPermission(AccessControlContext.java:273)
      at java.security.AccessController.checkPermission(AccessController.java:404)
      at java.lang.SecurityManager.checkPermission(SecurityManager.java:545)
      at java.lang.SecurityManager.checkConnect(SecurityManager.java:1047)
      at java.net.Socket.connect(Socket.java:424)
      at java.net.Socket.connect(Socket.java:379)
      at java.net.Socket.(Socket.java:293)
      at java.net.Socket.(Socket.java:121)
      at org.jnp.interfaces.NamingContext.getServer(NamingContext.java:102)
      at org.jnp.interfaces.NamingContext.checkRef(NamingContext.java:776)
      at org.jnp.interfaces.NamingContext.lookup(NamingContext.java:340)
      at org.jnp.interfaces.NamingContext.lookup(NamingContext.java:333)
      at javax.naming.InitialContext.lookup(InitialContext.java:350)
      at de.inmediasp.services.IdTest.setUp(Unknown Source)
      at junit.framework.TestCase.runBare(TestCase.java:129)
      at junit.framework.TestResult$1.protect(TestResult.java:106)
      at junit.framework.TestResult.runProtected(TestResult.java:124)
      at junit.framework.TestResult.run(TestResult.java:109)
      at junit.framework.TestCase.run(TestCase.java:122)
      at junit.framework.TestSuite.runTest(TestSuite.java:173)
      at junit.framework.TestSuite.run(TestSuite.java:168)
      at org.apache.tools.ant.taskdefs.optional.junit.JUnitTestRunner.run(JUnitTestRunner.java:231)
      at org.apache.tools.ant.taskdefs.optional.junit.JUnitTestRunner.main(JUnitTestRunner.java:409)


      what to do against this?

      thx in advice

      jens