just have reproduced not exactly the same issue, but very similar, in my test 
project:  https://github.com/eiskonzept/tomee 
Just package the app and start tomee-plugin with node1 profile. 

Explanation: 
I have two dependencies in my project: commons-logging and log4j. If I package 
both libraries in my webapp I become:
"LogConfigurationException: User-specified log class 
'org.apache.commons.logging.impl.Log4JLogger' cannot be found or is not 
useable" 
which means that commons-logging can't find Log4JLogger class. 

When I put log4j.jar in tomee's lib folder it works just fine. But I can't do 
this with other libraries in real Project, because we  use some special 
versions of libraries(quartz for example) which are provided by tomee too. 

is there any possibility to use my own versions of libraries which already 
provided by tomee?

-----Ursprüngliche Nachricht-----
Von: [email protected] [mailto:[email protected]] 
Gesendet: Montag, 4. Februar 2013 13:12
An: [email protected]
Betreff: AW: AW: Class loading problem in TomEE 1.5.1

I got further by copying log4j.jar in CATALINA_BASE/lib folder, but then I got 
next NoClassDefFoundError. 
Most confusing is that the same application deployed in TomEE Version 1.5.0 
works perfectly. 
I believe it is some kind of class loader issue. Are there some significant 
class loader changes between version 1.5.0 and 1.5.1? 
It looks like that container is loading some classes from container provided 
commons-logging.jar first, and then can't find some classes in WEB-APP/lib 
which needed by commons-logging. 

-----Ursprüngliche Nachricht-----
Von: Romain Manni-Bucau [mailto:[email protected]]
Gesendet: Montag, 4. Februar 2013 12:13
An: [email protected]
Betreff: Re: AW: Class loading problem in TomEE 1.5.1

Hard to help since we dont "see" the issue

You probably have some conflict in your app.

Check your deps maybe
Le 4 févr. 2013 12:11, <[email protected]> a écrit :

> I have tried both: with commons-logging in my war file and without. 
> With same result(exception) in both cases.
> I have tried to isolate the issue in small sample app, but without 
> success. Unfortunately I can't provide full application for reproduction.
> Could you give some hints, how can I help you to reproduce the problem 
> on your side or solve the issue by myself?
>
>
> > Note: did you put commons-logging in your app too?
>
> > can you reproduce it in a sample webapp?
>

Reply via email to