aspose file tools*
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 EJB 3 in Action this week in the EJB and other Java EE Technologies 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..
 
jQuery in Action, 2nd edition
 
subject: more than one version of 'org.apache.commons.logging.Log' visible
 
Similar Threads
commons-looging version issue during a maven build
tomcat and struts
glassFish war deploy: multipe loggers error ?
Deployment error NoClassDefFoundError: org.hibernate.cfg.Configuration on Oracle 11g App Server
Invalid class loader hierarchy