Issue
I am trying to get a minimal OSGI bundle running using the OSGI logging facade (org.osgi.service.log-1.4.0).
When I try retrieving an implementation of the LoggerFactory class I just get null
. I'm assuming this is because the org.osgi.service.log -bundle does not contain any implementation of its own service.
I understand what's missing in my application is a logging implementation, but I'm struggling with finding a bundle that is able to supply me with this.
Where can I find a simple bundle that provides my environment with an implementation of the org.osgi.service.log service (version 1.4.0)?
Information about my environment:
- Karaf 4.2.7
- Java 11
- org.osgi.service.log-1.4.0
My code can be wiewed here.
Solution
Apach Karaf 4.2.x is based on OSGi R6. The log service is part of R7 which should be available in Karaf 4.3.x.
Answered By - Christian Schneider
Answer Checked By - Mildred Charles (JavaFixing Admin)