java.lang.ClassNotFoundException Despite Driver In Web-Inf\Lib Directory

Fresh install of Confluence on Win Server 2012 R2, trying to connect to Oracle on a different host. I have placed the ojdbc7.jar file in the <installdir>\confluence\WEB-INF\Lib directory and no luck, I get the classic

'Problem connecting to your database
com.atlassian.config.bootstrap.BootstrapException: java.lang.ClassNotFoundException: oracle.jdbc.OracleDriver'

error. I have also tried the ojdbc8.jar and ojdbc7- drivers as well.

I have also tried putting these in <installdir>\confluence\Lib as well.

I am out of patience... help.

1 answer

1 accepted

0 votes
Accepted answer
Ann Worley Atlassian Team Sep 12, 2017

You were on the right track adding the ojdbc8.jar file to the <installation-directory>/confluence/WEB-INF/lib directory. Based on this, I assume you saw the instructions on this page: Database JDBC Drivers

The only reason I can think of why the setup wizard is complaining that the driver cannot be found, is file system permissions. Does the user account you are installing with have access to the folder, <installation-directory>/confluence/WEB-INF/lib? Maybe the permissions on the driver file are different because it was copied into the folder later, so please check the permissions on the file as well as the folder.

Ann, I did check the permissions but after reading your post I went back and unchecked the read-only attributes as well for the directory. I also rebooted for good measure and it worked. Thanks for making me re-look at that.

Interesting to note is that when I did that I moved the ojdbc8.jar file to the directory based on your feedback and when I opened IE to configure it threw an ugly exception saying it could not find the ojdbc7- file. So it must save that as a config parameter somewhere? When I put the ojdbc7- file back and removed the ojdbc8.jar and restarted IE, everything worked.

Thanks for the response.

Suggest an answer

Log in or Sign up to answer
Community showcase
Posted Feb 06, 2019 in Confluence

Try out the new editing experience

Hi team, I’m Avinoam, a product manager on Confluence Cloud, and today I’m really excited to let the Community know that all customers can now try out the new editing experience and see some of the ...

803 views 38 5
Join discussion

Atlassian User Groups

Connect with like-minded Atlassian users at free events near you!

Find a group

Connect with like-minded Atlassian users at free events near you!

Find my local user group

Unfortunately there are no AUG chapters near you at the moment.

Start an AUG

You're one step closer to meeting fellow Atlassian users at your local meet up. Learn more about AUGs

Groups near you