Win a copy of Programmer's Guide to Java SE 8 Oracle Certified Associate (OCA) this week in the OCAJP forum!
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

Parser configuration exception

 
Vamsi Mohan Pemmaraju
Greenhorn
Posts: 14
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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
Posts: 5
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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
 
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic