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