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

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 27, 20262026-05-27T15:29:08+00:00 2026-05-27T15:29:08+00:00

I have a Java EE application running under Glassfish. After some recent changes we

  • 0

I have a Java EE application running under Glassfish.

After some recent changes we started seeing a spew of statements in our logs:

[#|2011-12-16T11:20:27.007-0800|INFO|sun-appserver9.1|javax.enterprise.system.stream.out|_ThreadID=19;_ThreadName=Thread-62;|2011-12-16 11:20:27,007 DEBUG org.apache.commons.httpclient.HttpConnection[Thread-62] - enter HttpConnection.closeSockedAndStreams()
|#]

[#|2011-12-16T11:20:32.007-0800|INFO|sun-appserver9.1|javax.enterprise.system.stream.out|_ThreadID=19;_ThreadName=Thread-62;|2011-12-16 11:20:32,007 DEBUG org.apache.commons.httpclient.HttpConnection[Thread-62] - enter HttpConnection.close()

We have set log4j.properties in an attempt to silence these

log4j.logger.org.apache.commons.httpclient=WARN

But that doesn’t work. How can I find the source or origin of these log statements? What I think I want is like a stack trace that shows me what code is being called to cause this log statement.

Maybe something in here will help? http://logging.apache.org/log4j/1.2/apidocs/org/apache/log4j/PatternLayout.html

More importantly, how can I shut these statements up? They’re polluting our logs.

  • 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-27T15:29:08+00:00Added an answer on May 27, 2026 at 3:29 pm

    The solution to this is much simpler than I expected.

    I found out that I can pass this argument -Dlog4j.debug=true to the JVM. It will make log4j tell me where it loads its configuration from.

    It looks like this:

    log4j: Using URL [jar:file:/C:/Sun/GF2/domains/domain1/applications/j2ee-apps/MyProject/lib/omar.jar!/log4j.properties] for automatic log4j configuration.|#]
    ...
    Parsing for [root] with value=[trace, stdout, R].|#]
    

    I found that JAR in my classpath was packaged with a log4j.properties file (SLOPPY!) that had the root logger set to TRACE.

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

Sidebar

Related Questions

We have an issue related to a Java application running under a (rather old)
We have a Java EE-based web application running on a Glassfish app server cluster.
in our application we have a Java applet running inside a .NET browser control.
I have a java web application running under tomcat in a Sun java 6
I have a Java application that is running perfectly under windows, i go to
We have an web application running under JBoss 5 which periodically launches a 'java'
I have an application which has been running happily under Java 1.5 for around
I have a Java application running in WebLogic 11g on Windows, which after several
We have a Java application running on JBoss 5.1 and in some cases we
I have an Java application running in JBoss in which I have enabled JMX

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.