Win a copy of Programmer's Guide to Java SE 8 Oracle Certified Associate (OCA) this week in the OCAJP forum!
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

FileNotFoundException thrown when creating app-context object via ClassPathXmlApplicationContext API

 
Shruthi Jagadish Rao
Greenhorn
Posts: 2
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Scenario 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, I don't have access to Weblogic) when the war is deployed it throws FileNotFound Exception.

Exception



When the war if built (Maven is used) the application-context.xml is placed under WEB-INF/classes folder. And the shared-common-context.xml is under WEB-INF folder. The shared-common-context.xml file holds the PropertyPlaceholderConfigurer bean. The shared-common-context.xml file is imported within the application-context.xml file.

Below is the location where the code gets deployed on Weblogic (the code is within a hidden directory inside a temporary folder)
./servers/Coloris_PPT1_AdminServer/tmp/.appmergegen_1336142780924_documentservi‌​ce.war/WEB-INF/



Could someone please suggest how to proceed with this?
 
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic