Cannot load JDBC Driver Class 'oracle. JDBC. Drive

Source: Internet
Author: User

Catch sqlexception when trying to get connection from datasource
Org. Apache. tomcat. DBCP. DBCP. sqlnestedexception: cannot load JDBC Driver Class 'oracle. JDBC. Driver. oracledriver'

The class12.jar package has not been loaded in Tomcat. You can obtain the package from Oracle/ora92/jdbc/lib/classes12.zip In the oracle root directory. decompress the package and place it in the Tomcat root directory Lib.

Org. Apache. tomcat. DBCP. DBCP. sqlnestedexception: cannot create poolableconnec
Because
<Resource Name = "JDBC/mydatasource" auth = "Container" type = "javax. SQL. datasource "driverclassname =" oracle. JDBC. driver. oracledriver "url =" JDBC: oracle: thin: @ 127.0.0.1: 1521: Oracle. domain "username =" CMS "Password =" CMS "maxactive =" 20 "maxidle =" 10 "maxwait =" 100000 "/>
The URL in is not changed yet.

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.