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

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 18, 20262026-06-18T00:50:18+00:00 2026-06-18T00:50:18+00:00

I have a Java app that uses the Apache Commons Logging library to log

  • 0

I have a Java app that uses the Apache Commons Logging library to log various debug messages, errors, etc. It is currently set up to log to the console.

This is all working fine, but when I include Apache Tika on the classpath (as required by a different part of the application), the logging suddenly stops working. I’ve tried things like rearranging the classpath order, but nothing seems to help.

Log4J is being used to do the logging, and the properties file is set up correctly (it works without Tika). Getting the console to show the Log4J debug messages shows that, both before and after I add Tika, it is finding the properties file.

Any ideas what might be causing this – and more importantly, how I can fix it?

  • 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-06-18T00:50:20+00:00Added an answer on June 18, 2026 at 12:50 am

    I guess Log4j is using a different configuration file found on the classpath. Try running your application with -Dlog4j.debug

    If your application runs in Tomcat you could add it to:

    export TOMCAT_OPTS="-Dlog4j.debug -Dlog4j.configuration=foobar.xml"
    

    Running it with debug will show you where log4j finds it configuration.

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

Sidebar

Related Questions

I have a java app that uses log4j. Config: log4j.rootLogger=info, file log4j.appender.file=org.apache.log4j.DailyRollingFileAppender log4j.appender.file.File=${user.home}/logs/app.log log4j.appender.file.layout=org.apache.log4j.PatternLayout
I have a large Java app that uses massive amounts of memory at times
I have a web-app with a Java back-end that uses Tomcat jdbc-pool for database
I have a Java app that can authenticate to LDAP by logging users into
We have a Spring application that uses Apache DBCP for connection pooling. Our app
i have a java game app that uses sockets to communicate with each other.
Some colleagues of mine have a large Java web app that uses a search
I have a small Java desktop app that uses Swing. There is a data
I have a java web start app that uses Swing and needs to allow
I have a GAE app that uses the java.util.Calendar class. My app changes some

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.