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

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 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

[ http://jira.qos.ch/browse/LBCLASSIC-165?page=com.atlassian.jira.plugin.syste... ] Ceki Gulcu commented on LBCLASSIC-165: -------------------------------------- Could you post a patch and a test case?
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
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

[ http://jira.qos.ch/browse/LBCLASSIC-165?page=com.atlassian.jira.plugin.syste... ] Hugues Malphettes updated LBCLASSIC-165: ---------------------------------------- Attachment: LBCLASSIC-165.patch Hi there, I face the exact same situation. Here is a patch to the pom.xml. I imported the resulting plugin in eclipse-PDE and made sure that it had the exports I required. As a workaround I am currently using logback as re-packaged by spring source here: http://www.springsource.com/repository/app/bundle?query=L The actual project where I am doing this is here to configure the central logging of jetty-on-osgi (prototype) http://github.com/intalio/hightide-on-osgi/blob/master/org.eclipse.jetty.osg... Let me know if you need a smaller use-case. I hope this helps.
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 Attachments: 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

[ http://jira.qos.ch/browse/LBCLASSIC-165?page=com.atlassian.jira.plugin.syste... ] Ceki commented on LBCLASSIC-165: -------------------------------- Hello Hugues, Just applied your patch [1]. Thank you. As we don't currently have an OSGi-related testbed for logback, I'll assume your patch works but would appreciate if you could give the latest version in github/ceki a try. The software you are developing at Intalio looks very cool. [1] http://github.com/ceki/logback/commit/61bfd0d0ba8d095ce395ab763f8047307a58c4...
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 Attachments: 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

[ http://jira.qos.ch/browse/LBCLASSIC-165?page=com.atlassian.jira.plugin.syste... ] Ceki Gulcu resolved LBCLASSIC-165. ---------------------------------- Fix Version/s: 0.9.18 Resolution: Fixed
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.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

[ http://jira.qos.ch/browse/LBCLASSIC-165?page=com.atlassian.jira.plugin.syste... ] Hugues Malphettes commented on LBCLASSIC-165: --------------------------------------------- Hi Ceki and thanks! Sorry for not coming back to you faster: somehow I did not get an email notification. In fact that software is contributed to jetty@eclipse; I am still developing some of it on github but it will be built with the rest of jetty at some point: http://dev.eclipse.org/svnroot/rt/org.eclipse.jetty/jetty/trunk/jetty-osgi/ logback dual-licensed with EPL and LGPL is really neat for jetty@eclipse. Updating and trying this patch. I can also try the whole of slf4j and logback in my environment. I am not using all the jars at this point but I'll make sure I can switch from the bundles distributed by springsource to the ones built by this project.
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.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

[ http://jira.qos.ch/browse/LBCLASSIC-165?page=com.atlassian.jira.plugin.syste... ] Hugues Malphettes edited comment on LBCLASSIC-165 at 11/10/09 6:49 PM: ----------------------------------------------------------------------- Hi Ceki and thanks! Sorry for not coming back to you faster: I forgot to watch it to receive the email notification. In fact that software is contributed to jetty@eclipse; I am still developing some of it on github but it will be built with the rest of jetty at some point: http://dev.eclipse.org/svnroot/rt/org.eclipse.jetty/jetty/trunk/jetty-osgi/ logback dual-licensed with EPL and LGPL is really neat for jetty@eclipse. Updating and trying this patch. I can also try the whole of slf4j and logback in my environment. I am not using all the jars at this point but I'll make sure I can switch from the bundles distributed by springsource to the ones built by this project. was (Author: hmalphettes): Hi Ceki and thanks! Sorry for not coming back to you faster: somehow I did not get an email notification. In fact that software is contributed to jetty@eclipse; I am still developing some of it on github but it will be built with the rest of jetty at some point: http://dev.eclipse.org/svnroot/rt/org.eclipse.jetty/jetty/trunk/jetty-osgi/ logback dual-licensed with EPL and LGPL is really neat for jetty@eclipse. Updating and trying this patch. I can also try the whole of slf4j and logback in my environment. I am not using all the jars at this point but I'll make sure I can switch from the bundles distributed by springsource to the ones built by this project.
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.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

[ http://jira.qos.ch/browse/LBCLASSIC-165?page=com.atlassian.jira.plugin.syste... ] Ceki Gulcu commented on LBCLASSIC-165: -------------------------------------- If you could trying out the "official" logback bundles instead of those distributed by springsource, that would be quite helpful. Thanks for proposing just that.
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.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

[ http://jira.qos.ch/browse/LBCLASSIC-165?page=com.atlassian.jira.plugin.syste... ] 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

[ http://jira.qos.ch/browse/LBCLASSIC-165?page=com.atlassian.jira.plugin.syste... ] Ceki Gulcu commented on LBCLASSIC-165: -------------------------------------- Applied your second patch. Thank you for posting it.
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

[ http://jira.qos.ch/browse/LBCLASSIC-165?page=com.atlassian.jira.plugin.syste... ] Hugues Malphettes commented on LBCLASSIC-165: --------------------------------------------- I have filed one small change for slf4j to use logback and slf4j as built by qos.ch in equinox. http://bugzilla.slf4j.org/show_bug.cgi?id=75 I am on irc if that makes things easier. Thanks again!
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
participants (4)
-
Bulat Nigmatullin (JIRA)
-
Ceki (JIRA)
-
Ceki Gulcu (JIRA)
-
Hugues Malphettes (JIRA)