[jboss-user] [EJB 3.0] - Re: Remote Client to EJB 3.0 fail .. :( javax.naming.Communi

prps1234 do-not-reply at jboss.com
Thu May 15 14:04:36 EDT 2008


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#4151180

Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=4151180



More information about the jboss-user mailing list