Skip to main content

Problem with logging hibernate 4.1.1(using log4j) and GlassFish

Please note these forums are being decommissioned and use the new and improved forums at
1 reply [Last post]
Joined: 2013-01-17


When i updated the glassfish from 3.1.2 to the hibernate logging to show sql values stopped to work: I use the sl4fj to log it



true true

# Log everything. Good for troubleshooting

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

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 ?

Reply viewing options

Select your preferred way to display the comments and click "Save settings" to activate your changes.
Joined: 2013-01-17

I tested with other versions of hibernate and doesn't works, only works if i do downgrade of to 3.1.2