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

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 12, 20262026-06-12T07:39:14+00:00 2026-06-12T07:39:14+00:00

Why amd I getting warnings from Log4J 1.2.17? I am trying to use log4j

  • 0

Why amd I getting warnings from Log4J 1.2.17? I am trying to use log4j in my java project but I keep getting the following warnings. can someone please tell me why?

THE WARNINGS:

log4j:WARN Continuable parsing error 2 and column 87
log4j:WARN Document root element "log4j:configuration", must match DOCTYPE root "null".
log4j:WARN Continuable parsing error 2 and column 87
log4j:WARN Document is invalid: no grammar found.

MY log4j.xml file:

<?xml version="1.0" encoding="UTF-8"?>
<log4j:configuration xmlns:log4j = "http://jakarta.apache.org/log4j/" debug = "false">
    <appender name = "FILE" class = "org.apache.log4j.RollingFileAppender">
        <param name = "File" value = "test.log"/>
        <param name = "MaxFileSize" value = "5MB"/>
        <param name = "MaxBackupIndex" value = "50"/>
        <layout class = "org.apache.log4j.PatternLayout">
            <param name = "ConversionPattern" value = "[%d{dd/MM/yy hh:mm:ss:sss z}] %5p %c{2}: %m%n"/>
        </layout>
    </appender>

    <appender name="console" class="org.apache.log4j.ConsoleAppender">
        <layout class="org.apache.log4j.PatternLayout">
            <param name="ConversionPattern" value="%d [%t] %-5p %c - %m%n" />
        </layout>
    </appender>


    <category name = "org.uftwf">
        <priority value = "debug"/>
    </category>

    <!-- 
    <category name = "org.apache.catalina">
        <priority value = "error"/>
    </category>


    <category name = "org.hibernate">
        <priority value = "debug"/>
    </category>

    <category name="org.hibernate.SQL"> 
        <priority value="TRACE"/>  
    </category> 

    <category name="org.hibernate.type"> 
         <priority  value="TRACE"/> 
     </category> 

     -->

    <root>
        <priority value = "warn"/>
        <appender-ref ref = "console"/>
    </root>
</log4j:configuration>

I know its only a warning but I want to learn why I am getting them and also stop them from coming.. thanks

  • 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-12T07:39:15+00:00Added an answer on June 12, 2026 at 7:39 am

    You should have a <!DOCTYPE log4j:configuration SYSTEM "log4j.dtd"> before your <log4j:configuration.

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

Sidebar

Related Questions

I'm trying to use JNI and getting java.lang.UnsatisfiedLinkError. Unlike the other million questions asked
I have a Host Javascript Application, which not use AMD, BackboneJS or RequireJS but
I am upgrading a project from Dojo 1.6.1 using AMD and RequireJS to Dojo
The following code comes from the amd website __kernel void reduce(__global float* buffer, __local
I'm trying to include jQuery Mobile in a project that uses RequireJS for AMD,
When I am trying to connect SVN to eclipse I am getting the following
We're getting new servers. Trying to figure out the AMD vs Intel holy war.
I have an AMD Athlon II P320 Dual-Core Processor 2.10 GHz. I'm trying to
In an Dojo 1.7 AMD web app you can define also arbitrary data in
Is adding an optimization pass for AMD OpenCL any different from writing an LLVM

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.