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

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 4, 20262026-06-04T05:57:00+00:00 2026-06-04T05:57:00+00:00

I have tried DeploymentException & Class Not Found on WebLogic Admin Server 11g among

  • 0

I have tried DeploymentException & Class Not Found on WebLogic Admin Server 11g among other examples, but I have not been able to get Spring to read external properties file.

I have this code, which read a properties file. Putting the file (PROPERTIES_FILES) in src/main/resources, the app i deployed fine. Moving it to an external folder in the file system, it failes to deploy.

I tried http://www.mkyong.com/java/how-to-print-out-the-current-project-classpath/ to pribt the classpaths and get:

/C:/Oracle/Middleware/patch_wls1034/profiles/default/sys_manifest_classpath/weblogic_patch.jar
/C:/Oracle/Middleware/patch_oepe1040/profiles/default/sys_manifest_classpath/weblogic_patch.jar     /C:/Oracle/Middleware/patch_ocp360/profiles/default/sys_manifest_classpath/weblogic_patch.jar
/C:/Oracle/Middleware/jdk160_21/lib/tools.jar
/C:/Oracle/Middleware/wlserver_10.3/server/lib/weblogic_sp.jar
/C:/Oracle/Middleware/wlserver_10.3/server/lib/weblogic.jar
/C:/Oracle/Middleware/modules/features/weblogic.server.modules_10.3.4.0.jar
/C:/Oracle/Middleware/wlserver_10.3/server/lib/webservices.jar
/C:/Oracle/Middleware/modules/org.apache.ant_1.7.1/lib/ant-all.jar
/C:/Oracle/Middleware/modules/net.sf.antcontrib_1.1.0.0_1-0b2/lib/ant-contrib.jar
/C:/Oracle/Middleware/wlserver_10.3/common/derby/lib/derbyclient.jar
/C:/Oracle/Middleware/wlserver_10.3/server/lib/xqrl.jar

Trying to read test.properties
Found false
Could not find properties file: test.properties

My implementation looks like this:

    ClassLoader cl = ClassLoader.getSystemClassLoader();

    URL[] urls = ((URLClassLoader)cl).getURLs();

    for(URL url: urls){
        logger.debug(url.getFile());
    }

    logger.debug("Trying to read {}", PROPERTIES_FILES);
    Resource resource = new ClassPathResource(PROPERTIES_FILES);
    logger.debug("Found {}", resource.exists());
    try {
        props = PropertiesLoaderUtils.loadProperties(resource);
    } catch (IOException e) {
        logger.error("Could not find properties file: " + PROPERTIES_FILES, e);
    }

I have the same problem to move another properties file from in servlet-dispatcher:

<context:property-placeholder location="classpath*:test.properties"/>

But I guess it’s the same problem.
I am on Windows.

Can anybody help me?

  • 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-04T05:57:01+00:00Added an answer on June 4, 2026 at 5:57 am

    Did a full system restart and it worked.

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

Sidebar

Related Questions

I have tried this but it does not work (even if I specify .wav
I have tried this but Contacts were not added! ContentResolver cr = this.getContentResolver(); ContentValues
I have tried different examples to filter a gridview by dropdownlist, but is it
I have tried SQL Server 2008 Management Studio and other third party tools to
I have tried to implement other solutions but have had no luck... hoping someone
I have tried a couple other similar posts but am still getting an error.
I have tried several things so far, but I haven't had much luck yet.
I have tried quite a few codes but none of them seem to work
I have tried to find some decent documentation on traversing in jQuery, but have
I have tried to cast an implementation of my UIView class to my view

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.