aspose file tools*
The moose likes Struts and the fly likes Parser configuration exception Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login


Win a copy of Spring in Action this week in the Spring forum!
JavaRanch » Java Forums » Frameworks » Struts
Bookmark "Parser configuration exception" Watch "Parser configuration exception" New topic
Author

Parser configuration exception

Vamsi Mohan Pemmaraju
Greenhorn

Joined: Jul 15, 2007
Posts: 14
Hi,
I am using springs IOC in my application. When starting my server it is throwing an exception as given below:

org.springframework.beans.factory.BeanDefinitionStoreException: Parser configuration exception parsing XML from ServletContext re
source [/WEB-INF/applicationContext.xml]; nested exception is javax.xml.parsers.ParserConfigurationException: Unable to validate
using XSD: Your JAXP provider [org.apache.crimson.jaxp.DocumentBuilderFactoryImpl@484c6b] does not support XML Schema. Are you ru
nning 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.j
axp.DocumentBuilderFactoryImpl@484c6b] does not support XML Schema. Are you running on Java 1.4 or below with Apache Crimson? Upg
rade to Apache Xerces (or Java 1.5) for full XSD support.

I am using JDK 1.4 and sun one application server.

Request any one to guide me.

Thanks
Vamsi
sagar chandgude
Greenhorn

Joined: Nov 09, 2010
Posts: 5
Hi All
I am also facing the same ..
Actually i have upgraded the xerces to xerces 2.6.2
and working on jdk 1.5

The magic is
I am not getting this exception in my sample application
but when i am using it in my project it throws the exception

my xml schema is
----------------------------------

<?xml version="1.0" encoding="UTF-8"?>
<beans xmlns="http://www.springframework.org/schema/beans"
xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
xmlns:aop="http://www.springframework.org/schema/aop"
xsi:schemaLocation="
http://www.springframework.org/schema/beans http://www.springframework.org/schema/beans/spring-beans-2.0.xsd
http://www.springframework.org/schema/aop http://www.springframework.org/schema/aop/spring-aop-2.0.xsd">
..
..
</bean>

----------------------------------

waiting eagerly for help
Thanks in advance
 
I agree. Here's the link: http://aspose.com/file-tools
 
subject: Parser configuration exception