-->
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.  [ 1 post ] 
Author Message
 Post subject: Installation issue with "No suitable Log constructor&q
PostPosted: Sun Sep 19, 2004 10:35 pm 
Newbie

Joined: Wed Aug 18, 2004 1:23 am
Posts: 3
Hibernate version:
2.1.6

Mapping documents: -

Code between sessionFactory.openSession() and session.close():

Full stack trace of any exception that occurs:
$ ant eg Buildfile: build.xml
[taskdef] Could not load definitions from resource clovertasks. It could not be found.

eg:
[echo] Remember to place your JDBC driver in the lib directory!
[echo] This target is not runable from a CVS export/checkout!
[java] Exception in thread "main" 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;@1f33675 for org.apache.commons.logging.impl.Log4JLogger (Caused by java.lang.NoClassDefFoundError: org/apache/log4j/Category) (Caused by org.apache.commons.logging.LogConfigurationException: No suitable Log constructor [Ljava.lang.Class;@1f33675 for org.apache.commons.logging.impl.Log4JLogger (Caused by java.lang.NoClassDefFoundError: org/apache/log4j/Category))
[java] at org.apache.commons.logging.impl.LogFactoryImpl.newInstance(LogFactoryImpl.java:543)
[java] at org.apache.commons.logging.impl.LogFactoryImpl.getInstance(LogFactoryImpl.java:235)
[java] at org.apache.commons.logging.impl.LogFactoryImpl.getInstance(LogFactoryImpl.java:209)
[java] at org.apache.commons.logging.LogFactory.getLog(LogFactory.java:351)
[java] at net.sf.hibernate.cfg.Configuration.<clinit>(Configuration.java:94)
[java] ... 1 more
[java] Caused by: org.apache.commons.logging.LogConfigurationException: No suitable Log constructor [Ljava.lang.Class;@1f33675 for org.apache.commons.logging.impl.Log4JLogger (Caused by java.lang.NoClassDefFoundError: org/apache/log4j/Category)
[java] at org.apache.commons.logging.impl.LogFactoryImpl.getLogConstructor(LogFactoryImpl.java:413)
[java] at org.apache.commons.logging.impl.LogFactoryImpl.newInstance(LogFactoryImpl.java:529)
[java] ... 5 more
[java] Caused by: java.lang.NoClassDefFoundError: org/apache/log4j/Category
[java] at java.lang.Class.getDeclaredConstructors0(Native Method)
[java] at java.lang.Class.privateGetDeclaredConstructors(Class.java:1610)
[java] at java.lang.Class.getConstructor0(Class.java:1922)
[java] at java.lang.Class.getConstructor(Class.java:1019)
[java] at org.apache.commons.logging.impl.LogFactoryImpl.getLogConstructor(LogFactoryImpl.java:410)
[java] ... 6 more

Name and version of the database you are using:
MySQL 4 - mysql-connector 3.0.14

The generated SQL (show_sql=true):

Debug level Hibernate log excerpt:


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

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.