Common Errors and solutions for Tomcat connection pool Configuration

Source: Internet
Author: User

1. Cannot create JDBC driver of class ''for connect url''

Problem: The JDBC driver is not found, but the class value in the prompt is null. Therefore, we can conclude that Tomcat does not find the resource configuration information in server. xml. Possible causes include:

(1) No resource is configured;

(2) the location of resource configuration information is incorrect.

(3) The driverclassname and URL are incorrectly spelled.

Solution: Make sure that the resource is correctly configured and placed in the defaultcontext or context configuration section.

2. Cannot create JDBC driver of class 'xxx' for connect url''

Solution: the configuration of the database Driver Class Name XXX is incorrect. Check and modify it. If you confirm it is correct, the driver library cannot be found, copy a jar file to Tomcat/common/lib.

3. Cannot create JDBC driver of class ''for connect URL 'xxx'

Solution: the configured URL string syntax is incorrect. Check and modify the syntax.

4. Cannot create poolableconnectionfactory, cause: Io exception: Connection refused

Problem: the connection pool factory object cannot be created because the connection is denied.

Solution: Check the URL string. The server address, port, database name, database instance name, and other information may be incorrect. Modify.

5. No suitable driver has no matching driver.

Analysis: The driver configuration is incorrect. Check whether the common/lib sub-directory of Tomcat contains the database driver jar.

6. Cannot create resource instance cannot create a data source instance

Problem: commons-dbcp-1.1.jar not found (versions may be different)

Solution: copy the commons-dbcp-1.1.jar library file to the tomcat/common/lib subdirectory.

7. root cause:

Java. Lang. noclassdeffounderror: ORG/Apache/commons/collections/cursorablelinkedlist

Problem: The commons-collections.jar cannot be found.

Solution: copy the commons-collections.jar library file to the tomcat/common/lib subdirectory.

8. root cause:

Java. Lang. noclassdeffounderror: ORG/Apache/commons/pool/impl/genericobjectpool

Problem: commons-pool-1.1.jar not found (versions may be different ).

Solution: copy the commons-pool-1.1.jar library file to the tomcat/common/lib subdirectory.

 

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.