0
votes

My tomcat web app isn't loading the oracle driver any longer. I moved tomcat and messed with the server definition. Its up and running but can't connect to Oracle due to a missing driver.

I had similar problem with log4j and other libs but adding the lib into the Deployment Assembly of the web app properties solved those issues.

The Oracle lib is there as is its odbc6.jar.

I also tried copying it to WEB-INF/lib with to no avail.

I have a hunch this is a class path problem but I'm not sure how to fix it. I'm also concerned that tomcat can find other libs but not the oracle liv.

SQLException: No suitable Driver Found for jdbc:oracle:thin:@//localhost:1521/orcl

1
Where's the stack trace of the exception?JB Nizet
I also tried adding the oracle lib to the classpath and restarting everything. no luckglez

1 Answers

0
votes

Fixed. I removed the server from the eclipse server window. Clean the project. Added the server back in. Cleaned and rebuild and it worked.