aspose file tools*
The moose likes Other Application Frameworks and the fly likes Spring :Unexpected exception parsing XML document from class path resource Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login
JavaRanch » Java Forums » Frameworks » Other Application Frameworks
Bookmark "Spring :Unexpected exception parsing XML document from class path resource " Watch "Spring :Unexpected exception parsing XML document from class path resource " New topic
Author

Spring :Unexpected exception parsing XML document from class path resource

Abiodun Adisa
Ranch Hand

Joined: Jan 17, 2002
Posts: 495
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

Joined: Feb 05, 2001
Posts: 17259
    
    6

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


Perfect World Programming, LLC - Two Laptop Bag - Tube Organizer
How to Ask Questions the Smart Way FAQ
Abiodun Adisa
Ranch Hand

Joined: Jan 17, 2002
Posts: 495
Thanks folks i switched to ApplicationContext and now everything is working

 
 
subject: Spring :Unexpected exception parsing XML document from class path resource