-->
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.  [ 2 posts ] 
Author Message
 Post subject: Hibernate Logging
PostPosted: Tue Oct 10, 2006 5:10 pm 
Newbie

Joined: Thu Oct 05, 2006 5:06 pm
Posts: 1
hibernate version: 3

Hello,

We need help from support group. We are having an issue in our application and its details are as follows.

ISSUE :

We are not able log entries in webshere network deployment architecture. We are using log4j properties for logging purpose. We are able to see all other entries except hibernate entries. We did enable show sql as true for hibernate. We are able to hibernate entries in Development environment when websphere does not have network deployment architecuture. We need help for this issue. We are reaching to production in soon. Please guide us in this issue. We are looking expertl technical support from hibernate product. Could you guide us to get help on this. I really appreciate your help.


Regards,

Karuna.


Top
 Profile  
 
 Post subject:
PostPosted: Wed Oct 11, 2006 9:06 am 
Senior
Senior

Joined: Wed Aug 17, 2005 12:56 pm
Posts: 136
Location: Erie, PA (USA)
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 ...

_________________
---- Don't forget to rate! ----


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