[
https://issues.apache.org/jira/browse/ZOOKEEPER-2165?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=14494001#comment-14494001
]
Simon Kitching commented on ZOOKEEPER-2165:
-------------------------------------------
The fix is trivial, and affects only top-level file "build.xml". The
MANIFEST.MF is specified in build.xml via a hand-written <manifest> tag with
nested <attribute> entries. The one for ExportPackage needs to be extended to
include "org.apache.zookeeper.server.quorum.flexible".
With the current manifest, an OSGi bundle that tries to use class QuorumPeer
will automatically try to import package quorum.flexible and fail to resolve.
This can be worked around by forcing the quorom.flexible to not be imported,
but that is not very elegant.
Workaround for apps using zookeeper and maven-bundle-plugin:
<Import-Package>!org.apache.zookeeper.quorum.flexible, *</Import-Package>
> OSGi requires package "server.quorom.flexible" be exported
> ----------------------------------------------------------
>
> Key: ZOOKEEPER-2165
> URL: https://issues.apache.org/jira/browse/ZOOKEEPER-2165
> Project: ZooKeeper
> Issue Type: Bug
> Components: quorum
> Reporter: Simon Kitching
> Priority: Minor
>
> Class QuoromPeer has a constructor which takes a QuorumVerifier value as a
> parameter. This class is defined in package
> "org.apache.zookeeper.server.quorum.flexible" but that package is not
> exported.
--
This message was sent by Atlassian JIRA
(v6.3.4#6332)