Calling an OSGI service from an implementation java.util.logging.Handler
We have a requirement to have an OSGI service handle a logging event. We have produced an OSGI bundle that implements the java.util.logging.Handler interface and the plan was for this to pass the LogRecord to another OSGI service that would actually process it. We deployed the Handler by adding the implementation class to the handlers= line in logging.properties. Glassfish doesn't seem to like the Handler being an OSGI bundle, however. A NoClassDefFoundError on org/osgi/util/tracker/ServiceTracker was raised fairly early in the boot suggesting the OSGI runtime is not available at the point that Handlers get configured. Can anyone suggest how me might get this working or alternatively suggest an efficient way to pass a LogRecord between a non-OSGI Handler and an OSGI service.