Skip to main content

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index] [List Home]
RE: [aspectj-users]Exception inthread"main"java.lang.NoClassDefFoundError

Hi

I can underwrite on that - commons-logging in combination with newer versions of Log4J spells trouble if there are multiple versions around

Hermod 

-----Original Message-----
From: aspectj-users-bounces@xxxxxxxxxxx [mailto:aspectj-users-bounces@xxxxxxxxxxx] On Behalf Of Holger Hoffstätte
Sent: Wednesday, July 02, 2008 1:45 PM
To: aspectj-users@xxxxxxxxxxx
Subject: Re: [aspectj-users]Exception inthread"main"java.lang.NoClassDefFoundError

Robert,

I saw that the error originates from commons-logging. I remember vaguely that Websphere has a bundled version of commons-logging - is that true? It might be the case that the container's class loading of clogging conflicts with LTW's idea of a class hierarchy. Try to switch to parent-last classloading or alternatively replace the container's commons-logging with slf4j (you'll need jcl-over-slf for the clogging interfaces, slf4j-api for the slf4j interfaces and slf4j-log4j for the backend). The jcl-over-slf intrefaces are binary-compatible with clogging but the implementation exhibts less "dynamic" (read: often failing) behaviour at runtime.

Holger

_______________________________________________
aspectj-users mailing list
aspectj-users@xxxxxxxxxxx
https://dev.eclipse.org/mailman/listinfo/aspectj-users
* * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * *

This email with attachments is solely for the use of the individual or
entity to whom it is addressed. Please also be aware that the DnB NOR Group
cannot accept any payment orders or other legally binding correspondence with
customers as a part of an email. 

This email message has been virus checked by the anti virus programs used
in the DnB NOR Group.

* * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * *



Back to the top