关于第二章的,在线等!!!急等!!!

05-05-11 whitefox1317

我用JBUILDER2005+TOMCAT5.0+sqlserver2000编译时会出现如下错误:

getDataSource() error: javax.naming.NameNotFoundException: Name jdbc is not bound in this Context

Mysql init error: java.lang.NullPointerException

java.lang.NullPointerException

Mysql close error: java.lang.NullPointerException

JBUILDER2005+WEBLOGIC8.1+sqlserver2000会出现如下错误:

JNDI的名字是:jdbc/mssql

getDataSource() error: javax.naming.NameNotFoundException: While trying to look up comp/env/jdbc/mssql in /app/webapp/register/235207.; remaining name 'comp/env/jdbc/mssql'

Mysql init error: java.lang.NullPointerException

java.lang.NullPointerException

Mysql close error: java.lang.NullPointerException

    

banq
2005-05-14 16:22

需要正确配置容器的JNDI名称,正确格式引用即可.