Hi,

Pax Logging provides log4j 1.2.15.

I bet that you use log4j 1.2.17.
So, your project should use the 1.2.15 log4j dependency and Import-Package.

Regards
JB

On 06/25/2014 02:12 PM, loky wrote:
I have exclude log4j dependancy in my maven project and insert
org.ops4j.pax.logging reference.

                <dependency>
                        <groupId>org.ops4j.pax.logging</groupId>
                        <artifactId>pax-logging-api</artifactId>
                        <version>1.7.2</version>
                </dependency>
                
                <dependency>
                        <groupId>org.ops4j.pax.logging</groupId>
                        <artifactId>pax-logging-service</artifactId>
                        <version>1.7.2</version>
                </dependency>


I see that the org.apache.log4j.Logger is not the same than the class in
log4j dependancy ( missing removeAllAppenders / missing setLevel / ... )
that my project used.



--
View this message in context: 
http://karaf.922171.n3.nabble.com/NoClassDefFoundError-org-apache-log4j-Layout-tp4033773p4033776.html
Sent from the Karaf - User mailing list archive at Nabble.com.


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

Reply via email to