This week's book giveaway is in the General Computing forum.
We're giving away four copies of Arduino in Action and have Martin Evans, Joshua Noble, and Jordan Hochenbaum 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
Register / Login


JavaRanch » Java Forums » Frameworks » Spring
Reply 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://ej-technologies/jprofiler - if it wasn't for jprofiler, we would need to run our stuff on 16 servers instead of 3.
 
subject: Cannot find the declaration of element 'bean'
 
Similar Threads
Cannot find the declaration of element 'beans' -- application context invalid?
Spring AOP TX management error...
Error: The matching wildcard is strict, but no declaration can be found for element 'remember-me'
AOP not getting invoked on my Target Bean Method --> Singer.perform() method
Get error in standalone AOP prog