-->
These old forums are deprecated now and set to read-only. We are waiting for you on our new forums!
More modern, Discourse-based and with GitHub/Google/Twitter authentication built-in.

All times are UTC - 5 hours [ DST ]



Forum locked This topic is locked, you cannot edit posts or make further replies.  [ 2 posts ] 
Author Message
 Post subject: LogConfigurationException when running "build eg"
PostPosted: Thu May 06, 2004 1:38 pm 
Newbie

Joined: Thu May 06, 2004 1:20 pm
Posts: 7
I have just downloaded Hibernate-2.1, unzipped it, and tried running "build eg" as per quick start instruction. I get the following problems. I am using j2sdk1.4.0_01. As far as I can tell, all the necessary jar files are in the lib directory. Please help.


C:\hibernate-2.1>build eg

C:\hibernate-2.1>set JDBC_DRIVER=C:\mysql\mysql-connector-java-3.0.8-stable-bin.
jar

C:\hibernate-2.1>java -cp "lib/ant-1.5.3.jar;lib/ant-optional-1.5.3.jar;lib/juni
t-3.8.1.jar;lib/xerces-2.4.0.jar;C:\j2sdk1.4.0_01/lib/tools.jar" org.apache.tool
s.ant.Main -Ddriver.jar=C:\mysql\mysql-connector-java-3.0.8-stable-bin.jar eg

Buildfile: build.xml
[taskdef] Could not load definitions from resource clovertasks. It could not b
e found.

eg:
[echo] remember to place your JDBC driver in the lib directory
[java] java.lang.ExceptionInInitializerError
[java] at org.hibernate.auction.Main.main(Main.java:356)
[java] Caused by: org.apache.commons.logging.LogConfigurationException: org
.apache.commons.logging.LogConfigurationException: No suitable Log constructor [
Ljava.lang.Class;@bab50a for org.apache.commons.logging.impl.Log4JLogger
[java] at org.apache.commons.logging.impl.LogFactoryImpl.newInstance(Lo
gFactoryImpl.java:532)
[java] at org.apache.commons.logging.impl.LogFactoryImpl.getInstance(Lo
gFactoryImpl.java:272)
[java] at org.apache.commons.logging.impl.LogFactoryImpl.getInstance(Lo
gFactoryImpl.java:246)
[java] at org.apache.commons.logging.LogFactory.getLog(LogFactory.java:
395)
[java] at net.sf.hibernate.cfg.Configuration.<clinit>(Configuration.jav
a:91)
[java] ... 1 more
[java] Caused by: org.apache.commons.logging.LogConfigurationException: No
suitable Log constructor [Ljava.lang.Class;@bab50a for org.apache.commons.loggin
g.impl.Log4JLogger
[java] at org.apache.commons.logging.impl.LogFactoryImpl.getLogConstruc
tor(LogFactoryImpl.java:432)
[java] at org.apache.commons.logging.impl.LogFactoryImpl.newInstance(Lo
gFactoryImpl.java:525)
[java] ... 5 more
[java] Caused by: java.lang.NoClassDefFoundError: org/apache/log4j/Logger
[java] at java.lang.Class.getDeclaredConstructors0(Native Method)
[java] at java.lang.Class.privateGetDeclaredConstructors(Class.java:157
6)
[java] at java.lang.Class.getConstructor0(Class.java:1748)
[java] at java.lang.Class.getConstructor(Class.java:990)
[java] at org.apache.commons.logging.impl.LogFactoryImpl.getLogConstruc
tor(LogFactoryImpl.java:429)
[java] ... 6 more
[java] Exception in thread "main"

BUILD FAILED
file:C:/hibernate-2.1/build.xml:458: Java returned: 1


Top
 Profile  
 
 Post subject:
PostPosted: Thu May 06, 2004 2:22 pm 
Newbie

Joined: Thu May 06, 2004 1:20 pm
Posts: 7
As I had suspected, it was a problem with my jdk. When I upgraded to the latest j2sdk1.4.2_04, the problem went away. Hope this will be helpful to other people running into a similar situation.


Top
 Profile  
 
Display posts from previous:  Sort by  
Forum locked This topic is locked, you cannot edit posts or make further replies.  [ 2 posts ] 

All times are UTC - 5 hours [ DST ]


You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum

Search for:
© Copyright 2014, Red Hat Inc. All rights reserved. JBoss and Hibernate are registered trademarks and servicemarks of Red Hat, Inc.