You are viewing a plain text version of this content. The canonical link for it is here.
Posted to users@felix.apache.org by Pete Haidinyak <ja...@cox.net> on 2009/04/06 10:49:30 UTC
Log4j issue
Howdy,
I am trying to get Log4j running on my embedded Felix. I loaded the Log4j
bundle and when my class tries to create a Logger I get the following
exception...
java.lang.NoClassDefFoundError: org/w3c/dom/Node
From what I understand this class should be part for the JRE and available
to the logger.
Any ideas?
Thanks
-Pete
---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscribe@felix.apache.org
For additional commands, e-mail: users-help@felix.apache.org
Re: Log4j issue
Posted by Pete Haidinyak <ja...@cox.net>.
Thanks, I ended up using Pax Logging and it works great. It even finds my
log4j.xml in the config directory. I put that directory in the Classpath
before I started Felix. I was wondering if it would find it.
-Pete
On Mon, 06 Apr 2009 21:45:40 -0700, Stuart McCulloch <mc...@gmail.com>
wrote:
> 2009/4/7 <ja...@cox.net>
>
>> Hi Neil,
>> Thanks for the post. Now, should I add this to the Log4j bundle of the
>> bundle I am using Log4j?
>>
>
> you should add the import to any bundles using Log4j - if you use bnd or
> the
> bundleplugin
> (or even mangen) to generate your manifests then this would be done
> automatically for you
>
> Thanks
>>
>> -Pete
>>
>> ---- Neil Bartlett <nj...@gmail.com> wrote:
>>
>> =============
>> You need to add this package to your Import-Package declaration.
>>
>> Regards
>> Neil
>>
>> On Mon, Apr 6, 2009 at 9:49 AM, Pete Haidinyak <ja...@cox.net> wrote:
>> > Howdy,
>> > I am trying to get Log4j running on my embedded Felix. I loaded
>> the
>> > Log4j bundle and when my class tries to create a Logger I get the
>> following
>> > exception...
>> >
>> > java.lang.NoClassDefFoundError: org/w3c/dom/Node
>> >
>> > From what I understand this class should be part for the JRE and
>> available
>> > to the logger.
>> >
>> > Any ideas?
>> >
>> > Thanks
>> >
>> > -Pete
>>
>
---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscribe@felix.apache.org
For additional commands, e-mail: users-help@felix.apache.org
Re: Log4j issue
Posted by Stuart McCulloch <mc...@gmail.com>.
2009/4/7 <ja...@cox.net>
> Hi Neil,
> Thanks for the post. Now, should I add this to the Log4j bundle of the
> bundle I am using Log4j?
>
you should add the import to any bundles using Log4j - if you use bnd or the
bundleplugin
(or even mangen) to generate your manifests then this would be done
automatically for you
Thanks
>
> -Pete
>
> ---- Neil Bartlett <nj...@gmail.com> wrote:
>
> =============
> You need to add this package to your Import-Package declaration.
>
> Regards
> Neil
>
> On Mon, Apr 6, 2009 at 9:49 AM, Pete Haidinyak <ja...@cox.net> wrote:
> > Howdy,
> > I am trying to get Log4j running on my embedded Felix. I loaded
> the
> > Log4j bundle and when my class tries to create a Logger I get the
> following
> > exception...
> >
> > java.lang.NoClassDefFoundError: org/w3c/dom/Node
> >
> > From what I understand this class should be part for the JRE and
> available
> > to the logger.
> >
> > Any ideas?
> >
> > Thanks
> >
> > -Pete
>
--
Cheers, Stuart
Re: Log4j issue
Posted by ja...@cox.net.
Hi Neil,
Thanks for the post. Now, should I add this to the Log4j bundle of the bundle I am using Log4j?
Thanks
-Pete
---- Neil Bartlett <nj...@gmail.com> wrote:
=============
You need to add this package to your Import-Package declaration.
Regards
Neil
On Mon, Apr 6, 2009 at 9:49 AM, Pete Haidinyak <ja...@cox.net> wrote:
> Howdy,
> I am trying to get Log4j running on my embedded Felix. I loaded the
> Log4j bundle and when my class tries to create a Logger I get the following
> exception...
>
> java.lang.NoClassDefFoundError: org/w3c/dom/Node
>
> From what I understand this class should be part for the JRE and available
> to the logger.
>
> Any ideas?
>
> Thanks
>
> -Pete
>
>
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: users-unsubscribe@felix.apache.org
> For additional commands, e-mail: users-help@felix.apache.org
>
>
---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscribe@felix.apache.org
For additional commands, e-mail: users-help@felix.apache.org
--
1. If a man is standing in the middle of the forest talking, and there is no woman around to hear him, is he still wrong?
2. Behind every great woman... Is a man checking out her ass
3. I am not a member of any organized political party. I am a Democrat.*
4. Diplomacy is the art of saying "Nice doggie" until you can find a rock.*
5. A process is what you need when all your good people have left.
*Will Rogers
---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscribe@felix.apache.org
For additional commands, e-mail: users-help@felix.apache.org
Re: Log4j issue
Posted by Neil Bartlett <nj...@gmail.com>.
You need to add this package to your Import-Package declaration.
Regards
Neil
On Mon, Apr 6, 2009 at 9:49 AM, Pete Haidinyak <ja...@cox.net> wrote:
> Howdy,
> I am trying to get Log4j running on my embedded Felix. I loaded the
> Log4j bundle and when my class tries to create a Logger I get the following
> exception...
>
> java.lang.NoClassDefFoundError: org/w3c/dom/Node
>
> From what I understand this class should be part for the JRE and available
> to the logger.
>
> Any ideas?
>
> Thanks
>
> -Pete
>
>
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: users-unsubscribe@felix.apache.org
> For additional commands, e-mail: users-help@felix.apache.org
>
>
---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscribe@felix.apache.org
For additional commands, e-mail: users-help@felix.apache.org
Re: Log4j issue
Posted by Neil Bartlett <nj...@gmail.com>.
Rob,
If the logger bundle was importing the org.w3c.com package but the
system bundle was failing to export it, then the error would be an
unresolved bundle, not a NoClassDefFoundError.
Neil
On Mon, Apr 6, 2009 at 9:53 AM, Rob Walker <ro...@ascert.com> wrote:
> I'd double check your org.osgi.framework.system.packages setting.
>
> Might be that this package is missing - or you are missing an entry for your
> VM level.
>
> I have it listed in my jre-1.5=<list> and jre-1.6=<list> properties here -
> but I may have added it manually!
>
> -- Rob
>
> Pete Haidinyak wrote:
>>
>> Howdy, I am trying to get Log4j running on my embedded Felix. I
>> loaded the Log4j bundle and when my class tries to create a Logger I get the
>> following exception...
>>
>> java.lang.NoClassDefFoundError: org/w3c/dom/Node
>>
>> From what I understand this class should be part for the JRE and available
>> to the logger.
>>
>> Any ideas?
>>
>> Thanks
>>
>> -Pete
>>
>>
>>
>> ---------------------------------------------------------------------
>> To unsubscribe, e-mail: users-unsubscribe@felix.apache.org
>> For additional commands, e-mail: users-help@felix.apache.org
>>
>
> --
>
>
> Ascert - Taking systems to the Edge
> robw@ascert.com
> +44 (0)20 7488 3470
> www.ascert.com
>
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: users-unsubscribe@felix.apache.org
> For additional commands, e-mail: users-help@felix.apache.org
>
>
---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscribe@felix.apache.org
For additional commands, e-mail: users-help@felix.apache.org
Re: Log4j issue
Posted by Rob Walker <ro...@ascert.com>.
I'd double check your org.osgi.framework.system.packages setting.
Might be that this package is missing - or you are missing an entry for
your VM level.
I have it listed in my jre-1.5=<list> and jre-1.6=<list> properties here
- but I may have added it manually!
-- Rob
Pete Haidinyak wrote:
> Howdy,
> I am trying to get Log4j running on my embedded Felix. I loaded
> the Log4j bundle and when my class tries to create a Logger I get the
> following exception...
>
> java.lang.NoClassDefFoundError: org/w3c/dom/Node
>
> From what I understand this class should be part for the JRE and
> available to the logger.
>
> Any ideas?
>
> Thanks
>
> -Pete
>
>
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: users-unsubscribe@felix.apache.org
> For additional commands, e-mail: users-help@felix.apache.org
>
--
Ascert - Taking systems to the Edge
robw@ascert.com
+44 (0)20 7488 3470
www.ascert.com
---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscribe@felix.apache.org
For additional commands, e-mail: users-help@felix.apache.org