java - Logging JPA SQL with Weblogic 10.3 -
By looking at the Open JPA website, I have found that I can log the generated SQL using the following:
< Pre> & lt; Property Name = "openjpa.log" Value = "DefaultLevel = wARN, Runtime = Info, Tools = INFO" / & gt; If I try to add the above property to my firmament XML I get the following warning from weblogic:
& lt; Warning & gt; & Lt; J2EE & gt; & Lt; BEA-160,202 & gt; & Lt; You have specified an open NJP.og setting in your configuration for firmness unit services. Air # services-ejb.jar # exp # exp This setting will be ignored, and all log messages will be sent to the WebLogic logging subsystem. Trace-level logging is config.xml in various JPA-specific debug settings, or controlle D by Weblogic Console. & Gt; Does anybody know what the console has in the alternative or how can I output my config.xml to SQL?
Here are the steps:
- Weblogic Log in to console
- Lock and edit session
- Click Environment | Server
- Select the server you want to monitor / debug
- Click the debug tab
- Expand the Weblogic tree and select the JPA node
- Click the Enable button
- Activate the change.
This may depend on the version of WLS. I understand that if you have downloaded some and used it with WLS then there were some issues < / P>
Weblogic Issues On one side, the configuration string you posted looks a bit far away, do you intend to use something like this (added to SQL = Trace):
< Pre> & lt; Property name = "openjpa.log" value = "defaultLevel = wARN, runtime = info, device = info, sql = trace" />
Comments
Post a Comment