急:webshere配置資料庫sybase的連線池的問題

pdxboy發表於2003-03-05
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

好象是我的連線池沒配好的原因吧,應該如何配置呢?

相關文章