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

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 15, 20262026-06-15T12:45:30+00:00 2026-06-15T12:45:30+00:00

In my case I have a jboss-5.1 which should pull different jboss-log4j.xml , based

  • 0

In my case I have a jboss-5.1 which should pull different jboss-log4j.xml, based on their startup call. Unluckily I was unable to find something like the -Dlogging.properties= for xml-files, to supply different xml-files.

  • 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-15T12:45:31+00:00Added an answer on June 15, 2026 at 12:45 pm

    If I’ve understood your question, you want JBoss not to use the default conf/jboss-log4j.xml file, but use instead another one defined as a property in the start up script. In that case you should:

    1) Modify the ConfigurationURL attribute of the Log4jService defined in the file conf/jboss-service.xml. The original looks like:

      <attribute name="ConfigurationURL">resource:jboss-log4j.xml</attribute>
    

    Instead you should tell JBoss to take the file from a property (let’s name this property log4j.conf.file, for example), so it would be:

      <attribute name="ConfigurationURL">${log4j.conf.file}</attribute>
    

    2) And then, start up the JBoss instance defining this property, and setting its value to the exact route of the log4j xml configuration file you want to use for this instance. For example, if the route to this file is “/app/jboss/logconf/log4j.xml“:

      ./run.sh -Dlog4j.conf.file=/app/jboss/logconf/log4j.xml
    
    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

I have a complicated case: I have three XML files, which I need to
On JBoss 5.1.0 I have Datasource (PostgreSQL 8.3.11) configured using *-ds.xml (standard jboss DS).
I have a question about how to develop a web application which can call
I have an application which should run only on standard JVM - no application
I currently have a form based login in my application which is developed on
I have a really interesting case: I have a site where this is already
The case: I have 2 tables, 'contracts' and 'members' tied with contract.id = members.cid.
In case I have .NET framework installed in my computer + all the necessary
In my case I have panels,but to make it clear I will use buttons
I have a regular .NET application. In this case I have a part that's

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.