Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • SEARCH
  • Home
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 262693
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 11, 20262026-05-11T22:32:21+00:00 2026-05-11T22:32:21+00:00

By looking into the Open JPA website i’ve found that i can log the

  • 0

By looking into the Open JPA website i’ve found that i can log the generated SQL by using the following:

<property name="openjpa.Log" value="DefaultLevel=WARN, Runtime=INFO, Tool=INFO"/>

If i try to add the above property to my persistence.xml i get the following warning from weblogic:

<Warning> <J2EE> <BEA-160202> <You have specified a ope
njpa.Log setting in your configuration for persistence unit services.ear#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 controlle
d by the various JPA-specific debug settings in config.xml, or via the WebLogic
console.>

Anyone know what is the option in the console or how i can edit my config.xml to output the SQL?

  • 1 1 Answer
  • 2 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. Editorial Team
    Editorial Team
    2026-05-11T22:32:21+00:00Added an answer on May 11, 2026 at 10:32 pm

    From the OTN Discussion forum here are the steps :

    • Log into the weblogic console
    • Lock and Edit the session
    • Click Environment | Servers
    • Select the server you wish to monitor/debug
    • Click the Debug tab
    • expand the weblogic tree and select the JPA node
    • Click the enable button
    • Activate the changes.

    It might depend on the version of WLS you have. I understand that there were some issues if you’ve downloaded a newer version of OpenJPA and are using it with WLS.

    WebLogic issues aside, the configuration string you posted looks a bit off. Did you intend to use something like this (added in SQL=TRACE):

    <property name="openjpa.Log" 
                    value="DefaultLevel=WARN, Runtime=INFO, Tool=INFO, SQL=TRACE"/>
    
    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

I am looking into docs.phonegap.com and found no function that would open up video
I am looking into creating an Public API so that we can open up
I'm currently looking into automating a flex build so that we can get it
Am looking into developing an iPhone native app using Titanium Developer Since this is
I am looking into making a c# program that will read in the logcat
I am looking for an analytics solution that can give me loitering detection, line
I'm using CentOS 5.4 x86_64 and Boost 1.42.0 on a cluster that uses Open-MPI
I'm looking into using the Office Ribbon UI to help navigate around my application
I'm looking into using a CASS -Certified address validation service to correct user-provided street
I'm looking into building a web app that allows multiple e-commerce stores to coexist

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.