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 220.127.116.11 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://18.104.22.168: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.