4 Replies Latest reply on Apr 1, 2004 7:51 AM by Joost Kraaijeveld

    NamingException in Applet

    Joost Kraaijeveld Newbie

      After upgrading from JBoss 3.2.1 with Jetty to JBoss 3.2.3 with Tomcat I get the following exception if I try to get to a statefulsession EJB on the server.

      javax.naming.NamingException: Failed to retrieve Naming interface [Root exception is java.security.AccessControlException: access denied (java.net.NetPermission setDefaultAuthenticator)]
      at org.jboss.naming.HttpNamingContextFactory.getInitialContext(HttpNamingContextFactory.java:69)
      at javax.naming.spi.NamingManager.getInitialContext(Unknown Source)
      at javax.naming.InitialContext.getDefaultInitCtx(Unknown Source)
      at javax.naming.InitialContext.init(Unknown Source)
      at javax.naming.InitialContext.(Unknown Source)
      at Client.getInitialContext(Unknown Source)
      at Client.init(Unknown Source)
      at sun.applet.AppletPanel.run(Unknown Source)
      at java.lang.Thread.run(Unknown Source)
      Caused by: java.security.AccessControlException: access denied (java.net.NetPermission setDefaultAuthenticator)
      at java.security.AccessControlContext.checkPermission(Unknown Source)
      at java.security.AccessController.checkPermission(Unknown Source)
      at java.lang.SecurityManager.checkPermission(Unknown Source)
      at java.net.Authenticator.setDefault(Unknown Source)
      at org.jboss.invocation.http.interfaces.Util.init(Util.java:79)
      at org.jboss.naming.HttpNamingContextFactory.getNamingServer(HttpNamingContextFactory.java:106)
      at org.jboss.naming.HttpNamingContextFactory.getInitialContext(HttpNamingContextFactory.java:65)
      ... 8 more

      I have read all the docs available (including the pay docs), searched through the forums but still have no clue what to do. Anyone any suggestion?

      TIA

      Joost Kraaijeveld