You are viewing a plain text version of this content. The canonical link for it is here.
Posted to user@karaf.apache.org by Adam Crain <ac...@greenenergycorp.com> on 2011/05/26 18:43:31 UTC

adding a newer version of pax-logging api/service

Hi,

I'm working on some experimental changes to pax-logging to support the
optional SLF4J LocationAwareLogger specification, but I'm having workflow
issues with redeploying my changes to Karaf. Using an unmodified version of
pax-logging 1.6.3-SNAPSHOT, I'm not getting log statements. Here's my setup:

Using Karaf 2.2.1...

Changed etc/startup.properties to use 1.6.3-SNAPSHOT instead of 1.6.2:
=========
org/ops4j/pax/logging/pax-logging-api/1.6.3-SNAPSHOT/pax-logging-api-1.6.3-SNAPSHOT.jar=8
org/ops4j/pax/logging/pax-logging-service/1.6.3-SNAPSHOT/pax-logging-service-1.6.3-SNAPSHOT.jar=8
=========

Changed
system/org/apache/karaf/assemblies/features/standard/2.2.1/standard-2.2.1-features.xml
to use 1.6.3-SNAPSHOT:
=========
<bundle>mvn:org.ops4j.pax.logging/pax-logging-api/1.6.3-SNAPSHOT</bundle>
<bundle>mvn:org.ops4j.pax.logging/pax-logging-service/1.6.3-SNAPSHOT</bundle>
=========

Placed the actual snapshot jars into system/org/ops4j/pax/logging/....

Karaf starts fine and invoking osgi:list -t 0 I see that the new snapshot
pax logging jars are installed. However, log statements are not flowing to
the logging service. All I see invoking log:display is:

12:41:21,479 | INFO  | rint Extender: 3 | SecurityUtils                    |
e.sshd.common.util.SecurityUtils   80 | 16 - sshd-core - 0.5.0 |
BouncyCastle not registered, using the default JCE provider

Is there anything in pax-logging 1.6.3-SNAPSHOT that would make it
incompatible w/ Karaf 2.2.1? I'm sure I'm missing something obvious. I just
need to establish that the current SNAPSHOT version works before trying my
changes to PaxLogging.

thanks!

-- 

*Adam Crain*

Chief Platform Architect, GEC

Office: 919.836.9916

Cell:  919.428.1002

acrain@greenenergycorp.com <ab...@greenenergycorp.com>


*Green Energy Corp,* *enabling the smart grid of the future.**   *

*www.greenenergycorp.com*

*www.totalgrid.org*

Re: adding a newer version of pax-logging api/service

Posted by Jean-Baptiste Onofré <jb...@nanthrax.net>.
Hi Adam,

anyway, I will check to upgrade Karaf to use latest Pax Logging version.

Regards
JB

On 05/31/2011 04:04 PM, Adam Crain wrote:
> Hey Andreas,
>
> I was doing something stupid. Just wanted to let the list know that
> there wasn't a real issue here at all.
>
>
> Thanks!
> Adam
>
> On Tue, May 31, 2011 at 10:00 AM, Andreas Pieber <anpieber@gmail.com
> <ma...@gmail.com>> wrote:
>
>     Hey Adam
>
>     I think the easiest way to get this working is to checkout Karaf,
>     change the version in Karaf/pom.xml and recompile.
>
>     Kind regards, Andreas
>
>     On May 26, 2011 6:44 PM, "Adam Crain" <acrain@greenenergycorp.com
>     <ma...@greenenergycorp.com>> wrote:
>      > Hi,
>      >
>      > I'm working on some experimental changes to pax-logging to
>     support the
>      > optional SLF4J LocationAwareLogger specification, but I'm having
>     workflow
>      > issues with redeploying my changes to Karaf. Using an unmodified
>     version of
>      > pax-logging 1.6.3-SNAPSHOT, I'm not getting log statements.
>     Here's my setup:
>      >
>      > Using Karaf 2.2.1...
>      >
>      > Changed etc/startup.properties to use 1.6.3-SNAPSHOT instead of
>     1.6.2:
>      > =========
>      >
>     org/ops4j/pax/logging/pax-logging-api/1.6.3-SNAPSHOT/pax-logging-api-1.6.3-SNAPSHOT.jar=8
>      >
>     org/ops4j/pax/logging/pax-logging-service/1.6.3-SNAPSHOT/pax-logging-service-1.6.3-SNAPSHOT.jar=8
>      > =========
>      >
>      > Changed
>      >
>     system/org/apache/karaf/assemblies/features/standard/2.2.1/standard-2.2.1-features.xml
>      > to use 1.6.3-SNAPSHOT:
>      > =========
>      >
>     <bundle>mvn:org.ops4j.pax.logging/pax-logging-api/1.6.3-SNAPSHOT</bundle>
>      >
>     <bundle>mvn:org.ops4j.pax.logging/pax-logging-service/1.6.3-SNAPSHOT</bundle>
>      > =========
>      >
>      > Placed the actual snapshot jars into
>     system/org/ops4j/pax/logging/....
>      >
>      > Karaf starts fine and invoking osgi:list -t 0 I see that the new
>     snapshot
>      > pax logging jars are installed. However, log statements are not
>     flowing to
>      > the logging service. All I see invoking log:display is:
>      >
>      > 12:41:21,479 | INFO | rint Extender: 3 | SecurityUtils |
>      > e.sshd.common.util.SecurityUtils 80 | 16 - sshd-core - 0.5.0 |
>      > BouncyCastle not registered, using the default JCE provider
>      >
>      > Is there anything in pax-logging 1.6.3-SNAPSHOT that would make it
>      > incompatible w/ Karaf 2.2.1? I'm sure I'm missing something
>     obvious. I just
>      > need to establish that the current SNAPSHOT version works before
>     trying my
>      > changes to PaxLogging.
>      >
>      > thanks!
>      >
>      > --
>      >
>      > *Adam Crain*
>      >
>      > Chief Platform Architect, GEC
>      >
>      > Office: 919.836.9916 <tel:919.836.9916>
>      >
>      > Cell: 919.428.1002 <tel:919.428.1002>
>      >
>      > acrain@greenenergycorp.com <ma...@greenenergycorp.com>
>     <abender@greenenergycorp.com <ma...@greenenergycorp.com>>
>
>      >
>      >
>      > *Green Energy Corp,* *enabling the smart grid of the future.** *
>      >
>      > *www.greenenergycorp.com <http://www.greenenergycorp.com>*
>      >
>      > *www.totalgrid.org <http://www.totalgrid.org>*
>
>
>
>
> --
>
> *Adam Crain*
>
> Chief Platform Architect, GEC
>
> Office: 919.836.9916
>
> Cell:  919.428.1002
>
> acrain@greenenergycorp.com <ma...@greenenergycorp.com>
>
>
> */Green Energy Corp,/*/enabling the smart grid of the future.///
>
> /www.greenenergycorp.com <http://www.greenenergycorp.com/>/
>
> /www.totalgrid.org <http://www.totalgrid.org/>/
>
>

Re: adding a newer version of pax-logging api/service

Posted by Adam Crain <ac...@greenenergycorp.com>.
Hey Andreas,

I was doing something stupid. Just wanted to let the list know that there
wasn't a real issue here at all.


Thanks!
Adam

On Tue, May 31, 2011 at 10:00 AM, Andreas Pieber <an...@gmail.com> wrote:

> Hey Adam
>
> I think the easiest way to get this working is to checkout Karaf, change
> the version in Karaf/pom.xml and recompile.
>
> Kind regards, Andreas
> On May 26, 2011 6:44 PM, "Adam Crain" <ac...@greenenergycorp.com> wrote:
> > Hi,
> >
> > I'm working on some experimental changes to pax-logging to support the
> > optional SLF4J LocationAwareLogger specification, but I'm having workflow
> > issues with redeploying my changes to Karaf. Using an unmodified version
> of
> > pax-logging 1.6.3-SNAPSHOT, I'm not getting log statements. Here's my
> setup:
> >
> > Using Karaf 2.2.1...
> >
> > Changed etc/startup.properties to use 1.6.3-SNAPSHOT instead of 1.6.2:
> > =========
> >
> org/ops4j/pax/logging/pax-logging-api/1.6.3-SNAPSHOT/pax-logging-api-1.6.3-SNAPSHOT.jar=8
> >
> org/ops4j/pax/logging/pax-logging-service/1.6.3-SNAPSHOT/pax-logging-service-1.6.3-SNAPSHOT.jar=8
> > =========
> >
> > Changed
> >
> system/org/apache/karaf/assemblies/features/standard/2.2.1/standard-2.2.1-features.xml
> > to use 1.6.3-SNAPSHOT:
> > =========
> > <bundle>mvn:org.ops4j.pax.logging/pax-logging-api/1.6.3-SNAPSHOT</bundle>
> >
> <bundle>mvn:org.ops4j.pax.logging/pax-logging-service/1.6.3-SNAPSHOT</bundle>
> > =========
> >
> > Placed the actual snapshot jars into system/org/ops4j/pax/logging/....
> >
> > Karaf starts fine and invoking osgi:list -t 0 I see that the new snapshot
> > pax logging jars are installed. However, log statements are not flowing
> to
> > the logging service. All I see invoking log:display is:
> >
> > 12:41:21,479 | INFO | rint Extender: 3 | SecurityUtils |
> > e.sshd.common.util.SecurityUtils 80 | 16 - sshd-core - 0.5.0 |
> > BouncyCastle not registered, using the default JCE provider
> >
> > Is there anything in pax-logging 1.6.3-SNAPSHOT that would make it
> > incompatible w/ Karaf 2.2.1? I'm sure I'm missing something obvious. I
> just
> > need to establish that the current SNAPSHOT version works before trying
> my
> > changes to PaxLogging.
> >
> > thanks!
> >
> > --
> >
> > *Adam Crain*
> >
> > Chief Platform Architect, GEC
> >
> > Office: 919.836.9916
> >
> > Cell: 919.428.1002
> >
> > acrain@greenenergycorp.com <ab...@greenenergycorp.com>
>
> >
> >
> > *Green Energy Corp,* *enabling the smart grid of the future.** *
> >
> > *www.greenenergycorp.com*
> >
> > *www.totalgrid.org*
>



-- 

*Adam Crain*

Chief Platform Architect, GEC

Office: 919.836.9916

Cell:  919.428.1002

acrain@greenenergycorp.com <ab...@greenenergycorp.com>


*Green Energy Corp,* *enabling the smart grid of the future.**   *

*www.greenenergycorp.com*

*www.totalgrid.org*

Re: adding a newer version of pax-logging api/service

Posted by Andreas Pieber <an...@gmail.com>.
Hey Adam

I think the easiest way to get this working is to checkout Karaf, change the
version in Karaf/pom.xml and recompile.

Kind regards, Andreas
On May 26, 2011 6:44 PM, "Adam Crain" <ac...@greenenergycorp.com> wrote:
> Hi,
>
> I'm working on some experimental changes to pax-logging to support the
> optional SLF4J LocationAwareLogger specification, but I'm having workflow
> issues with redeploying my changes to Karaf. Using an unmodified version
of
> pax-logging 1.6.3-SNAPSHOT, I'm not getting log statements. Here's my
setup:
>
> Using Karaf 2.2.1...
>
> Changed etc/startup.properties to use 1.6.3-SNAPSHOT instead of 1.6.2:
> =========
>
org/ops4j/pax/logging/pax-logging-api/1.6.3-SNAPSHOT/pax-logging-api-1.6.3-SNAPSHOT.jar=8
>
org/ops4j/pax/logging/pax-logging-service/1.6.3-SNAPSHOT/pax-logging-service-1.6.3-SNAPSHOT.jar=8
> =========
>
> Changed
>
system/org/apache/karaf/assemblies/features/standard/2.2.1/standard-2.2.1-features.xml
> to use 1.6.3-SNAPSHOT:
> =========
> <bundle>mvn:org.ops4j.pax.logging/pax-logging-api/1.6.3-SNAPSHOT</bundle>
>
<bundle>mvn:org.ops4j.pax.logging/pax-logging-service/1.6.3-SNAPSHOT</bundle>
> =========
>
> Placed the actual snapshot jars into system/org/ops4j/pax/logging/....
>
> Karaf starts fine and invoking osgi:list -t 0 I see that the new snapshot
> pax logging jars are installed. However, log statements are not flowing to
> the logging service. All I see invoking log:display is:
>
> 12:41:21,479 | INFO | rint Extender: 3 | SecurityUtils |
> e.sshd.common.util.SecurityUtils 80 | 16 - sshd-core - 0.5.0 |
> BouncyCastle not registered, using the default JCE provider
>
> Is there anything in pax-logging 1.6.3-SNAPSHOT that would make it
> incompatible w/ Karaf 2.2.1? I'm sure I'm missing something obvious. I
just
> need to establish that the current SNAPSHOT version works before trying my
> changes to PaxLogging.
>
> thanks!
>
> --
>
> *Adam Crain*
>
> Chief Platform Architect, GEC
>
> Office: 919.836.9916
>
> Cell: 919.428.1002
>
> acrain@greenenergycorp.com <ab...@greenenergycorp.com>
>
>
> *Green Energy Corp,* *enabling the smart grid of the future.** *
>
> *www.greenenergycorp.com*
>
> *www.totalgrid.org*