Create
cancel
Showing results for 
Search instead for 
Did you mean: 
Sign up Log in
Celebration

Earn badges and make progress

You're on your way to the next level! Join the Kudos program to earn points and save your progress.

Deleted user Avatar
Deleted user

Level 1: Seed

25 / 150 points

Next: Root

Avatar

1 badge earned

Collect

Participate in fun challenges

Challenges come and go, but your rewards stay with you. Do more to earn more!

Challenges
Coins

Gift kudos to your peers

What goes around comes around! Share the love by gifting kudos to your peers.

Recognition
Ribbon

Rise up in the ranks

Keep earning points to reach the top of the leaderboard. It resets every quarter so you always have a chance!

Leaderboard

Come for the products,
stay for the community

The Atlassian Community can help you and your team get more value out of Atlassian products and practices.

Atlassian Community about banner
4,552,574
Community Members
 
Community Events
184
Community Groups

Connect external database jira plugin

Hello guys,

I have a big problem.

I'm using Active Objects in my application. With Active Objects I'm using jira database. I don't have problem with AO, It's working well.

But in my jira I need to get informations from another database (Oracle).

I put in my pom.xml:

<dependency>
     <groupId>jdbc</groupId>
     <artifactId>jdbc-oracle</artifactId>
     <version>11.1.0.7</version>
</dependency>

When I put this, my plugin stop to work and I have this error:

Caused by: org.osgi.framework.BundleException: Unresolved constraint in bundle (CLASS_PLUGIN) [185]: Unable to resolve 185.0: missing requirement [185.0] osgi.wiring.package; (osgi.wiring.package=com.sun.security.auth.module)

When I change to:

<dependency>
     <groupId>jdbc</groupId>
     <artifactId>jdbc-oracle</artifactId>
     <version>11.1.0.7</version>
     <scope>provided</scope>
</dependency>

I don't have any error but when I run my code:

Class.forName("oracle.jdbc.driver.OracleDriver");

I have:

java.lang.ClassNotFoundException: oracle.jdbc.driver.OracleDriver not found by ... [166]

What can I do to fix this problem ?

thanks

4 answers

<scope>provided</scope>

means that application will have (what's not the case in our situation, obviously) this package already at the time your plugin will start to be deployed -  "these classes will be provided at runtime by the product".

To use third-party code in your plugin you should use <scope>compile</scope>

 

https://developer.atlassian.com/server/framework/atlassian-sdk/managing-dependencies/

Still the same issue. Trying for jira server 8.5.1 with

<dependency>
<groupId>com.oracle.jdbc</groupId>
<artifactId>ojdbc8</artifactId>
<version>12.2.0.1</version>
</dependency>

@leandro siciliano

Hey Leandro, 

I am experiencing issues as you. Did you manager to find a solution?

0 votes
Andy Heinzer
Atlassian Team
Atlassian Team members are employees working across the company in a wide variety of roles.
Jul 18, 2017

Natively JIRA supports connections to Oracle databases (for storing JIRA data).  However with JIRA 7, it only supports Oracle 12c.  As such our installation packages are actually shipping an existing jdbc driver.   I think this file is in the install folder/lib and tends to be named ojdbc7.jar or something alike.  I think you might still be able to use this 12 driver for connecting to an 11 database, but I'm not sure.   

I did notice that in the JIRA dbconfig.xml if you configure JIRA to use Oracle as the database that stores JIRA data, the format of the dbconfig lists the driver-class value as "oracle.jdbc.OracleDriver".   But I see in your code it is listed as "oracle.jdbc.driver.OracleDriver".   Try changing the class name to match my example and see if that works.

do you have exactly dependency in your pom where could send me ?

Suggest an answer

Log in or Sign up to answer
TAGS
AUG Leaders

Atlassian Community Events