java.lang.ExceptionInInitializerError

Hibernate JIRA | Les Hazlewood | 1 decade ago
tip
Your exception is missing from the Samebug knowledge base.
Here are the best solutions we found on the Internet.
Click on the to mark the helpful solution and get rewards for you help.
  1. 0

    When using the ant <hibernatetool> task, schema generation fails due to an error in commons logging, saying there is more than one version visible. However, the _only_ commons-logging jar in the build is the one included in the hibernate-tools 3.0alpha4a distribution located here: plugins/org.hibernate.eclipse_3.0.0.alpha4/lib/commons-logging-1.0.4.jar I've included a simple ant project that duplicates the error. The only libraries in the project are those required according to the Hibernate-Tools documentation to run the hibernatetool ant task. These libs were copied over from the hibernate-tools distribution, with the exception of hibernate3.jar, which was copied from the Hibernate 3.0.5 distribution from SourceForge. There is a very simple class hierarchy and hbm.xml file to use for testing schema generation. Just unzip the attached file and run on the command line: > ant gen.schema Below the following line is the ant verbose output when running the above command, i.e. > ant -v gen.schema --------------------------------------------------------------- [lhazlewood@localhost hibernateToolTest]$ ant -v gen.schema Apache Ant version 1.6.5 compiled on June 2 2005 Buildfile: build.xml Detected Java version: 1.5 in: /usr/local/java/jdk/jdk1.5.0_03/jre Detected OS: Linux parsing buildfile /home/lhazlewood/projects/hibernateToolTest/build.xml with URI = file:///home/lhazlewood/projects/hibernateToolTest/build.xml Project base dir set to: /home/lhazlewood/projects/hibernateToolTest dropping /home/lhazlewood/projects/hibernateToolTest/build/classes from path as it doesn't exist Build sequence for target(s) `gen.schema' is [prepare, compile, jar, gen.schema] Complete build sequence is [prepare, compile, jar, gen.schema, clean, usage, ] prepare: [mkdir] Created dir: /home/lhazlewood/projects/hibernateToolTest/build [mkdir] Created dir: /home/lhazlewood/projects/hibernateToolTest/build/dist [mkdir] Created dir: /home/lhazlewood/projects/hibernateToolTest/build/classes compile: [javac] com/domain/Entity.java added as com/domain/Entity.class doesn't exist. [javac] com/domain/Party.java added as com/domain/Party.class doesn't exist. [javac] com/domain/Person.java added as com/domain/Person.class doesn't exist. [javac] com/domain/UUIDGenerator.java added as com/domain/UUIDGenerator.class doesn't exist. [javac] com/domain/User.java added as com/domain/User.class doesn't exist. [javac] Compiling 5 source files to /home/lhazlewood/projects/hibernateToolTest/build/classes [javac] Using modern compiler [javac] Compilation arguments: [javac] '-d' [javac] '/home/lhazlewood/projects/hibernateToolTest/build/classes' [javac] '-classpath' [javac] '/home/lhazlewood/projects/hibernateToolTest/build/classes:/home/lhazlewood/projects/hibernateToolTest/lib/hibernate/hibernate3.jar:/usr/local/java/tools/ant/current/lib/ant-launcher.jar:/home/lhazlewood/.ant/lib/junit.jar:/usr/local/java/tools/ant/current/lib/ant-icontract.jar:/usr/local/java/tools/ant/current/lib/ant-xslp.jar:/usr/local/java/tools/ant/current/lib/ant-starteam.jar:/usr/local/java/tools/ant/current/lib/ant-apache-bcel.jar:/usr/local/java/tools/ant/current/lib/ant.jar:/usr/local/java/tools/ant/current/lib/ant-apache-bsf.jar:/usr/local/java/tools/ant/current/lib/ant-weblogic.jar:/usr/local/java/tools/ant/current/lib/ant-netrexx.jar:/usr/local/java/tools/ant/current/lib/ant-antlr.jar:/usr/local/java/tools/ant/current/lib/ant-jdepend.jar:/usr/local/java/tools/ant/current/lib/ant-commons-logging.jar:/usr/local/java/tools/ant/current/lib/ant-jsch.jar:/usr/local/java/tools/ant/current/lib/ant-apache-resolver.jar:/usr/local/java/tools/ant/current/lib/ant-nodeps.jar:/usr/local/java/tools/ant/current/lib/ant-jai.jar:/usr/local/java/tools/ant/current/lib/ant-junit.jar:/usr/local/java/tools/ant/current/lib/xercesImpl.jar:/usr/local/java/tools/ant/current/lib/ant-trax.jar:/usr/local/java/tools/ant/current/lib/ant-vaj.jar:/usr/local/java/tools/ant/current/lib/ant-apache-oro.jar:/usr/local/java/tools/ant/current/lib/ant-javamail.jar:/usr/local/java/tools/ant/current/lib/ant-xalan1.jar:/usr/local/java/tools/ant/current/lib/xml-apis.jar:/usr/local/java/tools/ant/current/lib/ant-jmf.jar:/usr/local/java/tools/ant/current/lib/ant-stylebook.jar:/usr/local/java/tools/ant/current/lib/ant-swing.jar:/usr/local/java/tools/ant/current/lib/ant-apache-regexp.jar:/usr/local/java/tools/ant/current/lib/ant-commons-net.jar:/usr/local/java/tools/ant/current/lib/ant-apache-log4j.jar:/usr/local/java/jdk/jdk1.5.0_03/lib/tools.jar' [javac] '-sourcepath' [javac] '/home/lhazlewood/projects/hibernateToolTest/src' [javac] '-g' [javac] '-O' [javac] [javac] The ' characters around the executable and arguments are [javac] not part of the command. [javac] Files to be compiled: [javac] /home/lhazlewood/projects/hibernateToolTest/src/com/domain/Entity.java [javac] /home/lhazlewood/projects/hibernateToolTest/src/com/domain/Party.java [javac] /home/lhazlewood/projects/hibernateToolTest/src/com/domain/Person.java [javac] /home/lhazlewood/projects/hibernateToolTest/src/com/domain/UUIDGenerator.java [javac] /home/lhazlewood/projects/hibernateToolTest/src/com/domain/User.java jar: [jar] Building jar: /home/lhazlewood/projects/hibernateToolTest/build/dist/hibernateToolTest.jar [jar] adding directory META-INF/ [jar] adding entry META-INF/MANIFEST.MF [jar] adding directory com/ [jar] adding directory com/domain/ [jar] adding entry com/domain/Entity.class [jar] adding entry com/domain/Party.class [jar] adding entry com/domain/Person.class [jar] adding entry com/domain/UUIDGenerator.class [jar] adding entry com/domain/User.class [jar] adding entry Party.hbm.xml gen.schema: [hibernatetool] Executing Hibernate Tool with a Standard Configuration [hibernatetool] 1. task: hbm2ddl (Generates database schema) BUILD FAILED java.lang.ExceptionInInitializerError at org.apache.tools.ant.Project.executeSortedTargets(Project.java:1225) at org.apache.tools.ant.Project.executeTarget(Project.java:1185) at org.apache.tools.ant.helper.DefaultExecutor.executeTargets(DefaultExecutor.java:40) at org.apache.tools.ant.Project.executeTargets(Project.java:1068) at org.apache.tools.ant.Main.runBuild(Main.java:668) at org.apache.tools.ant.Main.startAnt(Main.java:187) at org.apache.tools.ant.launch.Launcher.run(Launcher.java:246) at org.apache.tools.ant.launch.Launcher.main(Launcher.java:67) Caused by: java.lang.ExceptionInInitializerError at org.hibernate.tool.ant.Hbm2DDLGeneratorTask.execute(Hbm2DDLGeneratorTask.java:38) at org.hibernate.tool.ant.HibernateToolTask.execute(HibernateToolTask.java:115) at org.apache.tools.ant.UnknownElement.execute(UnknownElement.java:275) at org.apache.tools.ant.Task.perform(Task.java:364) at org.apache.tools.ant.Target.execute(Target.java:341) at org.apache.tools.ant.Target.performTasks(Target.java:369) at org.apache.tools.ant.Project.executeSortedTargets(Project.java:1216) ... 7 more 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.)) at org.apache.commons.logging.impl.LogFactoryImpl.newInstance(LogFactoryImpl.java:543) at org.apache.commons.logging.impl.LogFactoryImpl.getInstance(LogFactoryImpl.java:235) at org.apache.commons.logging.impl.LogFactoryImpl.getInstance(LogFactoryImpl.java:209) at org.apache.commons.logging.LogFactory.getLog(LogFactory.java:351) at org.hibernate.tool.hbm2ddl.SchemaExport.<clinit>(SchemaExport.java:35) ... 14 more 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.) at org.apache.commons.logging.impl.LogFactoryImpl.getLogConstructor(LogFactoryImpl.java:397) at org.apache.commons.logging.impl.LogFactoryImpl.newInstance(LogFactoryImpl.java:529) ... 18 more 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. at org.apache.commons.logging.impl.LogFactoryImpl.getLogConstructor(LogFactoryImpl.java:385) ... 19 more --- Nested Exception --- java.lang.ExceptionInInitializerError at org.hibernate.tool.ant.Hbm2DDLGeneratorTask.execute(Hbm2DDLGeneratorTask.java:38) at org.hibernate.tool.ant.HibernateToolTask.execute(HibernateToolTask.java:115) at org.apache.tools.ant.UnknownElement.execute(UnknownElement.java:275) at org.apache.tools.ant.Task.perform(Task.java:364) at org.apache.tools.ant.Target.execute(Target.java:341) at org.apache.tools.ant.Target.performTasks(Target.java:369) at org.apache.tools.ant.Project.executeSortedTargets(Project.java:1216) at org.apache.tools.ant.Project.executeTarget(Project.java:1185) at org.apache.tools.ant.helper.DefaultExecutor.executeTargets(DefaultExecutor.java:40) at org.apache.tools.ant.Project.executeTargets(Project.java:1068) at org.apache.tools.ant.Main.runBuild(Main.java:668) at org.apache.tools.ant.Main.startAnt(Main.java:187) at org.apache.tools.ant.launch.Launcher.run(Launcher.java:246) at org.apache.tools.ant.launch.Launcher.main(Launcher.java:67) 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.)) at org.apache.commons.logging.impl.LogFactoryImpl.newInstance(LogFactoryImpl.java:543) at org.apache.commons.logging.impl.LogFactoryImpl.getInstance(LogFactoryImpl.java:235) at org.apache.commons.logging.impl.LogFactoryImpl.getInstance(LogFactoryImpl.java:209) at org.apache.commons.logging.LogFactory.getLog(LogFactory.java:351) at org.hibernate.tool.hbm2ddl.SchemaExport.<clinit>(SchemaExport.java:35) ... 14 more 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.) at org.apache.commons.logging.impl.LogFactoryImpl.getLogConstructor(LogFactoryImpl.java:397) at org.apache.commons.logging.impl.LogFactoryImpl.newInstance(LogFactoryImpl.java:529) ... 18 more 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. at org.apache.commons.logging.impl.LogFactoryImpl.getLogConstructor(LogFactoryImpl.java:385) ... 19 more Total time: 2 seconds [lhazlewood@localhost hibernateToolTest]$

    Hibernate JIRA | 1 decade ago | Les Hazlewood
    java.lang.ExceptionInInitializerError
  2. 0

    When using the ant <hibernatetool> task, schema generation fails due to an error in commons logging, saying there is more than one version visible. However, the _only_ commons-logging jar in the build is the one included in the hibernate-tools 3.0alpha4a distribution located here: plugins/org.hibernate.eclipse_3.0.0.alpha4/lib/commons-logging-1.0.4.jar I've included a simple ant project that duplicates the error. The only libraries in the project are those required according to the Hibernate-Tools documentation to run the hibernatetool ant task. These libs were copied over from the hibernate-tools distribution, with the exception of hibernate3.jar, which was copied from the Hibernate 3.0.5 distribution from SourceForge. There is a very simple class hierarchy and hbm.xml file to use for testing schema generation. Just unzip the attached file and run on the command line: > ant gen.schema Below the following line is the ant verbose output when running the above command, i.e. > ant -v gen.schema --------------------------------------------------------------- [lhazlewood@localhost hibernateToolTest]$ ant -v gen.schema Apache Ant version 1.6.5 compiled on June 2 2005 Buildfile: build.xml Detected Java version: 1.5 in: /usr/local/java/jdk/jdk1.5.0_03/jre Detected OS: Linux parsing buildfile /home/lhazlewood/projects/hibernateToolTest/build.xml with URI = file:///home/lhazlewood/projects/hibernateToolTest/build.xml Project base dir set to: /home/lhazlewood/projects/hibernateToolTest dropping /home/lhazlewood/projects/hibernateToolTest/build/classes from path as it doesn't exist Build sequence for target(s) `gen.schema' is [prepare, compile, jar, gen.schema] Complete build sequence is [prepare, compile, jar, gen.schema, clean, usage, ] prepare: [mkdir] Created dir: /home/lhazlewood/projects/hibernateToolTest/build [mkdir] Created dir: /home/lhazlewood/projects/hibernateToolTest/build/dist [mkdir] Created dir: /home/lhazlewood/projects/hibernateToolTest/build/classes compile: [javac] com/domain/Entity.java added as com/domain/Entity.class doesn't exist. [javac] com/domain/Party.java added as com/domain/Party.class doesn't exist. [javac] com/domain/Person.java added as com/domain/Person.class doesn't exist. [javac] com/domain/UUIDGenerator.java added as com/domain/UUIDGenerator.class doesn't exist. [javac] com/domain/User.java added as com/domain/User.class doesn't exist. [javac] Compiling 5 source files to /home/lhazlewood/projects/hibernateToolTest/build/classes [javac] Using modern compiler [javac] Compilation arguments: [javac] '-d' [javac] '/home/lhazlewood/projects/hibernateToolTest/build/classes' [javac] '-classpath' [javac] '/home/lhazlewood/projects/hibernateToolTest/build/classes:/home/lhazlewood/projects/hibernateToolTest/lib/hibernate/hibernate3.jar:/usr/local/java/tools/ant/current/lib/ant-launcher.jar:/home/lhazlewood/.ant/lib/junit.jar:/usr/local/java/tools/ant/current/lib/ant-icontract.jar:/usr/local/java/tools/ant/current/lib/ant-xslp.jar:/usr/local/java/tools/ant/current/lib/ant-starteam.jar:/usr/local/java/tools/ant/current/lib/ant-apache-bcel.jar:/usr/local/java/tools/ant/current/lib/ant.jar:/usr/local/java/tools/ant/current/lib/ant-apache-bsf.jar:/usr/local/java/tools/ant/current/lib/ant-weblogic.jar:/usr/local/java/tools/ant/current/lib/ant-netrexx.jar:/usr/local/java/tools/ant/current/lib/ant-antlr.jar:/usr/local/java/tools/ant/current/lib/ant-jdepend.jar:/usr/local/java/tools/ant/current/lib/ant-commons-logging.jar:/usr/local/java/tools/ant/current/lib/ant-jsch.jar:/usr/local/java/tools/ant/current/lib/ant-apache-resolver.jar:/usr/local/java/tools/ant/current/lib/ant-nodeps.jar:/usr/local/java/tools/ant/current/lib/ant-jai.jar:/usr/local/java/tools/ant/current/lib/ant-junit.jar:/usr/local/java/tools/ant/current/lib/xercesImpl.jar:/usr/local/java/tools/ant/current/lib/ant-trax.jar:/usr/local/java/tools/ant/current/lib/ant-vaj.jar:/usr/local/java/tools/ant/current/lib/ant-apache-oro.jar:/usr/local/java/tools/ant/current/lib/ant-javamail.jar:/usr/local/java/tools/ant/current/lib/ant-xalan1.jar:/usr/local/java/tools/ant/current/lib/xml-apis.jar:/usr/local/java/tools/ant/current/lib/ant-jmf.jar:/usr/local/java/tools/ant/current/lib/ant-stylebook.jar:/usr/local/java/tools/ant/current/lib/ant-swing.jar:/usr/local/java/tools/ant/current/lib/ant-apache-regexp.jar:/usr/local/java/tools/ant/current/lib/ant-commons-net.jar:/usr/local/java/tools/ant/current/lib/ant-apache-log4j.jar:/usr/local/java/jdk/jdk1.5.0_03/lib/tools.jar' [javac] '-sourcepath' [javac] '/home/lhazlewood/projects/hibernateToolTest/src' [javac] '-g' [javac] '-O' [javac] [javac] The ' characters around the executable and arguments are [javac] not part of the command. [javac] Files to be compiled: [javac] /home/lhazlewood/projects/hibernateToolTest/src/com/domain/Entity.java [javac] /home/lhazlewood/projects/hibernateToolTest/src/com/domain/Party.java [javac] /home/lhazlewood/projects/hibernateToolTest/src/com/domain/Person.java [javac] /home/lhazlewood/projects/hibernateToolTest/src/com/domain/UUIDGenerator.java [javac] /home/lhazlewood/projects/hibernateToolTest/src/com/domain/User.java jar: [jar] Building jar: /home/lhazlewood/projects/hibernateToolTest/build/dist/hibernateToolTest.jar [jar] adding directory META-INF/ [jar] adding entry META-INF/MANIFEST.MF [jar] adding directory com/ [jar] adding directory com/domain/ [jar] adding entry com/domain/Entity.class [jar] adding entry com/domain/Party.class [jar] adding entry com/domain/Person.class [jar] adding entry com/domain/UUIDGenerator.class [jar] adding entry com/domain/User.class [jar] adding entry Party.hbm.xml gen.schema: [hibernatetool] Executing Hibernate Tool with a Standard Configuration [hibernatetool] 1. task: hbm2ddl (Generates database schema) BUILD FAILED java.lang.ExceptionInInitializerError at org.apache.tools.ant.Project.executeSortedTargets(Project.java:1225) at org.apache.tools.ant.Project.executeTarget(Project.java:1185) at org.apache.tools.ant.helper.DefaultExecutor.executeTargets(DefaultExecutor.java:40) at org.apache.tools.ant.Project.executeTargets(Project.java:1068) at org.apache.tools.ant.Main.runBuild(Main.java:668) at org.apache.tools.ant.Main.startAnt(Main.java:187) at org.apache.tools.ant.launch.Launcher.run(Launcher.java:246) at org.apache.tools.ant.launch.Launcher.main(Launcher.java:67) Caused by: java.lang.ExceptionInInitializerError at org.hibernate.tool.ant.Hbm2DDLGeneratorTask.execute(Hbm2DDLGeneratorTask.java:38) at org.hibernate.tool.ant.HibernateToolTask.execute(HibernateToolTask.java:115) at org.apache.tools.ant.UnknownElement.execute(UnknownElement.java:275) at org.apache.tools.ant.Task.perform(Task.java:364) at org.apache.tools.ant.Target.execute(Target.java:341) at org.apache.tools.ant.Target.performTasks(Target.java:369) at org.apache.tools.ant.Project.executeSortedTargets(Project.java:1216) ... 7 more 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.)) at org.apache.commons.logging.impl.LogFactoryImpl.newInstance(LogFactoryImpl.java:543) at org.apache.commons.logging.impl.LogFactoryImpl.getInstance(LogFactoryImpl.java:235) at org.apache.commons.logging.impl.LogFactoryImpl.getInstance(LogFactoryImpl.java:209) at org.apache.commons.logging.LogFactory.getLog(LogFactory.java:351) at org.hibernate.tool.hbm2ddl.SchemaExport.<clinit>(SchemaExport.java:35) ... 14 more 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.) at org.apache.commons.logging.impl.LogFactoryImpl.getLogConstructor(LogFactoryImpl.java:397) at org.apache.commons.logging.impl.LogFactoryImpl.newInstance(LogFactoryImpl.java:529) ... 18 more 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. at org.apache.commons.logging.impl.LogFactoryImpl.getLogConstructor(LogFactoryImpl.java:385) ... 19 more --- Nested Exception --- java.lang.ExceptionInInitializerError at org.hibernate.tool.ant.Hbm2DDLGeneratorTask.execute(Hbm2DDLGeneratorTask.java:38) at org.hibernate.tool.ant.HibernateToolTask.execute(HibernateToolTask.java:115) at org.apache.tools.ant.UnknownElement.execute(UnknownElement.java:275) at org.apache.tools.ant.Task.perform(Task.java:364) at org.apache.tools.ant.Target.execute(Target.java:341) at org.apache.tools.ant.Target.performTasks(Target.java:369) at org.apache.tools.ant.Project.executeSortedTargets(Project.java:1216) at org.apache.tools.ant.Project.executeTarget(Project.java:1185) at org.apache.tools.ant.helper.DefaultExecutor.executeTargets(DefaultExecutor.java:40) at org.apache.tools.ant.Project.executeTargets(Project.java:1068) at org.apache.tools.ant.Main.runBuild(Main.java:668) at org.apache.tools.ant.Main.startAnt(Main.java:187) at org.apache.tools.ant.launch.Launcher.run(Launcher.java:246) at org.apache.tools.ant.launch.Launcher.main(Launcher.java:67) 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.)) at org.apache.commons.logging.impl.LogFactoryImpl.newInstance(LogFactoryImpl.java:543) at org.apache.commons.logging.impl.LogFactoryImpl.getInstance(LogFactoryImpl.java:235) at org.apache.commons.logging.impl.LogFactoryImpl.getInstance(LogFactoryImpl.java:209) at org.apache.commons.logging.LogFactory.getLog(LogFactory.java:351) at org.hibernate.tool.hbm2ddl.SchemaExport.<clinit>(SchemaExport.java:35) ... 14 more 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.) at org.apache.commons.logging.impl.LogFactoryImpl.getLogConstructor(LogFactoryImpl.java:397) at org.apache.commons.logging.impl.LogFactoryImpl.newInstance(LogFactoryImpl.java:529) ... 18 more 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. at org.apache.commons.logging.impl.LogFactoryImpl.getLogConstructor(LogFactoryImpl.java:385) ... 19 more Total time: 2 seconds [lhazlewood@localhost hibernateToolTest]$

    Hibernate JIRA | 1 decade ago | Les Hazlewood
    java.lang.ExceptionInInitializerError
  3. Speed up your debug routine!

    Automated exception search integrated into your IDE

  4. 0

    GitHub comment 1#148635288

    GitHub | 2 years ago | pzitoun
    org.springframework.beans.factory.BeanDefinitionStoreException: Unexpected exception parsing XML document from URL [bundle://281.0:0/META-INF/spring/spring.xml]; nested exception is 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.))

    4 unregistered visitors
    Not finding the right solution?
    Take a tour to get the most out of Samebug.

    Tired of useless tips?

    Automated exception search integrated into your IDE

    Root Cause Analysis

    1. 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.

      at org.apache.commons.logging.impl.LogFactoryImpl.getLogConstructor()
    2. Apache Commons Logging
      LogFactory.getLog
      1. org.apache.commons.logging.impl.LogFactoryImpl.getLogConstructor(LogFactoryImpl.java:385)
      2. org.apache.commons.logging.impl.LogFactoryImpl.newInstance(LogFactoryImpl.java:529)
      3. org.apache.commons.logging.impl.LogFactoryImpl.getInstance(LogFactoryImpl.java:235)
      4. org.apache.commons.logging.impl.LogFactoryImpl.getInstance(LogFactoryImpl.java:209)
      5. org.apache.commons.logging.LogFactory.getLog(LogFactory.java:351)
      5 frames
    3. Hibernate
      SchemaExport.<clinit>
      1. org.hibernate.tool.hbm2ddl.SchemaExport.<clinit>(SchemaExport.java:35)
      1 frame
    4. A Hibernate O/RM Module
      HibernateToolTask.execute
      1. org.hibernate.tool.ant.Hbm2DDLGeneratorTask.execute(Hbm2DDLGeneratorTask.java:38)
      2. org.hibernate.tool.ant.HibernateToolTask.execute(HibernateToolTask.java:115)
      2 frames
    5. Ant
      Main.startAnt
      1. org.apache.tools.ant.UnknownElement.execute(UnknownElement.java:275)
      2. org.apache.tools.ant.Task.perform(Task.java:364)
      3. org.apache.tools.ant.Target.execute(Target.java:341)
      4. org.apache.tools.ant.Target.performTasks(Target.java:369)
      5. org.apache.tools.ant.Project.executeSortedTargets(Project.java:1216)
      6. org.apache.tools.ant.Project.executeTarget(Project.java:1185)
      7. org.apache.tools.ant.helper.DefaultExecutor.executeTargets(DefaultExecutor.java:40)
      8. org.apache.tools.ant.Project.executeTargets(Project.java:1068)
      9. org.apache.tools.ant.Main.runBuild(Main.java:668)
      10. org.apache.tools.ant.Main.startAnt(Main.java:187)
      10 frames
    6. Apache Ant Launcher
      Launcher.main
      1. org.apache.tools.ant.launch.Launcher.run(Launcher.java:246)
      2. org.apache.tools.ant.launch.Launcher.main(Launcher.java:67)
      2 frames