Now I depend upon artifact com.springsource.slf4j.org.apache.log4j and not at all from standard slf4j in my pom. Problem is that manifest generated by mave-bundle-plugin is always the same as see in the error:
Imported Packages ERROR: it.company.integrations.jms-commons -- Cannot be resolved javax.jms,version=1.1 from org.apache.geronimo.specs.geronimo-jms_1.1_spec (48) <http://localhost:8181/system/console/bundles/48> org.apache.activemq,version=5.4 from org.apache.activemq.activemq-core (55)<http://localhost:8181/system/console/bundles/55> ERROR: org.slf4j,version=1.6 -- Cannot be resolved Strange is that com.springsource.slf4j... is not in my ~/.m2 repository but maven compile fine and test are runnning. In my test logger stopped working with a SLF4J: Failed to load class "org.slf4j.impl.StaticLoggerBinder error. On Tue, Dec 7, 2010 at 10:36 PM, Guillaume Nodet <[email protected]> wrote: > What is the exact error you have? Karat comes with pax-logging which > provides the slf4j API so you should not need to install the slf4j > bundles directly... > > On Tuesday, December 7, 2010, John Bäckstrand <[email protected]> wrote: > > 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, [email protected] <[email protected]> > 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 > > > > -- > Cheers, > Guillaume Nodet > ------------------------ > Blog: http://gnodet.blogspot.com/ > ------------------------ > Open Source SOA > http://fusesource.com > > --------------------------------------------------------------------- > To unsubscribe, e-mail: [email protected] > For additional commands, e-mail: [email protected] > > -- Daniele Dellafiore http://danieledellafiore.net

