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
|