You can read about this in the Tomcat docs: Loader HOW-TO Class .
The simplest case and method is to put these commonly used banks in the $CATALINA_BASE/lib dir directory - they will be loaded by the Tomcat class loader.
But it doesn't seem to be a very good practice, as mentioned in the instructions:
Typically, application classes should NOT be posted here.
Personally, in practice, I would ignore this hint and still put the banks in this folder. But if you want to be precise, you can create a separate path on the server (or even inside the CATALINA_BASE folder) and place banks there. After that, you should specify this path in the $CATALINA_BASE/conf/catalina.properties file in the common.loader property:
common.loader="${catalina.base}/lib","${catalina.base}/lib/*.jar","${catalina.home}/lib","${catalina.home}/lib/*.jar"
Andremoniy
source share