项目连接Oracle数据库报错


要连的数据库是oracle 11.2 项目是从SVN上check out的。我检查了class12.jar和ojdbc6.jar都已经添加到项目的引用里了,但是连接数据库时还是提示NullPointerException ,这是后台的详细信息。 各位大神,能否给小弟指点一二,是哪个环节出了问题。

1.2013-9-25 16:44:17 org.apache.catalina.loader.WebappClassLoader 2.validateJarFile

3.: validateJarFile(E:\Program Files\apache-tomcat-6.0.35-x86

4.\webapps\Project\WEB-INF\lib\servlet-api.jar) - jar not loaded. See Servlet Spec 2.3, section 9.7.2. Offending class: javax/servlet/Servlet.class

6.0 [http-8080-6] WARN Debug - org.project.db.DBSql->DBSql() INFO : 7.Default pool is null

8.Config XML is Null...

9.Read Config XML File::[file:/E:/Program%20Files/apache-tomcat-6.0.35-x86/webapps/Project/WEB-INF/classes/config.xml]

10.Try to Start All Pool...

11.This system use Oracle RDBMS.

12.Self Pool Config Err:java.lang.NumberFormatException: For input string: "" get local DB Pool Connect Fail:java.sql.SQLException: No suitable driver found for jdbc:oracle:thin:@oracleDB:1521:sid

13.Create one Connect to jdbc:oracle:thin:@oracleDB:1521:sid Success!

14.106 [http-8080-6] ERROR Debug - org. .db.DBSql.executeQuery(5)->java.lang.NullPointerException

javaee web oracle

kunge哈? 10 years, 8 months ago

12.Self Pool Config Err:java.lang.NumberFormatException: For input string: "" get local DB Pool Connect Fail:java.sql.SQLException: No suitable driver found for jdbc:oracle:thin:@oracleDB:1521:sid
很明显,驱动

阿斯蒙帝斯 answered 10 years, 8 months ago

Your Answer