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

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 26, 20262026-05-26T18:30:08+00:00 2026-05-26T18:30:08+00:00

I have a tomcat app using hibernate. When I go into the WEB-INF and

  • 0

I have a tomcat app using hibernate. When I go into the WEB-INF and change the log4j.properties to the following…

log4j.logger.net.sf.hibernate.SQL=trace

But I am not seeing anything in the log file I am using.

log4j.rootLogger=debug, stdout
....
log4j.appender.file=org.apache.log4j.FileAppender
log4j.appender.file.File=hibernate.log
log4j.appender.file.layout=org.apache.log4j.PatternLayout
log4j.appender.file.layout.ConversionPattern=%d{ABSOLUTE} %5p %c{1}:%L - %m%n

Logging seems to work fine for my own app.

Any ideas?

  • 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-26T18:30:09+00:00Added an answer on May 26, 2026 at 6:30 pm

    Not sure on this, but I think newer Hibernate-versions might use slf4j instead of log4j. You can get past this by using a slf4j-log4j -bridge. If you’re using Maven, the dependency is along the lines of

        <!-- slf4j -> log4j bridge (some libraries use slf4j) -->
        <dependency>
            <groupId>org.slf4j</groupId>
            <artifactId>slf4j-log4j12</artifactId>
            <version>1.5.6</version>
            <type>jar</type>
            <scope>compile</scope>
        </dependency>
    

    Modify versions as necessary.

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

Sidebar

Related Questions

We have a large web app installation, using Apache/Tomcat/Jasper and jboss. In development environment,
I have a Java web app using JDBC created in NetBeans deployed to Tomcat
I have a web app on Tomcat, which handles DB connection pooling, and using
I have a following setup: App - Magnolia site running under Tomcat 6.0.16 ISAPI
I'm building a Route Planner Webapp using Spring/Hibernate/Tomcat and a mysql database, I have
I've been teaching myself Spring 3.0 by implementing a JavaEE Web-app using: Tomcat 7
I have a very large problem. I've written a large app using Flex3/Tomcat/BlazeDS/Spring that
I have a web app that runs under Tomcat on Windows XP that needs
I'm trying to build an app using Jersey, Rest, Tomcat, c3p0 etc. I have
I have a Java web app that I'm developing, using JBoss Seam as the

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.