急:webshere配置数据库sybase的连接池的问题

03-03-05 pdxboy

try {

Hashtable env = new Hashtable();

env.put(Context.INITIAL_CONTEXT_FACTORY,

"com.ibm.websphere.naming.WsnInitialContextFactory");

env.pu(Context.PROVIDER_URL,

"iiop://127.0.0.1:900");

ct = new InitialContext(env);

// ds = (DataSource) ct.lookup("dlda");

}

catch (Exception e) {

e.printStackTrace();

}

出现错误:

com.ibm.websphere.naming.CannotInstantiateObjectException: Exception occurred while the JNDI NamingManager was processing a javax.naming.Reference object. Root exception is java.lang.NullPointerException

好象是我的连接池没配好的原因吧,应该如何配置呢?