Check your context lookup code. If you have used run with a ipadress to start jboss then
put the same ipaddess for java.naming.provider.url then you will not get this error.
Properties env = new Properties();
env.setProperty("java.naming.factory.initial",
"org.jnp.interfaces.NamingContextFactory");
// I had to change localhost to the ipadress of the dev server.
// you might have to put it back to localhost if u want to test it on
// your local server
//env.setProperty("java.naming.provider.url", "localhost:1099");
env.setProperty("java.naming.provider.url", "Use your serverip
address:1099");
env.setProperty("java.naming.factory.url.pkgs",
"org.jboss.naming");
ctx = new InitialContext(env);
View the original post :
http://www.jboss.com/index.html?module=bb&op=viewtopic&p=4151180#...
Reply to the post :
http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&a...