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.  [ 4 posts ] 
Author Message
 Post subject: logging with JDK 1.5 (again)
PostPosted: Fri Dec 08, 2006 10:43 am 
Newbie

Joined: Thu Dec 07, 2006 7:23 am
Posts: 8
I have downloaded Hibernate, created a mapping file, and copied what I think (and README.txt indicated) is necessary to WEB-INF/lib of my webapp:
    ant-1.6.2.jar
    ant-antlr-1.6.2.jar
    ant-junit-1.6.2.jar
    ant-launcher-1.6.2.jar
    antlr-2.7.4.jar
    ant-swing-1.6.2.jar
    cglib-full-2.0.2.jar
    cleanimports.jar
    commons-collections-2.1.1.jar
    dom4j-1.5.2.jar
    ehcache-1.1.jar
    jaxen-1.1-beta-4.jar
    jta.jar
    versioncheck.jar
    xml-apis.jar


I don't want to use Log4j and I don't have it in classpath, yet Hibernate ends up complaining as follows:
...
Caused by: java.lang.NoClassDefFoundError: org/apache/log4j/Logger
at org.hibernate.tuple.PojoTuplizer.<clinit>(PojoTuplizer.java:42)
...

This happens with Sysdeo's Tomcat plugin in Eclipse as well as when Tomcat is started as a service.

Could you make a hint what else should I check PLZ?


Top
 Profile  
 
 Post subject:
PostPosted: Fri Dec 08, 2006 11:53 am 
Expert
Expert

Joined: Tue Dec 28, 2004 7:02 am
Posts: 573
Location: Toulouse, France
Maybe some log4j classes were found in one of the jars you used, so commons-logging considers it could be used, then it crashed when trying to load some other classes which were actually not present...

My 2 cents :-)

_________________
Baptiste
PS : please don't forget to give credits below if you found this answer useful :)


Top
 Profile  
 
 Post subject:
PostPosted: Fri Dec 08, 2006 12:12 pm 
Newbie

Joined: Thu Dec 07, 2006 7:23 am
Posts: 8
batmat wrote:
Maybe some log4j classes were found in one of the jars you used, so commons-logging considers it could be used, then it crashed when trying to load some other classes which were actually not present...

My 2 cents :-)


There are few in commons-logging.jar, but this is not probably what you mean. (The mentioned jar is required by Hibernate so it would be actually impossible to use it w/o Log4j.)

THNX anyways


Top
 Profile  
 
 Post subject: my fault
PostPosted: Fri Dec 08, 2006 2:13 pm 
Newbie

Joined: Thu Dec 07, 2006 7:23 am
Posts: 8
I've made one more search in the forum and found several questions regarding the same problem, usually dated to 2005. So I ckecked the Hibernate package I downloaded before, and it seems to me that I "managed" to d/l some deprecated version of Hibernate (probably linked from one of the tutorials I took) that has just the problem.

I'm sorry for this

P.S.: Now another exception is thrown but it has nothing to do with logging and I'll play with it on monday, now gotta leave. :o)


Top
 Profile  
 
Display posts from previous:  Sort by  
Forum locked This topic is locked, you cannot edit posts or make further replies.  [ 4 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.