When compiling with Eclipse, an error occurs due to class relations. Both of the following have not found the library (jar file).
ClassNotFoundException: org.apache.tomcat.dbcp.dbcp2.BasicDataSource
jar file location → tomcat / 9 / lib / tomcat-dbcp.jar (This package contains the BasicDataSource class)
java.lang.NoClassDefFoundError: org/apache/juli/logging/LogFactory
jar file location → tomcat / 9 / bin / tomcat-juli.jar