wood burning stoves 2.0*
The moose likes Other Application Frameworks and the fly likes Class PathXml ApplicationContext Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login


Win a copy of Android Security Essentials Live Lessons this week in the Android forum!
JavaRanch » Java Forums » Frameworks » Other Application Frameworks
Bookmark "Class PathXml ApplicationContext" Watch "Class PathXml ApplicationContext" New topic
Author

Class PathXml ApplicationContext

jacob deiter
Ranch Hand

Joined: Apr 02, 2008
Posts: 576
I have a standalone application using eclipse and spring 2.0,If I use

ApplicationContext ctx = new
ClassPathXmlApplicationContext("applicationContext.xml");

It says File not found.

where I should place the applicationcontext.xml file or
is there any way to specify the class path?
vidya sagar
Ranch Hand

Joined: Mar 02, 2005
Posts: 580
Try this



Place the applicationcontext.xml, anywhere in your classpath.
 
 
subject: Class PathXml ApplicationContext
 
Similar Threads
Mybatis + spring don't work.
Can't Retrieve EntityManager With Multiple Dao Persistence
get ref bean from applicationContext.xml
JMS implementation using JNDI in spring application
Load the beanrefContext.xml in web Application