2 Replies Latest reply: Mar 8, 2012 4:30 AM by Sasi Levi RSS

    JNDI over HTTPS

    Sasi Levi Newbie

      Hi all,


      I'm using JBOSS 4.2.3GA.

      I implemented JNDI over HTTPS and i'm struggling with problem for a few days now.

      I'm using the following code:


      Properties properties = new Properties(System.getProperties());
      properties.setProperty(Context.INITIAL_CONTEXT_FACTORY, "org.jboss.naming.HttpNamingContextFactory");
      properties.setProperty("java.protocol.handler.pkgs", "org.jboss.naming");
      properties.setProperty(Context.PROVIDER_URL, "https://hostname/invoker/JNDIFactory");
      properties.setProperty(Context.SECURITY_PRINCIPAL, username);
      properties.setProperty(Context.SECURITY_CREDENTIALS, password);
      InitialContext context = new InitialContext(properties);


      I also implmeneted login module.


      I looked over the server and I see that username and password are transfered to the server with NULL.


      Any ideas what can be the cause?