Cannot load JDBC Driver Class 'oracle. JDBC. Driver. oracledriver'

Source: Internet
Author: User

All the configurations have been completed, and the server under eclipse can run. When the *. War package is output, it cannot run.

Jdbcexceptionreporter cannot load JDBC Driver Class ...... Error

After checking online, we can see that a similar error is successfully solved. The content is as follows:

Standardwrapper. throwable
Org. springframework. JDBC. cannotgetjdbcconnectionexception: cocould not get JDBC connection; Nested exception is Org. apache. tomcat. DBCP. DBCP. sqlnestedexception: cannot load JDBC Driver Class 'oracle. JDBC. driver. oracledriver'
Caused:
Org. Apache. tomcat. DBCP. DBCP. sqlnestedexception: cannot load JDBC Driver Class 'oracle. JDBC. Driver. oracledriver'
At org. Apache. tomcat. DBCP. DBCP. basicdatasource. createdatasource (basicdatasource. Java: 1136)
At org. Apache. tomcat. DBCP. DBCP. basicdatasource. getconnection (basicdatasource. Java: 880)

Since Oracle 9.2, the name of the JDBC driver will change, and the driver name of JDK (class12.jar) will not change, all changes to the driver name starting from jdk1.4. For example, the driver name of jdk1.4 is ojdbc14.jar. The jdk1.5 driver is named ojdbc15.jar.

The cause of my error is that ojdbc14.jar is placed under the Lib package of the application and should be placed under the Lib under the common of Tomcat to avoid this problem.

Related Article

Cloud Intelligence Leading the Digital Future

Alibaba Cloud ACtivate Online Conference, Nov. 20th & 21st, 2019 (UTC+08)

Register Now >

11.11 Big Sale for Cloud

Get Unbeatable Offers with up to 90% Off,Oct.24-Nov.13 (UTC+8)

Get It Now >

Alibaba Cloud Free Trial

Learn and experience the power of Alibaba Cloud with a free trial worth $300-1200 USD

Learn more >

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.