My Java project when I run it on local server (localhost:8080) is throwing an error: java.lang.ClassNotFoundException: oracle.jdbc.OracleDriver
This error is thrown when Hibernate is trying to connect to Oracle database on
session = PersistenceManager.sessionFactory().openSession();
When I deploy app to Production or Test server there is no problem. In order to troubleshoot I need to make it work on my local machine. What am I missing?
First I thought that Oracle drivers are missing so I downloaded classes12.jar and added it to Java Build Path > Libraries. That didn't help. I am still getting same error.
Thanks
It might be on your build path but is it on the classpath of your app server ?