OSGI Fragment and Logging

2011-11-16 Thread Hervé BARRAULT
Hi, I am using using ServiceMix 4.3.0-fuse-01-00 so Karaf http://fusesource.com/wiki/display/ProdInfo/Fuse+Karaf+v2.0.0+Release+Notes 2.0.0-fuse-00-00 I have seen the following documentation : http://karaf.apache.org/manual/2.2.2/users-guide/logging-system.html Especially, the Using your own

Re: OSGI Fragment and Logging

2011-11-16 Thread Achim Nierbeck
Hi I wrote a blog about it [1] regards, Achim [1] - http://nierbeck.de/cgi-bin/weblog_basic/index.php?p=201 2011/11/16 Hervé BARRAULT herve.barra...@gmail.com Hi, I am using using ServiceMix 4.3.0-fuse-01-00 so Karaf

Re: OSGI Fragment and Logging

2011-11-16 Thread Hervé BARRAULT
Hi Achim My problem is the fragment is not able to be resolved as the package org.apache.log4j.helpers can't be imported. I thought Pax Logging export it but it does not. Adding again all the log4j API is not i think the best idea. Regards Hervé On 11/16/11, Achim Nierbeck

Re: OSGI Fragment and Logging

2011-11-16 Thread Guillaume Nodet
You don't need to import that package because your fragment will be associated to the pax-logging-service bundle which contain that class, so it will be directly available. On Wed, Nov 16, 2011 at 15:27, Hervé BARRAULT herve.barra...@gmail.comwrote: Hi Achim My problem is the fragment is not

Re: OSGI Fragment and Logging

2011-11-16 Thread Hervé BARRAULT
Hi Guillaume, I am using the maven-bundle-plugin (1.4.0), and i don't find a way to build a bundle without importing all needed packages. Regards Hervé On 11/16/11, Guillaume Nodet gno...@gmail.com wrote: You don't need to import that package because your fragment will be associated to the

Re: OSGI Fragment and Logging

2011-11-16 Thread Guillaume Nodet
Try adding Import-Package!*/Import-Package in your pom On Wed, Nov 16, 2011 at 15:41, Hervé BARRAULT herve.barra...@gmail.comwrote: Hi Guillaume, I am using the maven-bundle-plugin (1.4.0), and i don't find a way to build a bundle without importing all needed packages. Regards Hervé On

Re: OSGI Fragment and Logging

2011-11-16 Thread Hervé BARRAULT
Effectively, by forcing ignore packages, it starts working. Thanks for the advice. On 11/16/11, Guillaume Nodet gno...@gmail.com wrote: Try adding Import-Package!*/Import-Package in your pom On Wed, Nov 16, 2011 at 15:41, Hervé BARRAULT herve.barra...@gmail.comwrote: Hi Guillaume, I am