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 <[email protected]> wrote:
> 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
> <[email protected]>wrote:
>
>> 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 <[email protected]> wrote:
>> > Hi Hervé
>> >
>> > thanx for the hint.
>> > Did you also take a look a the configuring part?
>> > Cause to get things going in Karaf/ServiceMix you need to make sure your
>> > fragment is
>> > available before the host bundle enters the resolved state.
>> >
>> > regards, Achim
>> >
>> > 2011/11/16 Hervé BARRAULT <[email protected]>
>> >
>> >> Thanks for the answer.
>> >> I have seen your blog but my case is more a problem of dependency
>> >> management than building a fragment itself.
>> >>
>> >> PS: be careful, in your blog,  close and open xml tag don't match :
>> >> <import -Package>!*</import>
>> >> <fragment -Host>org.ops4j.pax.logging.pax-logging-service</fragment>
>> >>
>> >> On 11/16/11, Achim Nierbeck <[email protected]> wrote:
>> >> > 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 <[email protected]>
>> >> >
>> >> >> 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 appenders" section.
>> >> >>
>> >> >> I have tried to do something like the documentation but i have an
>> >> >> issue.
>> >> >>
>> >> >> For my application i need to use the CountingQuietWriter class which
>> is
>> >> in
>> >> >> the org.apache.log4j.helpers package.
>> >> >> But it seems that pax-logging-api does not export this package.
>> >> >>
>> >> >> What is the best way to import this package ?
>> >> >>
>> >> >> For information (i know it is an old version) but pax-logging-api
>> >> [1.5.2]
>> >> >> export log4j 1.2.15 packages (looking to the export-package)
>> >> >> and pax-logging-service [1.5.2] embeds a log4j 1.2.16 (looking to
>> >> >> the
>> >> pom)
>> >> >>
>> >> >> Thanks For Answers
>> >> >>
>> >> >> Hervé
>> >> >>
>> >> >
>> >> >
>> >> >
>> >> > --
>> >> > *Achim Nierbeck*
>> >> >
>> >> > Apache Karaf <http://karaf.apache.org/> Committer & PMC
>> >> > OPS4J Pax Web <http://wiki.ops4j.org/display/paxweb/Pax+Web/>
>> Committer
>> >> &
>> >> > Project Lead
>> >> > blog <http://notizblog.nierbeck.de/>
>> >> >
>> >>
>> >
>> >
>> >
>> > --
>> > *Achim Nierbeck*
>> >
>> > Apache Karaf <http://karaf.apache.org/> Committer & PMC
>> > OPS4J Pax Web <http://wiki.ops4j.org/display/paxweb/Pax+Web/> Committer
>> &
>> > Project Lead
>> > blog <http://notizblog.nierbeck.de/>
>> >
>>
>
>
>
> --
> ------------------------
> Guillaume Nodet
> ------------------------
> Blog: http://gnodet.blogspot.com/
> ------------------------
> Open Source SOA
> http://fusesource.com
>

Reply via email to