Ellow,
I'm running a java application on Websphere 6. I'm also using hibernate, spring and log4j. When hibernate gives problems, Websphere is logging these problemes in HIS logfile (SystemOut.log). I want to specify my own logfile but this seems to go wrong. Also when I do an insert, update or delete Websphere is logging this in his logfiles. My current log4j configuration is
log4j.rootLogger=DEBUG, unexpected
log4j.logger.org.hibernate=DEBUG, hibernate
log4j.additivity.org.hibernate=false
log4j.appender.hibernate.Encoding=UTF-8
log4j.appender.hibernate=org.apache.log4j.RollingFileAppender
log4j.appender.hibernate.File=Z:/logs/single_engine/hibernate.log
log4j.appender.hibernate.MaxFileSize=10000KB
log4j.appender.hibernate.MaxBackupIndex=10
log4j.appender.hibernate.layout=org.apache.log4j.PatternLayout
log4j.appender.hibernate.layout.ConversionPattern=%d %5p [%t] %c{1} - %L %m%n
A part of my Spring configuration is:
<prop key="hibernate.show_sql">${something.hibernate.show_sql}</prop> (for logging the sql results)
I hope somebody can help me. Thank in advance.
Kind regards,
Kimme
Need help with Hibernate? Read this first:
http://www.hibernate.org/ForumMailingli ... AskForHelp
Hibernate version:
Mapping documents:
Code between sessionFactory.openSession() and session.close():
Full stack trace of any exception that occurs:
Name and version of the database you are using:
The generated SQL (show_sql=true):
Debug level Hibernate log excerpt:
Problems with Session and transaction handling?
Read this:
http://hibernate.org/42.html