1 Reply Latest reply on Oct 11, 2006 7:21 AM by Jan Zitniak

    Does JndiLoginInitialContextFactory in JBoss 3.2.7 exist?

    Jan Zitniak Newbie

      Hello everybody,

      I got task transform the project from JBoss 4.0.4 to JBoss 3.2.7. In source code I'm using something like this:

      
      env.setProperty(Context.INITIAL_CONTEXT_FACTORY, "org.jboss.security.jndi.JndiLoginInitialContextFactory");
      env.setProperty(Context.PROVIDER_URL, "jnp://localhost:1099/");
      env.setProperty(Context.SECURITY_PRINCIPAL, userName);
      env.setProperty(Context.SECURITY_CREDENTIALS, password);
      
      


      when I execute the code I got following:

      javax.naming.NoInitialContextException: Cannot instantiate class: org.jboss.security.jndi.JndiLoginInitialContextFactory [Root exception is java.lang.ClassNotFoundException:org.jboss.security.jndi.JndiLoginInitialContextFactory]
      
      


      I understand that JndiLoginInitialContextFactory doesn't exist but I read on http://wiki.jboss.org/wiki/Wiki.jsp?page=JndiLoginInitialContextFactory page that JndiLoginInitialContextFactory is also available for JBoss 3.2.7.

      Can you help me how resolve that? Thank you in advance.