• 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: 17309
11
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

 
my overalls have superpowers - they repel people who think fashion is important. Tiny ad:
the new thread boost feature brings a LOT of attention to your favorite threads
https://coderanch.com/t/674455/Thread-Boost-feature
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
Boost this thread!