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

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 27, 20262026-05-27T22:32:28+00:00 2026-05-27T22:32:28+00:00

When i use class-path attribute in spring XML file as below, <bean class=com.fritolay.suppliernet.common.lastresorthandler.impl.SingletonPropertiesRepository> <property

  • 0

When i use class-path attribute in spring XML file as below,

<bean class="com.fritolay.suppliernet.common.lastresorthandler.impl.SingletonPropertiesRepository">
<property name="propertiesFile" value="classpath:ecr/sample.properties" />
</bean>

In this case where does the server looks for properties file in application?

My question is that i have two modules[1.Web Project 2.Java Project]. I am defining this XML file in web project and placing properties files under java project src folder.But when i deploy my application i am getting following error:

PropertyAccessException 1: org.springframework.beans.MethodInvocationException: Property 'propertiesFile' threw exception; nested exception is java.io.FileNotFoundException: class path resource [ecr/sample.properties] cannot be resolved to absolute file path because it does not reside in the file system: zip:C:/Oracle/Middleware/user_projects/domains/sample/servers/AdminServer/tmp/_WL_user/_appsdir_supplier-net_ear/6e86rt/sample-service.jar!/ecr/sample.properties
  • 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-27T22:32:28+00:00Added an answer on May 27, 2026 at 10:32 pm

    Your Java engine is looking for your file at this location (read at your error):

    C:/Oracle/Middleware/user_projects/domains/sample/servers/AdminServer/tmp/_WL_user/_appsdir_supplier-net_ear/6e86rt/sample-service.jar!/ecr/sample.properties
    

    As you can see, the ! mark implies it is looking for your file inside a temporary JAR file (for sure, an IDE artifact).

    It seems that your IDE (or the tool you have chosen for deployment) is not including your properties files inside the JAR, and thus the error.
    It may be because of:

    • At compilation time, your tool is not copying these recources to the
      compilation target directory (usualy /classes)
    • At packing time, your JAR building tool is not including the
      properties resources into the Jar, avoiding them.

    In both cases, to fix it you must check your building and deployment configuration, depending on which IDE or tools you are using.

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

Sidebar

Related Questions

Spring: 2.5.6.SEC01 DWR: 2.0.5 I would like to use a session scoped bean from
I'm trying to use class names to change the color of a link after
I am trying to use Class::DBI with Catalyst::Plugin::Authentication::Store::DBIC. The example given on CPAN does
Can anyone recommend a ready-to-use class/library compatible with C/C++/MFC/ATL that would parse iCal/vCal/Google calendar
Is it better practice to use class variables, or the session cache in ASP.NET?
Does anybody use the Class Designer much in Visual Studio? I have downloaded the
I have to use a class/assembly made in C# .NET from native C++ application.
I need to use a class callback method on an array inside another method
I'm trying to use a class within a T4 template in VS2008. Here is
I am trying to use a class from a C# assembly in vb.net. The

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.