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

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 24, 20262026-05-24T01:14:44+00:00 2026-05-24T01:14:44+00:00

I have a config file which lists all the configuration details for Logback.xml like

  • 0

I have a config file which lists all the configuration details for Logback.xml like the log file location and log level etc. I have this file placed in resources under the weblogic domain dir. I also have a properties file in my project which should be pointing to the config file. Something like this.

iam.config.file=resources/iam_config.properties

and my logback.xml looks like this

 <configuration>
  <property file="${iam.config.file}"/>
  <appender name="iamLogFileAppender" class="ch.qos.logback.core.FileAppender">
    <!-- Tests run on modern PCs show that buffering related property -->
    <!-- "ImmediateFlush" has negligible impact and will be ignored.  -->
    <File>${iam.upm.log.file}</File>
    <Append>false</Append>
    <encoder>
      <pattern>[%d] %-5p %c - %m%n</pattern>
    </encoder>
  </appender>
  <root level="ERROR">
    <appender-ref ref="iamLogFileAppender"/>
  </root>

  <logger name="aero.sita.voyager.iam" level="${iam.upm.log.logLevel}" additivity="false">
    <appender-ref ref="iamLogFileAppender" />
 </logger>
</configuration>

So the idea is I change the log configurations without having to redeploy. But I’m not able to get this working as weblogic is not able to find the file when the project is deployed. How can I change

iam.config.file=resources/iam_config.properties

to correctly point to the file. 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-05-24T01:14:45+00:00Added an answer on May 24, 2026 at 1:14 am

    You can get out the Generic File Overrides feature to package properties outside the application
    http://download.oracle.com/docs/cd/E21764_01/web.1111/e13702/config.htm#i1066493
    when packaging your application with an Application Installation Directory
    http://download.oracle.com/docs/cd/E21764_01/web.1111/e13702/deployunits.htm#i1047223

    Note that this requires you to look up the properties like this with the ContextClassLoader and if you want the file to be read without a redeploy you may have to use no-stage or external stage mode during the deployment instead of staged:

    Properties myAppProps = new Properties();
    InputStream iostream = Thread.currentThread().getContextClassLoader().getResourceAsStream("myCfg/myApp.properties");
    myAppProps.load(iostream);
    
    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

I have a ini file which contains some sample values like: [Section1] Value1 =
I have a CruiseControl.NET ccnet.config file, which monitors two different projects in the same
I have an asp.net mvc website which of course has a web.config file. I
I have referenced a config file that is located in a solution folder. I
I have an app.config file inside my TestProject, but when I try to read
As many do I have a config.php file in the root of a web
In my ASP.NET application I have a web.config file. In the web.config file I
I have the following web config file. I am having some difficulty in retrieving
I have the following code in a web.config file of the default IIS site.
We have a custom section in my app.config file related to our IoC container

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.