[ 
https://issues.apache.org/jira/browse/DERBY-4120?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=14007727#comment-14007727
 ] 

Christian Schneider commented on DERBY-4120:
--------------------------------------------

I think a small tweak can solve this problem. Simply export and import the 
package org.apache.derby.jdbc in both jars. Then OSGi will make sure the 
package from one of the jars is exported and the exported one is then also used 
for the derbyclient and derby bundles internally. This avoids the classloading 
problems that can occur if you export a package from two jars.

> derbyclient.jar is not a complete OSGi bundle
> ---------------------------------------------
>
>                 Key: DERBY-4120
>                 URL: https://issues.apache.org/jira/browse/DERBY-4120
>             Project: Derby
>          Issue Type: Bug
>          Components: Eclipse Plug-in, Services
>    Affects Versions: 10.4.2.0
>         Environment: OSGi
>            Reporter: JJ Snyder
>            Assignee: Bryan Pendleton
>             Fix For: 10.5.3.1, 10.6.1.0
>
>         Attachments: addToManifest.diff
>
>
> The manifest in derbyclient.jar is incomplete for usage in OSGi.  There are 
> no packages exported.  This appears to only be a problem in standalone 
> equinox (outside of eclipse).  Note that I did not try other OSGi containers.
> The fix is relatively simple.  Adding the Export-Package manifest header 
> should take care of the problem.



--
This message was sent by Atlassian JIRA
(v6.2#6252)

Reply via email to