Hibernate uses commons-logging. Configure commons-logging to defer to Log4J. commons-logging.properties:
Code:
####
#### To get commons logging to work properly with
#### Websphere, the server must be started w/ the following:
#### -Dorg.apache.commons.logging.LogFactory=org.apache.commons.logging.impl.LogFactoryImpl
####
# Use log4j
org.apache.commons.logging.Log=org.apache.commons.logging.impl.Log4JLogger
# Configuration file for Log4J
log4j.configuration=log4j.properties
I had to add a system property to my WSAD (v5.1.2) development environment to get this working:
Code:
org.apache.commons.logging.LogFactory=org.apache.commons.logging.impl.LogFactoryImpl
I would assume that the same would be necessary for the server config although I didn't try it as I only wanted this logging in development.
Curtis ...