Export Packages not able to see in 1.11.0 version

10 views
Skip to first unread message

Tharindu Dharmarathna

unread,
Jul 29, 2019, 2:16:05 PM7/29/19
to OPS4J
Hi All,

We are using pax-logging 1.10.1 version currently. When we going to update into the latest pax-logging version which is 1.11.0 it did not have the log4j2 core "org.apache.logging.log4j.core.impl" doesn't expose outside from bundle.

When Comparing MANIFEST.MF in pax-logging-log4j2 jars we cold able to see Export-Packages are missing in the 1.11.0 version.

Could you, please let us know on way of getting above fixed ?.

Thanks
Tharindu

Niclas Hedhman

unread,
Jul 29, 2019, 9:16:19 PM7/29/19
to OPS4J

Implementation details are not expected to be Exported, and I assume that someone noticed this mistake.

Perhaps you could explain what you are accessing in there, and we'll work out a solution for the usecase, rather than blanket expose the inner guts.

Cheers
Niclas

--
--
------------------
OPS4J - http://www.ops4j.org - op...@googlegroups.com

---
You received this message because you are subscribed to the Google Groups "OPS4J" group.
To unsubscribe from this group and stop receiving emails from it, send an email to ops4j+un...@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/ops4j/ebfc2603-334f-4594-9244-2de040faf318%40googlegroups.com.


--
Niclas Hedhman, Software Developer
http://polygene.apache.org - New Energy for Java

Grzegorz Grzybek

unread,
Jul 30, 2019, 1:56:36 AM7/30/19
to op...@googlegroups.com, Niclas Hedhman
Hello

I agree with +Niclas Hedhman and I'm the one who noticed this mistake. The original message was here[1].
The problem I had is that "impl" was not supposed to be exported. But it is exported from original log4j-core-2.12.0.jar "bundle". I'm not sure how Log4j2 authors deal with OSGi, but pax-logging does it differently - it was supposed to hide the internals, so you can't actually call org.apache.logging.log4j.core.LoggerContext#getContext() (there were emails about this, e.g., here[2]) to get access to log4j2 internals.

I wrote about all the new changes in new documentation[3].

But summarizing, please tell me what is your goal and I believe it can be achieved with proper fragment attached to pax-logging-log4j2 bundle. I added integration test that adds new plugins here[4] - it uses "List" appender implemented in fragment bundle[5].

regards
Grzegorz Grzybek


Reply all
Reply to author
Forward
0 new messages