Meaningless Drivel is fun!*
The moose likes Object Relational Mapping and the fly likes more than one version of 'org.apache.commons.logging.Log' visible Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login


Win a copy of OCA/OCP Java SE 7 Programmer I & II Study Guide this week in the OCPJP forum!
JavaRanch » Java Forums » Databases » Object Relational Mapping
Bookmark "more than one version of Watch "more than one version of New topic
Author

more than one version of 'org.apache.commons.logging.Log' visible

Ravi Kiran Va
Ranch Hand

Joined: Apr 18, 2009
Posts: 2234

Hi

While using JPA i am getting this Exception

Caused by: org.apache.commons.logging.LogConfigurationException: org.apache.commons.logging.LogConfigurationException: org.apache.commons.logging.LogConfigurationException: Invalid class loader hierarchy. You have more than one version of 'org.apache.commons.logging.Log' visible, which is not allowed.

(Caused by org.apache.commons.logging.LogConfigurationException: Invalid class loader hierarchy. You have more than one version of 'org.apache.commons.logging.Log' visible, which is not allowed.) (Caused by org.apache.commons.logging.LogConfigurationException: org.apache.commons.logging.LogConfigurationException: Invalid class loader hierarchy. You have more than one version of 'org.apache.commons.logging.Log' visible, which is not allowed. (Caused by org.apache.commons.logging.LogConfigurationException: Invalid class loader hierarchy. You have more than one version of 'org.apache.commons.logging.Log' visible, which is not allowed.))


Please help


Save India From Corruption - Anna Hazare.
Leonardo Carreira
Ranch Hand

Joined: Apr 07, 2009
Posts: 489

Perhaps there's more than only file of commons-logging in your library..
please check it, remove the early version of commons-logging..


Sorry, perhaps my english language isn't too good.. Prepare for SCJP 6, Please God help me.. ☼
References : [Java.Boot] [JavaChamp] [JavaPrepare]
Ravi Kiran Va
Ranch Hand

Joined: Apr 18, 2009
Posts: 2234

Thanks Leonardo , i removed earlier log4j.jar file and its working fine now.
Leonardo Carreira
Ranch Hand

Joined: Apr 07, 2009
Posts: 489

Ok Ravi..
you're welcome..

its sounds good..
 
I agree. Here's the link: http://aspose.com/file-tools
 
subject: more than one version of 'org.apache.commons.logging.Log' visible