I believe it was my bad. I introduced a new dependency without thinking about the consequences at the OSGi level. My apologies for the inconvenience.
There are two possible solutions: 1) move the LocationAwareLogger interface from org.slf4j.spi to org.slf4j. 2) export the org.slf4j.spi package I have a slight preference for the second option. Moving LocationAwareLogger to org.slf4j will put this interface right in front of the eyes of our users (increased brain-print) even if it is mostly a technical detail. John, is option two OK with you? At 09:38 PM 2/16/2007, John E. Conlon wrote: >Hi Sebastien, > >I see what is going on, but don't know what to do about it. > >The build problem is related to the introduction of a new package >dependency to >the artifact (jar/bundle) created by jcl-over-slf4j. This change >happened at revision 722. > >The new package dependency is > >org.slf4j.spi > >and it is used by the modified SLF4FLogFactory and the new >SLF4JLocationAwareLog. > >To date we have considered the org.slf4j.spi a private package for use >by the bindings projects only, it is never exported by any of our >binding bundles and therefore was never intended to be used explicitly >so it is never imported by any client bundles. (OSGi bundles needing >logging are only required to import the org.slf4j package. ) > >Even our own clients and jcl-over-slf4j is a client do not import this >package and that is why the error during the maven package time. > >So how to get around the problem? Revert to previous revision? But what >about the fix for location specific logging? > >John > > >Sebastien Pennec wrote: > > Hello, > > > > I've had some issues today by building the jcl-over-slf4j module. I get > this error: > > > > [INFO] [bundle:bundle] > > [ERROR] Unresolved references to [org.slf4j.spi] by class(es) on the > > Bundle-Classpath[Jar:dot]: > [org/apache/commons/logging/impl/SLF4FLogFactory.class, > > org/apache/commons/logging/impl/SLF4JLocationAwareLog.class] > > > > My guess is that it might come from OSGi wiring, but since I'm not too > sure, I prefer > > asking :) > > > > Sébastien > > > >_______________________________________________ >dev mailing list >dev@slf4j.org >http://www.slf4j.org/mailman/listinfo/dev -- Ceki Gülcü Logback: The reliable, generic, fast and flexible logging framework for Java. http://logback.qos.ch _______________________________________________ dev mailing list dev@slf4j.org http://www.slf4j.org/mailman/listinfo/dev