"java.lang.ClassNotFoundException: oracle.jdbc.pooling.Factory" "java.lang.ClassNotFoundException: oracle.jdbc.pooling.Factory" oracle oracle

"java.lang.ClassNotFoundException: oracle.jdbc.pooling.Factory"


The Jdbc (ojdbc7.jar) and UCP (ucp.jar) jars must always be from the same version (12.1.0.2). You can't upgrade one without upgrading the other. This version dependency was introduced in 12c. It wasn't the case before.


There is a ojdbc7.jar/ojdbc6.jar file dependency. You need to download/update either depending on the java version you are using.


Adding the following maven dependencies solved the issue for me

                <dependency>                    <groupId>com.oracle.jdbc</groupId>                    <artifactId>ojdbc7</artifactId>                    <version>12.1.0.2</version>                </dependency>                <dependency>                    <groupId>com.oracle.jdbc</groupId>                    <artifactId>ucp</artifactId>                    <version>12.1.0.2</version>                </dependency>