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 22.214.171.124 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://126.96.36.199: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.