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 3407542
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 18, 20262026-05-18T05:45:49+00:00 2026-05-18T05:45:49+00:00

How can I configure OpenEJB logging format? This is what what I see now

  • 0

How can I configure OpenEJB logging format? This is what what I see now in logs:

[...]
Tests run: 1, Failures: 0, Errors: 0, Skipped: 0, Time elapsed: 0.011 sec
Running com.XXX.FooTest
Apache OpenEJB 3.1.3    build: 20101015-05:42
http://openejb.apache.org/
INFO - openejb.home = /code/XXX
INFO - openejb.base = /code/XXX
INFO - Configuring Service(id=Default Security Serv...
[...]

I would like to disable INFO messages, and change formatting of others. Changes in log4j.properties have no effect.

  • 1 1 Answer
  • 0 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-18T05:45:50+00:00Added an answer on May 18, 2026 at 5:45 am

    This is what I did to make things work properly (in pom.xml):

    <plugin>
      <groupId>org.apache.maven.plugins</groupId>
      <artifactId>maven-surefire-plugin</artifactId>
      <version>2.5</version>
      <configuration>
        <systemPropertyVariables>
          <openejb.logger.external>true</openejb.logger.external>
        </systemPropertyVariables>
      </configuration>
    </plugin>
    

    Works fine now. This is my test/resources/jndi.properties:

    openejb.validation.output.level=VERBOSE
    openejb.nobanner=false
    

    This is test/resources/log4j.properties:

    log4j.rootLogger=INFO, CONSOLE
    log4j.appender.CONSOLE=org.apache.log4j.ConsoleAppender
    log4j.appender.CONSOLE.layout=org.apache.log4j.PatternLayout
    log4j.appender.CONSOLE.layout.ConversionPattern = [%-5p] %c: %m\n
    # OpenEJB levels
    log4j.logger.OpenEJB=INFO
    log4j.logger.OpenEJB.options=INFO
    log4j.logger.OpenEJB.server=INFO
    log4j.logger.OpenEJB.startup=INFO
    log4j.logger.OpenEJB.startup.service=INFO
    log4j.logger.OpenEJB.startup.config=INFO
    log4j.logger.OpenEJB.hsql=INFO
    log4j.logger.CORBA-Adapter=INFO
    log4j.logger.Transaction=INFO
    log4j.logger.org.apache.activemq=INFO
    log4j.logger.org.apache.geronimo=INFO
    # OpenJPA logging levels
    log4j.logger.openjpa.Tool=WARN
    log4j.logger.openjpa.Runtime=WARN
    log4j.logger.openjpa.Remote=WARN
    log4j.logger.openjpa.DataCache=WARN
    log4j.logger.openjpa.MetaData=WARN
    log4j.logger.openjpa.Enhance=WARN
    log4j.logger.openjpa.Query=WARN
    log4j.logger.openjpa.jdbc.SQL=WARN
    log4j.logger.openjpa.jdbc.SQLDiag=WARN
    log4j.logger.openjpa.jdbc.JDBC=WARN
    log4j.logger.openjpa.jdbc.Schema=WARN
    

    Now I can fine-tune logging of OpenEJB during testing, thanks to David’s support 🙂

    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

I'm using log4net for logging (duh!). Using the EventLogAppender, I can configure my application
I just found out recently that you can configure Visual Studio (but this question
Is there a way I can configure the AdoNetAppender to log every time a
Couchbase .Net manual says that I can configure my client in this way: <couchbase><servers
I know I can configure command line arguments in the Run configuration but I
In Eclipse you can configure numerous servers to run inside the IDE, including Tomcat.
Is this something you can configure and/or dependent on your Application Server? I am
I have a service that user can configure to run during off-peak hours. They
As described in OpenEJB docs, we can configure JMS connection factory and queues, and
Is there some way by which I can configure eclipse to run a program

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.