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 Java 8 in Action this week in the Java 8 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
 
wood burning stoves
 
subject: Cannot find the declaration of element 'bean'
 
Similar Threads
Spring AOP TX management error...
AOP not getting invoked on my Target Bean Method --> Singer.perform() method
Get error in standalone AOP prog
Cannot find the declaration of element 'beans' -- application context invalid?
Error: The matching wildcard is strict, but no declaration can be found for element 'remember-me'