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.



View the original post : 
http://www.jboss.com/index.html?module=bb&op=viewtopic&p=3977360#3977360

Reply to the post : 
http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=3977360
_______________________________________________
jboss-user mailing list
[email protected]
https://lists.jboss.org/mailman/listinfo/jboss-user

Reply via email to