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

Jira plugin to connect to Oracle Database and collect data

Hi.

I would like to create a plugin to connect to a another database (Oracle 12c) to collect some data and provide this data in a custom field. To do that, I'm thinking in use a service to collect data and populate an active object on the Jira side. Then the Active object data to fill the custom field.

For now, I'm just trying to get the connection but without success. The plugin fails at installation time with 

Caused by: org.osgi.framework.BundleException: Unresolved constraint in bundle com.asb.db [241]: Unable to resolve 241.0: missing requirement [241.0] osgi.wiring.package; (osgi.wiring.package=com.oracle.common.base)

or

 Detected an error (BundleException) enabling the plugin 'com.asb.db' : Unresolved constraint in bundle com.asb.db [240]: Unable to resolve 240.0: missing requirement [240.0] osgi.wiring.package; (osgi.wiring.package=oracle.jdbc).

depends if i use provided or not in the pom.xml dependecies

My current Jira installation is using Oracle 12c, too. I'm wondering, how can I get the access to the Oracle jar (provided or not) avoiding this kind of errors.

Anyone has an example in how to avoiding this kind of conflicts 

 

1 comment

Hi!

Is there any luck on solving it? I have the same issue :(

regards,

Eugene

One of possible solution may be adding it in maven plugin. But once I added it - then I started seeing another issues related to java 9 :(

<properties>
<jdbc.version>12.2.0.1</jdbc.version>
</properties>


<dependency>
<groupId>com.oracle</groupId>
<artifactId>ojdbc8</artifactId>
<version>${jdbc.version}</version>
<optional>true</optional>
</dependency>


<build>
<plugins>
<plugin>
<groupId>org.apache.felix</groupId>
<artifactId>maven-bundle-plugin</artifactId>
<version>3.5.0</version>
<extensions>true</extensions>
<configuration>
<instructions>
<Bundle-License>non-free</Bundle-License>
<Bundle-Vendor>Oracle</Bundle-Vendor>
<_exportcontents>*</_exportcontents>
<Export-Package>
oracle.core.*;version="${jdbc.version}",
oracle.jdbc.*;version="${jdbc.version}",
oracle.jpub.*;version="${jdbc.version}",
oracle.net.*;version="${jdbc.version}",
oracle.security.*;version="${jdbc.version}",
oracle.sql.*;version="${jdbc.version}"
</Export-Package>
<Import-Package>*;resolution:=optional</Import-Package>
<Private-Package>!*</Private-Package>
<Embed-Dependency>*;scope=compile|runtime;type=!pom;inline=true</Embed-Dependency>
</instructions>
</configuration>
</plugin>
... some other plugins
...
...
</plugins>
</build>

Comment

Log in or Sign up to comment
TAGS
AUG Leaders

Atlassian Community Events