hstaudacher / osgi-jax-rs-connector

An OSGi - JAX-RS 2.0 Connector, software repository available on the link below
http://hstaudacher.github.io/osgi-jax-rs-connector
Other
190 stars 98 forks source link

OSGi runtime suffers from deadlocks #173

Open erdalkaraca opened 7 years ago

erdalkaraca commented 7 years ago

Hi, I cannot extract a reproducible example to prove this, but just by including the publisher bundle in my (Eclipse) product and launching it, the OSGi runtime complains:

Getting a lock required more than 10000 ms. There might be a synchronization problem in this callstack or just the build/dispose process of some components took too long!

Whenever I start the product without the publisher, the (equinox) application starts (as expected).

I think this is a classloader issue. Did anyone else encounter this behavior?

BryanHunt commented 7 years ago

I run this framework all the time and I haven't seen this problem.

erdalkaraca commented 7 years ago

@BryanHunt can you try with this classloader setting:

-Dorg.osgi.framework.bundle.parent=ext

If I remove that setting, the application starts.