org.springframework.beans.factory.BeanDefinitionStoreException: Line 20 in XML document from ServletContext resource [/WEB-INF/polling-servlet.xml] is invalid; nested exception is org.xml.sax.SAXParseException: Attribute "value" must be declared for element type "property".
I would be more likely to believe that the error referred to the lines just below, which in fact do not have "value" attributes. I suggest that if you fix the lines which don't have "value" attributes then you won't get error messages. But pointing at a document which obviously does have errors and saying that the error message doesn't apply because it appears to point at one line which doesn't have an error, that's just wasting time. Fix the errors already.
Joined: Nov 08, 2011
Thnaks for the guidance Paul ... I will try to fix this out ....
error was resolved actually there were 2 problem one was in the jar files.... i was using 2 versions of a same jar files ..... when i replaced it by using common-logging.jar. jstl.jar, spring.jar & standard.jar files in my lib folder it worked...
Sam Mercs wrote:Both the nested <value> node or the "value" attribute are valid formats supported by Spring.
In which case the error message (which explicitly says that an attribute is missing) is seriously misleading.
I know the format is supported in 2.5 version onwards, not so sure about Spring 2.0. Maybe it's not supported in those jars which is why that particular message shows up. Wrong jar issues (class path issues) are hard to debug but doesn't mean that message is really misleading ...
Just to clarify: I meant to say that I would interpret that message about an "attribute" which wasn't declared to mean that an XML attribute was necessary. That would imply to me that a child element -- which is not an attribute in XML -- is unacceptable. It's bad enough that we have people working with XML who haven't even read the one-page summary and who don't know what an attribute is (not you, I hasten to say), we don't need people writing error messages which muddy the waters.
I’ve looked at a lot of different solutions, and in my humble opinion Aspose is the way to go. Here’s the link: http://aspose.com
subject: nested exception is org.xml.sax.SAXParseException: Attribute "value" must be declared