I have to deploy to tomcat7 server, an application that connect to two databases:
- Oracle Database 12.1.0.2 which need the ojdbc7.jar
- Oracle Database 11.2.0.4 which uses ojdbc6.jar
I created two datasources that uses the same class from both libs, now I need to copy libs into $CATALINA_HOME/lib, I fear ending up with calssloader conflit as the two jars share many classes with same className.
type="javax.sql.DataSource"
factory="org.apache.tomcat.jdbc.pool.DataSourceFactory"
driverClassName="oracle.jdbc.OracleDriver"
How to deal with that ?