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

  • Home
  • SEARCH
  • 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 8570845
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 11, 20262026-06-11T18:39:03+00:00 2026-06-11T18:39:03+00:00

First of all I need to say that I’m newbie in Java and Java-related

  • 0

First of all I need to say that I’m newbie in Java and Java-related technologies.
Recently I got a big project in Java. It has client and server sides. When I’m trying to call client-side application, it gives me following warning:

`log4j:WARN No appenders could be found for logger (org.jboss.security.SecurityAssociation).  
log4j:WARN Please initialize the log4j system properly.`  

Ok, it seems like log4j can’t find its properties file. I didn’t find any, so I wrote a new one:

log4j.rootLogger=info, stdout, file

log4j.appender.stdout=org.apache.log4j.ConsoleAppender
log4j.appender.stdout.layout=org.apache.log4j.PatternLayout
log4j.appender.stdout.layout.ConversionPattern=%5p [%t] (%F:%L) - %m%n

log4j.appender.file=org.apache.log4j.FileAppender
log4j.appender.file.file=server.log
log4j.appender.file.layout=org.apache.log4j.PatternLayout
log4j.appender.file.layout.ConversionPattern=%5p [%t] (%F:%L) - %m%n`

And now I have no idea where I have to put it. Documentation says, that it has to be in classpath – so I tried to put it into /src/ subdirectory of client, web and webinfo folders. I also tried the root folder of project – but it keeps giving me warnings.
Does anybody know good manual on “How to find a place to put log4j.properties file” topic? Or maybe I have to write somewhere in jboss configuration files that I’m using the following log4j.properties file?

  • 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-11T18:39:04+00:00Added an answer on June 11, 2026 at 6:39 pm

    You can configure log4j properties in different ways,

    • As you said, it has to be in classpath, For any web application default classpath would be WEB-INF/classes, You can place log4j.properties file there. If it is not web application, try to find where all your classes resides, usually inside bin folder.
    • Other way is you can configure it via VM args

    -Dlog4j.configuration=file:/C:/testing/mylog4j.properties

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

Sidebar

Related Questions

First of all I need to say that I'm new to jQuery. When I
First of all, I need to say that my English is not good. So
Let's say I have 10 tableViews that all need to have the first cell's
First of all, sorry for my English. I need some help with this. Recently
First of all I won't to say that I'm an expert in database handling,
Hi there First of all just let me say that I'm new in Python
First of all, I want to say that I know there are a bunch
First of all, let me say that I am not looking for a GUI
First of all let me just say that I am new to nHibernate so
in first and foremost i need to say that I'm new in Spring AOP

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.