RESTEasy fails to initialize in OSGi environment (Karaf + Felix) because logger provider class cannot be properly determined.
Thread.currentThread().getContextClassLoader() in Logger class is used to lookup logger provider class (JUL, Log4J or SLF4J). The problem is that thread context class loader is not the bundler loader and thus cannot find JULLogger, Log4JLogger or Slf4jLogger.
The workaround is to set context loader by calling Thread.currentThread.setContextClassLoader() passing in appropriate class loader as an argument. This will force lookup of the class to succeed.