Diary: cannot find class [org. Apache. commons. DBCP. basicdatasource]

Source: Internet
Author: User

1. Cannot find class [org. Apache. commons. DBCP. basicdatasource]

<Bean id = "datasource"
Class = "org. Apache. commons. DBCP. basicdatasource"
Destroy-method = "close">
<Property name = "driverclassname"
Value = "com. Microsoft. JDBC. sqlserver. sqlserverdriver"/>
<Property name = "url"
Value = "JDBC: Microsoft: sqlserver: // localhost: 1433; databasename = itsm_jbpm; selectmethod = cursor;"/>
<Property name = "username" value = "sa"/>
<Property name = "password" value = "sa"/>
</Bean>

The main reason is that there are jar packages of earlier Spring versions in classpath. The new configuration file mentioned above can only be used in spring2.x. This new writing method can save a lot of time for systems with a large number of methods and classes that require transaction configuration. Remove the jar from the previous version.

If there is still a problem, it is missing

Jar packages: commons-dbcp.jar, commons-pool.jar,

2. java. Lang. noclassdeffounderror: ORG/Apache/commons/logging/logfactory

Commons-logging.jar package missing

3. noclassdeffounderror: javax/transaction/transactionmanager

JTA. jar is missing in the project. It can be found in the LIB/J2EE directory.

This package is in the hibernate lib dir

 

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.