This is a Felix issue :-(
* Did you find the -runbundles with the Bndtools resolver? How long did that
take?
* Did you upgrade to the latest Felix?
* Did you try an older version?
* Did you try Equinox?
You might want to post it on the Apache Felix list. They probably have some
secret system properties you can set to get more diagnostic info.
Sorry I can't help you more …
Kind regards,
Peter Kriens
> On 2 Aug 2018, at 16:41, Nhut Thai Le via osgi-dev <[email protected]>
> wrote:
>
> Hello,
>
> We are trying to integrate Keycloak admin-client and zk into our web app
> running on felix using bndtool.
>
> If we use our web app with Keycloak admin-client alone, it's fine.
>
> If we use our web app with zk alone, it's also fine.
>
> When adding both Keycloak admin-client and zk, we are not able to start the
> container from bndrun. Looks like the framework resolver get stuck in
> resolving dependencies. Here is the stack of the main thread:
> Thread [main] (Suspended)
> waiting for: AtomicInteger (id=29)
> Object.wait(long) line: not available [native method]
> AtomicInteger(Object).wait() line: 502
> ResolverImpl$EnhancedExecutor.await() line: 2523
> ResolverImpl.calculatePackageSpaces(ResolveSession, Candidates,
> Collection<Resource>) line: 1217
> ResolverImpl.checkConsistency(ResolveSession, Candidates,
> Map<Resource,ResolutionError>) line: 572
> ResolverImpl.findValidCandidates(ResolveSession,
> Map<Resource,ResolutionError>) line: 532
> ResolverImpl.doResolve(ResolveSession) line: 395
> ResolverImpl.resolve(ResolveContext, Executor) line: 377
> ResolverImpl.resolve(ResolveContext) line: 331
> StatefulResolver.resolve(Set<BundleRevision>, Set<BundleRevision>)
> line: 478
> Felix.resolveBundles(Collection<Bundle>) line: 4108
> FrameworkWiringImpl.resolveBundles(Collection<Bundle>) line: 133
> PackageAdminImpl.resolveBundles(Bundle[]) line: 267
> Launcher.startBundles(List<Bundle>) line: 489
> Launcher.activate() line: 423
> Launcher.run(String[]) line: 301
> Launcher.main(String[]) line: 147
>
> A small note here is that Keycloak admin-client uses resteasy which is not an
> osgi bundle so I wrap both admin-client, resteasy and its dependencies in an
> osgi bundle and enabling service loader mediator header so that the service
> files provided in the resteasy dependencies can be loaded.
>
> For debugging I downloaded the source of org.apache.felix.framework but it
> has no resolver/RersolverImpl class
>
> I'm not sure what to do to debug this.
>
> Thai
>
>
> _______________________________________________
> OSGi Developer Mail List
> [email protected]
> https://mail.osgi.org/mailman/listinfo/osgi-dev
_______________________________________________
OSGi Developer Mail List
[email protected]
https://mail.osgi.org/mailman/listinfo/osgi-dev