[logback-dev] [JIRA] Updated: (LBCLASSIC-165) Wrong MANIFEST.MF Private-Package and Export-Package sections

Hugues Malphettes (JIRA) noreply-jira at qos.ch
Tue Nov 10 20:28:44 CET 2009


     [ http://jira.qos.ch/browse/LBCLASSIC-165?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]

Hugues Malphettes updated LBCLASSIC-165:
----------------------------------------

    Attachment: LBCLASSIC-165-try2.patch

Thanks for insisting to test the patch.

It turns out It was also required to add an extra import-package for the rolling file appenders.
As those classes are created via IOC with joran, I guess Bnd could not detect that logback class ought to import this package too.
I have reviewed the other packages of logback-core that are not imported by logback-classic and they look like internal packages that won't be invoked by joran.

So I have tried logback-core and logback-classic as built with the current trunk on github.
I'll try slf4j bundles too: it looks like the latest 1.5.9.rc1is more osgi ready than 1.5.8

> Wrong MANIFEST.MF Private-Package and Export-Package sections
> -------------------------------------------------------------
>
>                 Key: LBCLASSIC-165
>                 URL: http://jira.qos.ch/browse/LBCLASSIC-165
>             Project: logback-classic
>          Issue Type: Bug
>          Components: joran
>    Affects Versions: 0.917
>            Reporter: Bulat Nigmatullin
>            Assignee: Logback dev list
>             Fix For: 0.9.18
>
>         Attachments: LBCLASSIC-165-try2.patch, LBCLASSIC-165.patch
>
>
> I'm trying to setup logback configuration loading in accordance with http://logback.qos.ch/xref/chapter3/MyApp3.html .
> When running in OSGi Framework i have the following error: 
> Error while starting bundle: file:/home/bulat/Desktop/xmppserver/lib/log-0.2.jar: org.osgi.framework.BundleException: Unresolved constraint in bundle ru.rambler.xmpp.server.util.log [13]: package; (package=ch.qos.logback.classic)
> Package ch.qos.logback.classic and ch.qos.logback.classic.joran and may be many others should be in Export-Package section of MANIFEST.MF

-- 
This message is automatically generated by JIRA.
-
If you think it was sent incorrectly contact one of the administrators: http://jira.qos.ch/secure/Administrators.jspa
-
For more information on JIRA, see: http://www.atlassian.com/software/jira

        


More information about the logback-dev mailing list