users@glassfish.java.net

Problem with logging hibernate 4.1.1 and GlassFish 3.2.2

From: <forums_at_java.net>
Date: Thu, 17 Jan 2013 12:18:57 -0600 (CST)

Dear, When i updated the glassfish from 3.1.2 to 3.1.2.2 the hibernate
logging to show sql values stopped to work: I use the sl4fj to log it
-commons-logging -slf4j-log4j -log4j(1.2.17) -slf4j-api(1.7.2) hibernate.cfg
true true log4j.properties # Log everything. Good for troubleshooting
log4j.logger.org.hibernate=INFO log4j.logger.org.hibernate.type=ALL
log4j.logger.org.hibernate.jdbc=trace So i got this in my stdout
Informações: HHH000046: Connection properties: {user=root, password=****}
Informações: HHH000006: Autocommit mode: false I dont know why its happens,
but if i downgrade to glassfish 3.2, with same configuration, it works and i
can see the sql values from hibernate. Output in Glassfish 3.1.2.2:
Informações: HCANN000001: Hibernate Commons Annotations {4.0.1.Final} log4j
doesnt work. Output in GlassFish 3.1.2: INFO Version:37 - HCANN000001:
Hibernate Commons Annotations {4.0.1.Final} LOG4j works !! Someone has any
idea ?

--
[Message sent by forum member 'rafaelobitten']
View Post: http://forums.java.net/node/893961