WebLogic connectionpool exception: JDBC driver is not on the classpath error! (Solution)

Source: Internet
Author: User

After learning about EJB technology, I felt a little impressed. I decided to practice entitbean + sessionbean because entitbean (which is responsible for database operations on the server ), therefore, we need to configure the connection pool before this, the Weblogic I use, the problem mentioned in the title of the configuration, JDBC driver is not on the classpath, at first glance, I probably knew it was a problem with the driver jar package. Then, I put the package directly under the comm/lib directory of webliogc and re-connected the package. I still reported the exception, I decided to check it online. That is to say, we need to set classpath on the server first. Most of them are in commm/bin/commenv. CMD adds a sentence to this file:

Add: Set classpath = your driver jar path

OK. Now, restart the server. The connection prompt is "connection successful ".

Note: Although Weblogic and your selection help you automatically write the driver name, sometimes you need to write according to your driver:

Driver name and URL. Otherwise, your driver package may not match the driver name or URL provided by the driver package, and some errors are reported.

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.