It's not the same without you

Join the community to find out what other Atlassian users are discussing, debating and creating.

Atlassian Community Hero Image Collage
Highlighted

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

Community Events

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

Find an event

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

Unfortunately there are no Community Events near you at the moment.

Host an event

You're one step closer to meeting fellow Atlassian users at your local event. Learn more about Community Events

Events near you