I am implementing Log4j as an OSGI service by registering the bundle as a service. Other agents/bundles invoke this Logging service. If I put Log4j in the classpath for both the logging service as well as the external bundle I get a Logging loading violation error.
In case I export the Log4j in the OSGI container and have the service and other bundles just import it I need to export other 3rd party libraries like xstream, apache jars like comoons pool, etc.
Has anyone else encountered a similar scenario?
Please advise
If you would like to refer to this comment somewhere else in this project, copy and paste the following link:
I am implementing Log4j as an OSGI service by registering the bundle as a service. Other agents/bundles invoke this Logging service. If I put Log4j in the classpath for both the logging service as well as the external bundle I get a Logging loading violation error.
In case I export the Log4j in the OSGI container and have the service and other bundles just import it I need to export other 3rd party libraries like xstream, apache jars like comoons pool, etc.
Has anyone else encountered a similar scenario?
Please advise