-->
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: Hibernate X JBuilder
PostPosted: Sun Jan 23, 2005 11:58 pm 
Newbie

Joined: Fri Jan 21, 2005 8:03 am
Posts: 3
Hi,

I´m trying to develop an application in JBuilder X Foundation

I created 2 files and saved them in classes folder (where i am holding my .class files) :
1 - hibernate.properties
2 - log4j.properties

And my "...hbm.xml" files are in folder classes\erico (where erico is the name of my package)

when I run the application I receive this message error :

log4j:ERROR setFile(null,true) call failed.
java.io.FileNotFoundException: log\test.log (O sistema não pode encontrar o caminho especificado)

I'm using log4j-1.2.8.jar in the application classpath and the code of my log4j.properties is :

log4j.rootLogger=INFO, dest1

log4j.appender.dest1=org.apache.log4j.ConsoleAppender
log4j.appender.dest1.layout=org.apache.log4j.PatternLayout
log4j.appender.dest1.layout.ConversionPattern=%d %-5p %-5c{3} %x -> %m%n

What would be my mistake in thsi scenario ?

Thanks
Érico


Top
 Profile  
 
 Post subject:
PostPosted: Mon Jan 24, 2005 4:09 am 
Hibernate Team
Hibernate Team

Joined: Tue Aug 26, 2003 6:10 am
Posts: 8615
Location: Neuchatel, Switzerland (Danish)
this is a log4j problem - not hibernate related....and i have no idead what that error messages says, but it looks very specific and should provide a great hint on how to solve it.

_________________
Max
Don't forget to rate


Top
 Profile  
 
 Post subject:
PostPosted: Mon Jan 24, 2005 8:20 am 
Newbie

Joined: Fri Jan 21, 2005 8:03 am
Posts: 3
Hi Max,

Thanks for your help

I know the problem is related to log4j

The problem is that it was not supposed to have this problem

The file is where it should be and with the corret syntax

Tha is why i can't find the solution, this message trates the application as if there was no log4j.properties or it wasn't set properly ...


Top
 Profile  
 
 Post subject:
PostPosted: Mon Jan 24, 2005 8:39 am 
Hibernate Team
Hibernate Team

Joined: Tue Aug 26, 2003 6:10 am
Posts: 8615
Location: Neuchatel, Switzerland (Danish)
it looks like a job for a commons logging and/or log4j forum.

hibernate doesn't do anything magically about log4j/commons-logging we just call them - its you who need to configure it.

_________________
Max
Don't forget to rate


Top
 Profile  
 
 Post subject:
PostPosted: Mon Jan 24, 2005 8:53 am 
Newbie

Joined: Fri Jan 21, 2005 8:03 am
Posts: 3
That is correct

I sent this message to a log4j forum

I will wait their reply because I really don't have more ideas to solve the problem ...


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.