Post the entire exception stacktrace. When does this exception occur? Does it happen when you are doing a lookup of the datasource and trying to obtain a connection from it? If yes, then have you specified the PROVIDER_URL as 184.108.40.206 to the InitialContext (since the services are longer binded to localhost):
Properties props = new Properties(); props.put(Context.INITIAL_CONTEXT_FACTORY, "org.jnp.interfaces.NamingContextFactory"); props.put(Context.PROVIDER_URL,"jnp://220.127.116.11:1099"); Context ctx = new InitialContext(props); ctx.lookup("blahblahblah");
Thanks alot. Yeah, you are right. I have to modify the Context part.
Quick reply solves the problem in short time.
Thank you very much.