Win a copy of Mesos in Action this week in the Cloud/Virtualizaton forum!
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

Can't load in config file from classpath

 
majid nakit
Ranch Hand
Posts: 167
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Hi,

I have the same problem, even changing it to :
ctx.load("classpath:META-INF/spring/app-context-annotation.xml");

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.
thanks
majid
 
Mark Spritzler
ranger
Sheriff
Posts: 17278
6
IntelliJ IDE Mac Spring
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
What is

[app-context-xml.xml];

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.

Mark
 
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic