jQuery in Action, 2nd edition*
The moose likes Spring and the fly likes Can't load in config file from classpath 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 » Spring
Bookmark "Can Watch "Can New topic

Can't load in config file from classpath

majid nakit
Ranch Hand

Joined: Jun 26, 2001
Posts: 164

I have the same problem, even changing it to :

did not work, I always have :

Exception in thread "main" org.springframework.beans.factory.BeanDefinitionStoreException: IOException parsing XML document from class path resource [app-context-xml.xml]; nested exception is java.io.FileNotFoundException: class path resource [app-context-annotation.xml] cannot be opened because it does not exist

Please your help is appreciated.
Mark Spritzler

Joined: Feb 05, 2001
Posts: 17249

What is


Where is that file? Where do you put yourapp-context-annotation.xml file? Is this in the src/main/resources directory?

We need more information to be able to help.


Perfect World Programming, LLC - Two Laptop Bag - Tube Organizer
How to Ask Questions the Smart Way FAQ
With a little knowledge, a cast iron skillet is non-stick and lasts a lifetime.
subject: Can't load in config file from classpath
Similar Threads
GenericXmlApplicationContext classpath
RequestDispatcher clarfication
reloading property files after tomcat has started.
Hibernate not finding Oracle driver - despite straight JDBC working