The problem is that I'm trying to include an external library which requires 
the Layout class (source code not available). And the Layout class is in the 
same package as the Logger one.

Can I add the missing Layout class either by adding a new bundle or a bundle 
fragment?

Regards,
JP

[@@ OPEN @@]

De : Achim Nierbeck [mailto:[email protected]]
Envoyé : mardi 17 septembre 2013 15:30
À : [email protected]
Objet : Re: org.apache.log4j.Layout missing

Hi there,

the pax-logging doesn't export all required Classes cause some of them are more 
of an "internal" way.
this is the same for Appenders, if you need to use the Layout Class or want to 
add your personal Layout class
you need to do the same as for appenders. [1]

regards, Achim

[1] - 
http://notizblog.nierbeck.de/2011/08/adding-custom-log-appender-to-pax-logging/

2013/9/17 Jean-Baptiste Onofré <[email protected]<mailto:[email protected]>>
Hi JP,

Karaf 2.3.x also uses Pax Logging 1.7.0 (I released Pax Logging 1.7.1 
yesterday, and it's used by next Karaf 2.3.3).

Let me check in Pax Logging (and I will create a Jira if I see an issue).

Regards
JB


On 09/17/2013 02:32 PM, CLEMENT Jean-Philippe wrote:
After investigation Karaf 3 uses Pax Logging 1.7.0 which uses Log4J
1.2.16. I checked Log4J 1.2.16 and it includes Layout.

I don't know how Pax Logging works, but there is no Layout in the
org.apache.log4j package. Is it the problem - how to fix?

Regards,

JP

Regards,

Jean-Philippe

[@@ OPEN @@]
*De :*[email protected]<mailto:[email protected]> 
[mailto:[email protected]<mailto:[email protected]>]
*Envoyé :* mardi 17 septembre 2013 10:23
*À :* [email protected]<mailto:[email protected]>; 
[email protected]<mailto:[email protected]>
*Objet :* Re: org.apache.log4j.Layout missing


Let me check if it's not in pax logging service.

Regards
JB

--
Jean-Baptiste Onofré
[email protected]<mailto:[email protected]> 
<mailto:[email protected]<mailto:[email protected]>>

http://blog.nanthrax.net
Talend - http://www.talend.com

----- Reply message -----
From: "CLEMENT Jean-Philippe" 
<[email protected]<mailto:[email protected]>
<mailto:[email protected]<mailto:[email protected]>>>
To: "[email protected]<mailto:[email protected]> 
<mailto:[email protected]<mailto:[email protected]>>"
<[email protected]<mailto:[email protected]> 
<mailto:[email protected]<mailto:[email protected]>>>
Subject: org.apache.log4j.Layout missing
Date: Tue, Sep 17, 2013 9:02 am


Dear Karaf experts,

The Log4J Layout class seems not to be available:
Caused by: java.lang.ClassNotFoundException: org.apache.log4j.Layout not
found by org.ops4j.pax.logging.pax-logging-api [24]
...

I there a way to update the Log4J api, keeping the PAX Logging
compatibility?

Regards,
Jean-Philippe Clément

[@@ OPEN @@]

--
Jean-Baptiste Onofré
[email protected]<mailto:[email protected]>
http://blog.nanthrax.net
Talend - http://www.talend.com



--

Apache Karaf <http://karaf.apache.org/> Committer & PMC
OPS4J Pax Web <http://wiki.ops4j.org/display/paxweb/Pax+Web/> Committer & 
Project Lead
OPS4J Pax for Vaadin <http://team.ops4j.org/wiki/display/PAXVAADIN/Home> 
Commiter & Project Lead
blog <http://notizblog.nierbeck.de/>

Reply via email to