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

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 9, 20262026-06-09T08:18:41+00:00 2026-06-09T08:18:41+00:00

In my Java .properties file I have this line: KEYSTORE_PATH=${jboss.server.data.dir}/myapp/keys/keystore.jks In all other files

  • 0

In my Java .properties file I have this line:

KEYSTORE_PATH=${jboss.server.data.dir}/myapp/keys/keystore.jks

In all other files e.g. log4j.properties jboss.server.data.dir is changed to C:\\jboss\server\default\log and it’s ok.

But here I get this exception:

java.io.FileNotFoundException: ${jboss.server.data.dir}\myapp\keys\keystore.jks (The system cannot find the path specified)

It looks like JBoss does not change its property name to the dir name.

  • 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-09T08:18:43+00:00Added an answer on June 9, 2026 at 8:18 am

    If you are loading your properties file via the java.util.Properties type, there is no special handling of value placeholders. There are several third party libraries that provide such capabilities. Spring being one of them.

    Another option is to use the -C command line option when starting JBoss 4.x to specify a custom properties file. When loaded, JBoss will resolve the value placeholders correctly. The loaded, fully resolved properties can then be accessed via the various System.getProperties and System.getProperty methods.

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

Sidebar

Related Questions

I have this code in a Java EE Application for reading the Properties file.
I have a java app, and the log4j.properties file is in src/com/my/path/props. On compile,
I have a java properties file to parse, it contains key value pairs of
I have a simple java application that loads a properties file from the current
I have a java properties file containing a key/value pair of country names and
I have a properties file with some boolean values. AFAIK, java.util.properties does not have
I have a long file inside intelliJ (java, properties, ruby) if I leave my
We use Tomcat for our java web application. There is a properties file under
Can you do the following with a Java ResourceBundle? In the properties file... example.dynamicresource=You
I have a Java Properties object that I load from an in-memory String ,

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.