My Client program is: env.put(Context.INITIAL_CONTEXT_FACTORY,"org.jnp.interfaces.NameingContextFactory"); env.put(Context.URL_PKG_PREFIXES,"org.jboss.naming:jnp.interfaces"); env.put(Context.PROVIDER_URL,"jnp://localhost:1099");
Looks like a classloader issue. Are you packaging any jboss specific jar files in your application package? If yes, then remove those jar files. Those jars are already available in the JBoss lib folder.