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

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.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.