I have modified log.properties to send all my hibernate related log files to
hibernate.log. But i am getting following error.
In my struts application can i have one more log file for writing my Application level logs in my Action class ?
------------------------------------
### direct log messages to stdout ###
#log4j.appender.stdout=org.apache.log4j.ConsoleAppender
#log4j.appender.stdout.Target=System.out
#log4j.appender.stdout.layout=org.apache.log4j.PatternLayout
#log4j.appender.stdout.layout.ConversionPattern=%d{ABSOLUTE} %5p %c{1}:%L - %m%n
### direct messages to file hibernate.log ###
log4j.appender.file=org.apache.log4j.FileAppender
log4j.appender.file.File=hibernate.log
#log4j.appender.file.File=c:\\hibernate.log
#log4j.appender.file.File=E:\\\\OC4J\\j2ee\\home\\applications\\example2\\WEB-INF\\hlog\\hibernate.log
log4j.appender.file.layout=org.apache.log4j.PatternLayout
log4j.appender.file.layout.ConversionPattern=%d{ABSOLUTE} %5p %c{1}:%L - %m%n
--------------------------------
Need help with Hibernate? Read this first:
http://www.hibernate.org/ForumMailingli ... AskForHelp
Hibernate version:2
Mapping documents:
Code between sessionFactory.openSession() and session.close():
Full stack trace of any exception that occurs:
F:\oc4j_extended\j2ee\home>java -mx512M -jar oc4j.jar
06/02/14 18:11:28 Oracle Application Server Containers for J2EE 10g (9.0.4.0.0)
initialized
06/02/14 18:12:46 log4j:ERROR Could not find value for key log4j.appender.stdout
06/02/14 18:12:46 log4j:ERROR Could not instantiate appender named "stdout".
Name and version of the database you are using:
SQL Server 2000
The generated SQL (show_sql=true):
Debug level Hibernate log excerpt: