aspose file tools*
The moose likes Spring and the fly likes Cannot find the declaration of element 'bean' Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login


Win a copy of Spring in Action this week in the Spring forum!
JavaRanch » Java Forums » Frameworks » Spring
Bookmark "Cannot find the declaration of element Watch "Cannot find the declaration of element New topic
Author

Cannot find the declaration of element 'bean'

Anand Loni
Ranch Hand

Joined: Jan 20, 2006
Posts: 150
Hi Ranchers,

I am getting exception when I deploy my application
Substituted for the exception org.xml.sax.SAXParseException which lacks a String contructor, original message - cvc-elt.1: Cannot find the declaration of element 'bean'.


here is my applicationContext.xml


Any idea what went wrong ??

~ Anand,
SCJP 1.5, SCWCD 1.5
David Newton
Author
Rancher

Joined: Sep 29, 2008
Posts: 12617

Are the imported files complete XML files?

http://static.springsource.org/spring/docs/2.5.6/reference/beans.html#beans-factory-xml-import
 
It is sorta covered in the JavaRanch Style Guide.
 
subject: Cannot find the declaration of element 'bean'