tomee-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From twelveeighty <>
Subject TomEE openJPA logging not working
Date Sun, 12 Aug 2012 22:48:46 GMT
I am stuck trying to get openJPA to log its openjpa.jdbc.SQL statements. No
matter what I try, I can't seem to bump up the log level for openJPA.
Ideally, I'd like to have those logged to my log4j configuration, but at
this point, I'll settle for ANY solution that will have me see those log

My app is an "all in one" WAR, as described in

Here's what I tried so far:

I have a file in the <tomee>/lib folder. In it, I use:

This is alongside my other log settings, which are working fine:
log4j.category.<myroot>=DEBUG, where <myroot> is the root package for my own

For the deployed app, in the META-INF/persistence.xml, I have defined:
<property name="openjpa.Log" value="log4j"/>

This doesn't work. All I see in the catalina.out console log is the two
INFO - Starting OpenJPA 2.2.0
INFO - Using dictionary class

But nothing in my log4j log.


For this, I added the following to the <tomee>/conf/

And then in my persistence.xml, I use:
<property name="openjpa.Log" value="commons"/>

This also doesn't work.

I am able to use openJPA logging in log4j with the described method on
"vanilla" Tomcat 7 with openJPA, so I do not think this is a problem with

Can someone point me in the right direction? Thanks!

View this message in context:
Sent from the OpenEJB User mailing list archive at

View raw message