felix-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "ildella@gmail.com" <ilde...@gmail.com>
Subject Re: Installing slf4j (and also others) bundle
Date Tue, 07 Dec 2010 21:09:30 GMT
you mean that declaring in maven file this one

http://ebr.springsource.com/repository/app/bundle/version/detail?name=com.springsource.slf4j.api&version=1.6.1&searchType=bundlesByName&searchQuery=slf4j

instead of normal slf4j dependency would in the end solve the problem?

2010/12/7 John B├Ąckstrand <sopues@gmail.com>

> I actually don't know what the more "correct" way of doing things are. I
> think the most proper way to use slf4j in osgi is probably with a
> slf4j->osgi logging service bridge, but I took the shortcut of using the
> slf4-simple implementation. I simply added the slf4j dependencies in my
> maven file from the spring EBR repo.
>
> I was using pax-runner when experimenting with this so that might change
> how
> things work.
>
> On Tue, Dec 7, 2010 at 21:41, ildella@gmail.com <ildella@gmail.com> wrote:
>
> > Hi all.
> >
> > short: on karaf 2.1 how do I resolve a missing slf4j dependencies?
> > I have also read this without understanding much more...
> >
> >
> http://karaf.apache.org/manual/2.1.99-SNAPSHOT/users-guide/logging-system.html
> >
> > long:
> > OSGI world moves fast. information are flowing fast and often following
> > some
> > 6 month old guide means making 10 times the work needed now.
> > In fact I am now using actually Karaf 2.1 and I succesfully installed web
> > console, activemq with just a few commands. Nice.
> >
> > One of my bundle, created with maven-bundle-plugin, correctly requires
> > activemq, geronomo jms and slf4j.
> > slf4j is missing from my karaf runtime.
> >
> > I can see that even the slf4j on central maven repo has osgi manifest
> > information but I do not know how to use it in my karaf, at least what is
> > the best way: I think that I should add a obr url with obr:addUrl command
> > but I can't find a repository.xml that contains slf4j.
> >
> > What's the suggested way?
> > I'd like to add http://ebr.springsource.com/repository/app as obr url
> but
> > it
> > does not work. Is that wrong?
> >
> > Thanks for helping me out of the mess :)
> >
> > --
> > Daniele Dellafiore
> > http://danieledellafiore.net
> >
>
>
>
> --
> John B├Ąckstrand
>



-- 
Daniele Dellafiore
http://danieledellafiore.net

Mime
  • Unnamed multipart/alternative (inline, None, 0 bytes)
View raw message