问题描述:配置完JDBC后,打开页面的时候,报出如下错误信息:
javax.naming.NameNotFoundException: Unable to resolve oracThin. Resolved: '' Unresolved:'oracThin' ; remaining name ''
JDBC配置如下:
Connection Pools(连接池)
Name:OracThin
URL:jdbc:oracle:thin.0.0.1:LYSIMIS
Driver Classname:oracle.jdbc.driver.OracleDriver
Properties:
user=system
password=manager
dll=ocijdbc8
protocol=thin
数据源配置如下:
Name:OracThin
JNDI Name:OracThin
Pool Name:OracThin
当程序执行到这一步时出错。
ctx = new InitialContext();
ds = (javax.sql.DataSource)ctx.lookup ("OracThin");
问题解决后汉字是乱码