wood burning stoves 2.0*
The moose likes Spring and the fly likes why this error? Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login
JavaRanch » Java Forums » Frameworks » Spring
Bookmark "why this error? " Watch "why this error? " New topic
Author

why this error?

pradeep gamage
Ranch Hand

Joined: Aug 03, 2009
Posts: 85

Exception in thread "main" org.springframework.beans.factory.BeanDefinitionStoreException: Parser configuration exception parsing XML from file [C:\Documents and Settings\pradeep\Desktop\hina\bean.xml]; nested exception is javax.xml.parsers.ParserConfigurationException: Unable to validate using XSD: Your JAXP provider [org.apache.crimson.jaxp.DocumentBuilderFactoryImpl@17172ea] does not support XML Schema. Are you running on Java 1.4 or below with Apache Crimson? Upgrade to Apache Xerces (or Java 1.5) for full XSD support.
Caused by: javax.xml.parsers.ParserConfigurationException: Unable to validate using XSD: Your JAXP provider [org.apache.crimson.jaxp.DocumentBuilderFactoryImpl@17172ea] does not support XML Schema. Are you running on Java 1.4 or below with Apache Crimson? Upgrade to Apache Xerces (or Java 1.5) for full XSD support.
at org.springframework.beans.factory.xml.DefaultDocumentLoader.createDocumentBuilderFactory(DefaultDocumentLoader.java:101)
at org.springframework.beans.factory.xml.DefaultDocumentLoader.loadDocument(DefaultDocumentLoader.java:70)
at org.springframework.beans.factory.xml.XmlBeanDefinitionReader.doLoadBeanDefinitions(XmlBeanDefinitionReader.java:351)
at org.springframework.beans.factory.xml.XmlBeanDefinitionReader.loadBeanDefinitions(XmlBeanDefinitionReader.java:303)
at org.springframework.beans.factory.xml.XmlBeanDefinitionReader.loadBeanDefinitions(XmlBeanDefinitionReader.java:280)
at org.springframework.beans.factory.xml.XmlBeanFactory.<init>(XmlBeanFactory.java:73)
at org.springframework.beans.factory.xml.XmlBeanFactory.<init>(XmlBeanFactory.java:61)
at my.mainApp.main(mainApp.java:12)


Software Engineer(BSC):SCJP 1.5
(Knowledge is power when applied)
David Newton
Author
Rancher

Joined: Sep 29, 2008
Posts: 12617

I'd guess you're trying to use a schema-based config file on something that doesn't support it.

What were your answers to the exception's question?
pradeep gamage
Ranch Hand

Joined: Aug 03, 2009
Posts: 85

I think this error come from libries, It's ok..
I have updated lib.. and then my project work fine...
thanks....
kanchana wijerathna
Greenhorn

Joined: Sep 24, 2009
Posts: 2
I am having the same issue
what libraries you had to update ?
 
I agree. Here's the link: http://aspose.com/file-tools
 
subject: why this error?
 
Similar Threads
xml not parcing
what is this error?
Parser confign excn - When running JUNIT in Spring application
Parser configuration exception
xml not validating