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

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 2, 20262026-06-02T23:42:20+00:00 2026-06-02T23:42:20+00:00

I create an spring application with log4j in JBoss 7.1.1.FINAL this is my configuration

  • 0

I create an spring application with log4j in JBoss 7.1.1.FINAL this is my configuration of log4j:

# Log4j level and names.
log4j.rootLogger=INFO, stdout, fileAppender
# Log4j relative path.
dir=${myWebapp-instance-root}
file=WEB-INF/logs/app.log
target=${dir}/${file}
# Used only for development.
log4j.appender.stdout=org.apache.log4j.ConsoleAppender
log4j.appender.stdout.layout=org.apache.log4j.PatternLayout
log4j.appender.stdout.layout.ConversionPattern=%d{ISO8601} [%t] %-5p (%F\:%L) \u2013 %m%n
log4j.logger.net.sf.ehcache=TRACE
# Log4j internal message debug , only on console .
log4j.debug=true
# File appender used in production.
log4j.appender.fileAppender=org.apache.log4j.RollingFileAppender
#log4j.appender.fileAppender.File=${app.logdir}/app.log
log4j.appender.fileAppender.File=${target}

log4j.appender.fileAppender.MaxFileSize=1MB
log4j.appender.fileAppender.MaxBackupIndex=5

log4j.appender.fileAppender.layout=org.apache.log4j.PatternLayout
log4j.appender.fileAppender.layout.ConversionPattern=%d{ISO8601} %t %p %c \u2013 %m%n

the directory and the file are created,but in app.log there is nothing in there(page in white)
Jboss not give any error running the application, this is the part of log4j:

17:01:33,342 INFO  [org.apache.catalina.core.ContainerBase.[jboss.web].[default-host].[/projvehimerc]] (MSC service thread 1-1) Initializing log4j from [/opt/jboss-as-7.1.1.Final/standalone/deployments/projvehimerc.war/WEB-INF/log4j-webapp.properties]
17:01:33,351 INFO  [stdout] (MSC service thread 1-1) log4j: Parsing for [root] with value=[INFO, stdout, fileAppender].
17:01:33,352 INFO  [stdout] (MSC service thread 1-1) log4j: Level token is [INFO].
17:01:33,354 INFO  [stdout] (MSC service thread 1-1) log4j: Category root set to null
17:01:33,355 INFO  [stdout] (MSC service thread 1-1) log4j: Parsing appender named "stdout".
17:01:33,367 INFO  [stdout] (MSC service thread 1-1) log4j: Parsing layout options for "stdout".
17:01:33,414 INFO  [stdout] (MSC service thread 1-1) log4j: Setting property [conversionPattern] to [%d{ISO8601} [%t] %-5p (%F:%L) – %m%n].
17:01:33,416 INFO  [stdout] (MSC service thread 1-1) log4j: End of parsing for "stdout".
17:01:33,417 INFO  [stdout] (MSC service thread 1-1) log4j: Parsed "stdout" options.
17:01:33,418 INFO  [stdout] (MSC service thread 1-1) log4j: Parsing appender named "fileAppender".
17:01:33,421 INFO  [stdout] (MSC service thread 1-1) log4j: Parsing layout options for "fileAppender".
17:01:33,422 INFO  [stdout] (MSC service thread 1-1) log4j: Setting property [conversionPattern] to [%d{ISO8601} %t %p %c – %m%n].
17:01:33,423 INFO  [stdout] (MSC service thread 1-1) log4j: End of parsing for "fileAppender".
17:01:33,429 INFO  [stdout] (MSC service thread 1-1) log4j: Setting property [file] to [/opt/jboss-as-7.1.1.Final/standalone/deployments/projvehimerc.war//WEB-INF/logs/app.log].
17:01:33,430 INFO  [stdout] (MSC service thread 1-1) log4j: Setting property [maxBackupIndex] to [5].
17:01:33,430 INFO  [stdout] (MSC service thread 1-1) log4j: Setting property [maxFileSize] to [1MB].
17:01:33,431 INFO  [stdout] (MSC service thread 1-1) log4j: setFile called: /opt/jboss-as-7.1.1.Final/standalone/deployments/projvehimerc.war//WEB-INF/logs/app.log, true
17:01:33,432 INFO  [stdout] (MSC service thread 1-1) log4j: setFile ended
17:01:33,432 INFO  [stdout] (MSC service thread 1-1) log4j: Parsed "fileAppender" options.
17:01:33,433 INFO  [stdout] (MSC service thread 1-1) log4j: Parsing for [net.sf.ehcache] with value=[TRACE].
17:01:33,433 INFO  [stdout] (MSC service thread 1-1) log4j: Level token is [TRACE].
17:01:33,433 INFO  [stdout] (MSC service thread 1-1) log4j: Category net.sf.ehcache set to null
17:01:33,433 INFO  [stdout] (MSC service thread 1-1) log4j: Handling log4j.additivity.net.sf.ehcache=[null]
17:01:33,434 INFO  [stdout] (MSC service thread 1-1) log4j: Finished configuring.

below

17:01:36,680 INFO  [stdout] (Finalizer) log4j: Finalizing appender named [stdout].
17:01:36,681 INFO  [stdout] (Finalizer) log4j: Finalizing appender named [fileAppender].

like I said the file is create but there is nothing, although the level is INFO, why?

  • 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-02T23:42:21+00:00Added an answer on June 2, 2026 at 11:42 pm

    Make sure you’re excluding the servers log4j library with a jboss-deployment-structure.xml. In JBoss AS 7.1.x you need to exclude the servers version of log4j. This should be fixed in 7.2.x though.

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

Sidebar

Related Questions

I am using Jboss and Netbeans to create Spring MVC web application on windows.
I'm trying to create a simple Spring 3 application and have the following files.
Spring JavaConfig makes possible to create spring applications without xml cotext configuration. And servlet
I'm attempting to create a Spring application (NOT web application) to perform some simple
I am having an issue when trying to create beans from a spring Application
Now i am getting this error in my spring application what this indicate ?
Hello I'm building spring-hibernate application. Do i realy need configuration from below ? <property
We have a web based java/JSF/Spring application for which we want to create sitempas.xml
I want to create simple Spring MVC Hello world application that runs under Jetty
I have a spring application and I want to create a unitary test on

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.