• Post Reply Bookmark Topic Watch Topic
  • New Topic
programming forums Java Mobile Certification Databases Caching Books Engineering Micro Controllers OS Languages Paradigms IDEs Build Tools Frameworks Application Servers Open Source This Site Careers Other Pie Elite all forums
this forum made possible by our volunteer staff, including ...
  • Campbell Ritchie
  • Jeanne Boyarsky
  • Ron McLeod
  • Paul Clapham
  • Liutauras Vilda
  • paul wheaton
  • Rob Spoor
  • Devaka Cooray
Saloon Keepers:
  • Stephan van Hulst
  • Tim Holloway
  • Carey Brown
  • Frits Walraven
  • Tim Moores
  • Mikalai Zaikin

FileNotFoundException thrown when creating app-context object via ClassPathXmlApplicationContext

Posts: 2
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
There was a requirement in my project to multi-thread calls made to a Webservice. This is implemented using ThreadPoolTaskExecutor (Spring). As the thread class required values to be fed at runtime, had implemented the code as below -

Issue In local I have tomcat server and this implementation works as expected. However on Weblogic (on the client machine, no access) when the war is deployed it throws FileNotFoundException.

In the code the shared-common-context.xml file is in the location - \src\main\webapp\WEB-INF\, application-context.xml file is in the location - \src\main\resources\.
When the war is built (Maven is used) the application-context.xml is placed under WEB-INF/classes folder, and shared-common-context.xml is under WEB-INF folder.

The shared-common-context.xml file is imported within the application-context.xml file () and holds the PropertyPlaceholderConfigurer bean.

Below is the location where the code gets deployed on Weblogic (the code is within a hidden directory inside a temporary folder)

Could someone please suggest how to proceed with this?
I'm all tasted up for a BLT! This tiny ad wants a monte cristo!
a bit of art, as a gift, the permaculture playing cards
    Bookmark Topic Watch Topic
  • New Topic