-->
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.  [ 5 posts ] 
Author Message
 Post subject: Log4J error (no appenders could be found)
PostPosted: Mon Dec 15, 2003 7:52 am 
Beginner
Beginner

Joined: Thu Oct 09, 2003 11:41 am
Posts: 39
Location: Paris, France
Hi,

After I upgraded to Hibernate 2.1 from 2.0.3, I'm getting this error.

Code:
log4j:WARN No appenders could be found for logger (net.sf.hibernate.cfg.Environment).
log4j:WARN Please initialize the log4j system properly.


Supposedly, the file log4j.properties or log4j.xml cannot be found, and this causes the error. When I was running Hibernate 2.0.3, this error would occur occasionally when I started Tomcat after some library modifications. After reverting back it would be fine. Sometimes a restart would do it.

Now, after the upgrade, I'm having this error again, and I'm intent on finding out what is actually causing it all the time.

The log4j.properities file is located in the WEB-INF\classes directory and has always been there, and always worked fine.

What libraries can possibly intervene and cause this error?


Top
 Profile  
 
 Post subject:
PostPosted: Mon Dec 15, 2003 8:10 am 
Hibernate Team
Hibernate Team

Joined: Sun Sep 14, 2003 3:54 am
Posts: 7256
Location: Paris, France
common-logging

_________________
Emmanuel


Top
 Profile  
 
 Post subject:
PostPosted: Mon Dec 15, 2003 10:10 am 
Beginner
Beginner

Joined: Thu Oct 09, 2003 11:41 am
Posts: 39
Location: Paris, France
epbernard wrote:
common-logging


Thanks.

I still can't get it working... Any suggestion?


Top
 Profile  
 
 Post subject:
PostPosted: Mon Dec 15, 2003 5:37 pm 
Newbie

Joined: Wed Nov 12, 2003 11:16 am
Posts: 9
did you put the common-logging.jar file into the WEB-INF/lib folder?


Top
 Profile  
 
 Post subject:
PostPosted: Mon Dec 15, 2003 5:43 pm 
Beginner
Beginner

Joined: Thu Oct 09, 2003 11:41 am
Posts: 39
Location: Paris, France
mnickel wrote:
did you put the common-logging.jar file into the WEB-INF/lib folder?


Yes.

Now it's solved. Thnaks for all your help.


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