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

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 13, 20262026-06-13T17:00:02+00:00 2026-06-13T17:00:02+00:00

Is it possible load custom part of config from file and automatically load other

  • 0

Is it possible load custom part of config from file and automatically load other part of config from classpath, placed inside jar?

I have command line apllication written on java with spring 2.5.6 framework.
Config of apllication consist from 2 parts:

  1. bigApplicationContext.xml
  2. customConfig.xml with import of bigApplicationContext.xml

bigApplicationContext has references to some beans from customConfig.

I placed bigApplicationContext and default customConfig inside jar. Configs loaded by ClassPathXmlApplicationContext. It’s OK

Troubles goes when I want provide additional command line option for my application –pathToCustomConfig

I want to load custom part of config from file and automatically load other part of config from bigApplicationContext, placed inside jar.

Is it possible? Now I have

Configuration problem: Failed to import bean definitions from relative
location

  • 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-13T17:00:04+00:00Added an answer on June 13, 2026 at 5:00 pm

    Found solution with using

    <import resource="classpath:applicationContext.xml" />
    

    I used

    <import resource="applicationContext.xml" />
    
    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

Is it possible to load new lines from a text file to variables in
I have one UITableView with a custom cell loaded from a nib file, it
I have created a Word add-in which would load data in custom ribbon from
is it possible to load multiple swf files directly on top of each other?
Is it possible to load images from an array in jQuery? The array looks
Is it possible to load a single plugin from outside the cake root using
Is it possible to load a User Control that was registered in the web.config
In modern processors it is possible to load a register from memory and then
I have a custom class which is a UITableViewController, this is inside of a
Is it possible to load a class and create Instance of it from It'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.