This week's book giveaway is in the Servlets forum.
We're giving away four copies of Murach's Java Servlets and JSP and have Joel Murach on-line!
See this thread for details.
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 Murach's Java Servlets and JSP this week in the Servlets 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
 
I agree. Here's the link: http://aspose.com/file-tools
 
subject: Cannot find the declaration of element 'bean'
 
Similar Threads
Error: The matching wildcard is strict, but no declaration can be found for element 'remember-me'
Spring AOP TX management error...
AOP not getting invoked on my Target Bean Method --> Singer.perform() method
Cannot find the declaration of element 'beans' -- application context invalid?
Get error in standalone AOP prog