We upgraded to Jboss 4.20CR1 and use inside a java client application org.jboss.security.jndi.JndiLoginInitialContextFactory as InitialContextFactory But since upgrade there will be a "NoClassDefFoundError" thrown for org/jboss/naming/NamingContextFactory.
The 4.20CR1 release seems to missing the class org.jboss.naming.NamingContextFactory in jbossall-client.jar.
Opened jiar-issue http://jira.jboss.com/jira/browse/JBAS-4184.
Any reason why upgrade is made to a Candidate Release (CR) instead of General Release (GA)
JBoss 4.0.5 GA has the class there