curator-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Alexey Markevich (JIRA)" <j...@apache.org>
Subject [jira] [Closed] (CURATOR-464) Unable to instantiate client in OSGi
Date Thu, 26 Apr 2018 13:03:00 GMT

     [ https://issues.apache.org/jira/browse/CURATOR-464?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel
]

Alexey Markevich closed CURATOR-464.
------------------------------------
    Resolution: Won't Fix

Its hard to implement due to maven-shade-plugin <-> maven-bundle-plugin incompatibility;
maven-shade-plugin works only on 'package' phase - same as maven-bundle-plugin.
Keep 2.11.1 as OSGi friendly with external Guava dependency.

> Unable to instantiate client in OSGi
> ------------------------------------
>
>                 Key: CURATOR-464
>                 URL: https://issues.apache.org/jira/browse/CURATOR-464
>             Project: Apache Curator
>          Issue Type: Bug
>          Components: Framework
>    Affects Versions: 2.12.0
>            Reporter: Alexey Markevich
>            Priority: Major
>
> {quote}
> 112 | Active  |  80 | 2.12.0         | Curator Client
> 113 | Active  |  80 | 2.12.0         | Curator Framework
> 114 | Active  |  80 | 2.12.0         | Curator Recipes
> {quote}
> {code}
> CuratorFramework client = CuratorFrameworkFactory.newClient("localhost:2181", new RetryOneTime(1000));
> {code}
> {noformat}
> Caused by: java.lang.NoClassDefFoundError: org/apache/curator/shaded/com/google/common/cache/CacheBuilder
> 	at org.apache.curator.framework.imps.NamespaceWatcherMap.<init>(NamespaceWatcherMap.java:31)
~[?:?]
> 	at org.apache.curator.framework.imps.CuratorFrameworkImpl.<init>(CuratorFrameworkImpl.java:81)
~[?:?]
> 	at org.apache.curator.framework.CuratorFrameworkFactory$Builder.build(CuratorFrameworkFactory.java:145)
~[?:?]
> 	at org.apache.curator.framework.CuratorFrameworkFactory.newClient(CuratorFrameworkFactory.java:100)
~[?:?]
> 	at org.apache.curator.framework.CuratorFrameworkFactory.newClient(CuratorFrameworkFactory.java:81)
~[?:?]
> {noformat}
> curator-framework sources
> {code}
> import com.google.common.cache.CacheBuilder;
> {code}
> but jar contains
> {code}
> import org.apache.curator.shaded.com.google.common.cache.CacheBuilder;
> {code}



--
This message was sent by Atlassian JIRA
(v7.6.3#76005)

Mime
View raw message