aspose file tools*
The moose likes Spring and the fly likes FileNotFoundException thrown when creating app-context object via ClassPathXmlApplicationContext Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login


Win a copy of EJB 3 in Action this week in the EJB and other Java EE Technologies forum!
JavaRanch » Java Forums » Frameworks » Spring
Bookmark "FileNotFoundException thrown when creating app-context object via ClassPathXmlApplicationContext" Watch "FileNotFoundException thrown when creating app-context object via ClassPathXmlApplicationContext" New topic
Author

FileNotFoundException thrown when creating app-context object via ClassPathXmlApplicationContext

Shruthi Jagadish Rao
Greenhorn

Joined: Feb 10, 2013
Posts: 2
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)
./servers/Coloris_PPT1_AdminServer/tmp/.appmergegen_1336142780924_documentservi‌​ce.war/WEB-INF/


Could someone please suggest how to proceed with this?
 
I agree. Here's the link: http://aspose.com/file-tools
 
subject: FileNotFoundException thrown when creating app-context object via ClassPathXmlApplicationContext
 
Similar Threads
Injecting a Dependency through Spring
FileNotFoundException thrown when creating app-context object via ClassPathXmlApplicationContext API
Classpath issue: class path resource [beans.xml] cannot be opened because it does not exist
Where is _wl_cls_gen.jar coming from?
Spring - ClassPathXmlApplicationContext not able to load the XML file