Win a copy of Functional Reactive Programming this week in the Other Languages forum!
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

Spring :Unexpected exception parsing XML document from class path resource

 
Abiodun Adisa
Ranch Hand
Posts: 495
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
I am using Spring 2 and running the following code to obtain the factory




and i am getting the error below



Please any suggestion would be appreciated
 
Mark Spritzler
ranger
Sheriff
Posts: 17278
6
IntelliJ IDE Mac Spring
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Well it appears that it is having problems reading in the applicationContext.xml and creating the BeanDefinition classes based on your xml.

Please post your applicationContext.xml

Also, any particular reason you are using the BeanFactory implementation class instead of an ApplicationContext implementation class?

Mark
 
Abiodun Adisa
Ranch Hand
Posts: 495
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Thanks folks i switched to ApplicationContext and now everything is working

 
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic