I have a spring MVC application where current oracle version of my application is 1.1.0.7.0 and I have this dependency
<dependency>
<groupId>com.oracle</groupId>
<artifactId>ons</artifactId>
<version>11.1.0.7.0</version>
</dependency>
I need to upgrade to oracle 19c.When I looked at Maven Repository, I found that the Oracle ons artifact is moved to com.oracle.database.jdbc. When I replaced the ons dependency with the new dependency as below, I am getting java.lang.NoClassDefFoundError: oracle/ons/ONS" Errors . Below is my new dependency for oracle 19c. Pease advise.
<dependency>
<groupId>com.oracle.database.jdbc</groupId>
<artifactId>ojdbc8</artifactId>
<version>19.12.0.0</version>
</dependency>