I am unit-testing my jersey web-service through jersey client using eclipse Oxygen.3a, Tomcat 9, JDK 1.8, and ojbc14.jar in my WEB-INF/lib of my web-app in eclipse. I do not have any ojdbc.jar's in my Tomcat/lib dir. So there is single copy of my ojdbc jar file, i.e. ojdbc14.jar. My JDBC URL is jdbc:oracle:thin:@mcname.com:1521:orcl1
.
My request is failing due to the following error:
Exception when obtaining connection java.sql.SQLException: No suitable driver at java.sql.DriverManager.getDriver(DriverManager.java:315) at :
Code:
DriverManager.getDriver("jdbc:oracle:thin:@" + url);