So there is a difference between this time and the previous configuration, that is, you moved the driver package of JDBC, right? Then try to move it back to the original /WEB-INF/lib and try again. In principle, the JDBC driver itself should not be placed under the server, but under the application or directory, because we need to consider that when your application uses a specific version of the driver because of any bug in the driver, multiple programs may use different versions of the driver. It is not uncommon for drivers to have bugs. For example, a version of DB2' s type 2 driver may be normal, but the pure java driver of type 4 will have a null pointer exception when processing plastic fields.
The purpose of putting it in the endorsed directory, that is, the starting point of endorsement design, is that this directory has a low priority in the class loader hierarchy and will only be found if the class cannot be found elsewhere. In other words, if a project has its own driver under WEB-INF/lib, the same name under approved will not be used.