SpringBoot JNDI datasource throws java.lang.ClassNotFoundException: org.apache.tomcat.dbcp.dbcp2.BasicDataSourceFactory
问题 Similar questions have been asked before and I went through all of those but not able to solve problem. Related Questions - Q1,Q2,Q3, Q4, Q5, Q6 I have a Spring Batch project with Spring Boot and trying to use DB connection pools. I am using embedded tomcat container with version 8.5.x. Everything works fine if I use application.properties to specify data source and pool settings. But when I try to use JNDI, I get exception - Caused by: java.lang.ClassNotFoundException: org.apache.tomcat.dbcp