Hi , We are trying to deploy our application on tomcat 9.0.70. Before the hibernate bootstraps in our application , we do change the "Current Thread Context Class Loader " in the running thread to our "Custom class loader" which is required. Changing the "Current Thread Context Class Loader " fails the JNDI look up for data source done by hibernate. if the "Current Thread Context Class Loader " is not changed than JNDI look up works. We have also deployed the same application with the same configurations on apache-tomcat-7.0.57 and it works fine there , no issues with JNDI look up. We have not faced this issues on IBM WebSphere and JBoss EAP but apache-tomcat-7.0.57 onwards. It will be great help if we could get a solution for this.
RegardsDinesh