How to resolve "java.lang.ClassNotFoundException: oracle.jdbc.driver.OracleDriver not found by com.onresolve.jira.groovy.groovyrunner" error

Hello,

We have upgraded JIRA version from 6.4.12 to JIRA 7.1.9.Now we are using 4.3.6 Script runner plugin version in JIRA version 7.1.9.

But When we run the existing groovy script on JIRA version 7.1.9 script throws

"java.lang.ClassNotFoundException: oracle.jdbc.driver.OracleDriver not found by com.onresolve.jira.groovy.groovyrunner" error in the log hence script is not working on JIRA version 7.1.9.

 

Can you please us to resolve the above error.

 

Thanks and Regards,

Suchit R Kharatmol

 

3 answers

1 accepted

Hi Suchit,

There is an example in documentation on how to connect to databases

Hi Thanos,

Thanks for your response.

The link provided by you resolved the above error.By loading the driver class manually and creating the connection mentioned in the https://scriptrunner.adaptavist.com/4.3.10/jira/recipes/misc/connecting-to-databases.html link it get resolved.Now the script is working fine.

Thank you so much for your help.

Thanks and Regards,

Suchit R Kharatmol.

After upgrading JIRA files added to /opt/atlassian/your.jira.dir/lib/ are not automatically moved, so you need to copy the database class jar from your old install folder to your new one, stop JIRA and restart it again. This should now work as intended.

Hi Jonas,

Thanks for your response.

I tried with your suggested solution but still got the same error.Also I can see already the database class jar moved to installed folders of upgraded instance.

Thanks and Regards,

Suchit R Kharatmol.

 

Suggest an answer

Log in or Sign up to answer
How to earn badges on the Atlassian Community

How to earn badges on the Atlassian Community

Badges are a great way to show off community activity, whether you’re a newbie or a Champion.

Learn more
Community showcase
Published May 30, 2018 in Marketplace Apps

Three tips for boosting your board's efficiency with Story Maps

Trello is one of the most effective tools for driving your sprints. It's customizable for every Agile team and product owners and Scrum masters (SM) love it. However, Agile teams often struggle with:...

843 views 2 9
Read article

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