Announcement Announcement Module
Collapse
No announcement yet.
Unable to validate using XSD: Your JAXP provider Page Title Module
Move Remove Collapse
X
Conversation Detail Module
Collapse
  • Filter
  • Time
  • Show
Clear All
new posts

  • Unable to validate using XSD: Your JAXP provider

    hi,

    When i try to deploy my application with the tomcat-maven-plugin (maven 2). I get an exception. When look at the lib directory in my webapplication I see that the crimson , xerces 1.2.3 is included while along in maven 2 pom file i did not request that!!!!

    Here is the exception
    Code:
    2007-07-02 10:08:04,748 ERROR [org.springframework.web.context.ContextLoader] - <Context initializat
    ion failed>
    org.springframework.beans.factory.BeanDefinitionStoreException: Parser configuration exception parsi
    ng XML from class path resource [applicationContext.xml]; nested exception is javax.xml.parsers.Pars
    erConfigurationException: Unable to validate using XSD: Your JAXP provider [org.apache.crimson.jaxp.
    [email protected]] 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 [or
    [email protected]] does not support XML Schema. Are you runnin
    g on Java 1.4 or below with Apache Crimson? Upgrade to Apache Xerces (or Java 1.5) for full XSD supp
    ort.
            at org.springframework.beans.factory.xml.DefaultDocumentLoader.createDocumentBuilderFactory(
    DefaultDocumentLoader.java:101)
            at org.springframework.beans.factory.xml.DefaultDocumentLoader.loadDocument(DefaultDocumentL
    oader.java:70)
            at org.springframework.beans.factory.xml.XmlBeanDefinitionReader.doLoadBeanDefinitions(XmlBe
    anDefinitionReader.java:388)
            at org.springframework.beans.factory.xml.XmlBeanDefinitionReader.loadBeanDefinitions(XmlBean
    DefinitionReader.java:340)
            at org.springframework.beans.factory.xml.XmlBeanDefinitionReader.loadBeanDefinitions(XmlBean
    DefinitionReader.java:317)
            at org.springframework.beans.factory.support.AbstractBeanDefinitionReader.loadBeanDefinition
    s(AbstractBeanDefinitionReader.java:125)
            at org.springframework.beans.factory.support.AbstractBeanDefinitionReader.loadBeanDefinition
    s(AbstractBeanDefinitionReader.java:141)
            at org.springframework.web.context.support.XmlWebApplicationContext.loadBeanDefinitions(XmlW
    ebApplicationContext.java:123)
            at org.springframework.web.context.support.XmlWebApplicationContext.loadBeanDefinitions(XmlW
    ebApplicationContext.java:91)
            at org.springframework.context.support.AbstractRefreshableApplicationContext.refreshBeanFact
    ory(AbstractRefreshableApplicationContext.java:94)
            at org.springframework.context.support.AbstractApplicationContext.refresh(AbstractApplicatio
    nContext.java:292)
            at org.springframework.web.context.support.AbstractRefreshableWebApplicationContext.refresh(
    AbstractRefreshableWebApplicationContext.java:156)
            at org.springframework.web.context.ContextLoader.createWebApplicationContext(ContextLoader.j
    ava:246)
            at org.springframework.web.context.ContextLoader.initWebApplicationContext(ContextLoader.jav
    a:184)
            at org.springframework.web.context.ContextLoaderListener.contextInitialized(ContextLoaderLis
    tener.java:49)
            at org.apache.catalina.core.StandardContext.listenerStart(StandardContext.java:3764)
            at org.apache.catalina.core.StandardContext.start(StandardContext.java:4216)
            at org.apache.catalina.core.ContainerBase.addChildInternal(ContainerBase.java:760)
            at org.apache.catalina.core.ContainerBase.addChild(ContainerBase.java:740)
            at org.apache.catalina.core.StandardHost.addChild(StandardHost.java:544)
            at org.apache.catalina.startup.HostConfig.deployDirectory(HostConfig.java:920)
            at org.apache.catalina.startup.HostConfig.deployApps(HostConfig.java:519)
            at org.apache.catalina.startup.HostConfig.check(HostConfig.java:1220)
            at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
            at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39)
            at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
            at java.lang.reflect.Method.invoke(Method.java:585)
            at org.apache.commons.modeler.BaseModelMBean.invoke(BaseModelMBean.java:457)
            at com.sun.jmx.mbeanserver.DynamicMetaDataImpl.invoke(DynamicMetaDataImpl.java:213)
            at com.sun.jmx.mbeanserver.MetaDataImpl.invoke(MetaDataImpl.java:220)

    thnx
    Stefaan

  • #2
    My guess is that one of your dependencies probably has a depencency on Xerces 1.2.3

    Can I see the pom.xml file?

    Comment


    • #3
      See here my list of depedencies.

      I make use of the tomcat-maven-plugin. For some reason it puts the crimson jar gnujaxp and xerces 1.2.3 file into my WEB-INF lib directory.
      Do you know how it comes that the plugin puts these jars automaticaly in the lib directory?

      Code:
      	<dependencies>
      		<!-- project depedencies -->
      		<dependency>
      			<groupId>${pom.groupId}</groupId>
      			<artifactId>utils</artifactId>
      			<version>0.1</version>
      		</dependency>
      		<dependency>
      			<groupId>${pom.groupId}</groupId>
      			<artifactId>mmf</artifactId>
      			<version>0.1</version>
      		</dependency>
      		<dependency>
      			<groupId>${pom.groupId}</groupId>
      			<artifactId>business</artifactId>
      			<version>0.1</version>
      		</dependency>
      
      		<!-- ergonomics -->
      		<dependency>
      			<groupId>ergonomics</groupId>
      			<artifactId>ergonomics-taglib</artifactId>
      			<version>1.2.7</version>
      			<type>jar</type>
      		</dependency>
      		<dependency>
      			<groupId>ergonomics</groupId>
      			<artifactId>extremecomponents</artifactId>
      			<version>1.0.1</version>
      			<type>jar</type>
      		</dependency>
      		<dependency>
      			<groupId>ergonomics</groupId>
      			<artifactId>ezmorph</artifactId>
      			<version>0.8.1</version>
      			<type>jar</type>
      		</dependency>
      		<dependency>
      			<groupId>ergonomics</groupId>
      			<artifactId>json</artifactId>
      			<version>0.8</version>
      			<type>jar</type>
      		</dependency>
      		<dependency>
      			<groupId>avalon-framework</groupId>
      			<artifactId>avalon-framework</artifactId>
      			<version>4.1.5</version>
      			<type>jar</type>
      		</dependency>
      		<dependency>
      			<groupId>batik</groupId>
      			<artifactId>batik</artifactId>
      			<version>1.5</version>
      			<type>jar</type>
      		</dependency>
      		<dependency>
      			<groupId>fop</groupId>
      			<artifactId>fop</artifactId>
      			<version>0.20.5</version>
      			<type>jar</type>
      		</dependency>
      		<dependency>
      			<groupId>xalan</groupId>
      			<artifactId>xalan</artifactId>
      			<version>2.7.0</version>
      			<type>jar</type>
      		</dependency>
      		<dependency>
      			<groupId>xerces</groupId>
      			<artifactId>xerces</artifactId>
      			<version>2.4.0</version>
      			<type>jar</type>
      		</dependency>
      		<dependency>
      			<groupId>xerces</groupId>
      			<artifactId>xercesImpl</artifactId>
      			<version>2.8.1</version>
      			<type>jar</type>
      		</dependency>
      
      		<!-- Spring -->
      		<dependency>
      			<groupId>aspectj</groupId>
      			<artifactId>aspectjweaver</artifactId>
      			<version>1.5.3</version>
      			<type>jar</type>
      		</dependency>
      		<dependency>
      			<groupId>aspectj</groupId>
      			<artifactId>aspectjlib</artifactId>
      			<version>1.5.3</version>
      			<type>jar</type>
      		</dependency>
      		<dependency>
      			<groupId>aspectj</groupId>
      			<artifactId>aspectjtools</artifactId>
      			<version>1.5.3</version>
      			<type>jar</type>
      		</dependency>
      
      
      		<!-- general dependencies -->
      		<dependency>
      			<groupId>javax.servlet</groupId>
      			<artifactId>jstl</artifactId>
      			<version>1.1.2</version>
      			<type>jar</type>
      		</dependency>
      		<dependency>
      			<groupId>sun</groupId>
      			<artifactId>evaltag</artifactId>
      			<version>1.4.2</version>
      			<type>jar</type>
      		</dependency>
      		<dependency>
      			<groupId>org.springframework</groupId>
      			<artifactId>spring</artifactId>
      			<version>2.0.2</version>
      			<type>jar</type>
      		</dependency>
      		<dependency>
      			<groupId>ehcache</groupId>
      			<artifactId>ehcache</artifactId>
      			<version>1.1</version>
      			<type>jar</type>
      		</dependency>
      		<dependency>
      			<groupId>javax.activation</groupId>
      			<artifactId>activation</artifactId>
      			<version>1.1</version>
      			<type>jar</type>
      		</dependency>
      		<dependency>
      			<groupId>opensymphony</groupId>
      			<artifactId>oscache</artifactId>
      			<version>2.3</version>
      			<type>jar</type>
      		</dependency>
      		<dependency>
      			<groupId>opensymphony</groupId>
      			<artifactId>quartz-all</artifactId>
      			<version>1.6.0</version>
      			<type>jar</type>
      		</dependency>
      		<dependency>
      			<groupId>log4j</groupId>
      			<artifactId>log4j</artifactId>
      			<version>1.2.13</version>
      			<type>jar</type>
      		</dependency>
      		<dependency>
      			<groupId>fckeditor</groupId>
      			<artifactId>fckeditor</artifactId>
      			<version>2.3</version>
      			<type>jar</type>
      		</dependency>
      		<dependency>
      			<groupId>jcaptcha</groupId>
      			<artifactId>jcaptcha</artifactId>
      			<version>1.0</version>
      			<type>jar</type>
      		</dependency>
      
      		<!-- database dependencies -->
      		<dependency>
      			<groupId>oracle</groupId>
      			<artifactId>ojdbc14</artifactId>
      			<version>10.2.0.2</version>
      			<type>jar</type>
      		</dependency>
      		<dependency>
      			<groupId>oracle</groupId>
      			<artifactId>ptlshare</artifactId>
      			<version>10.2.0.2</version>
      			<type>jar</type>
      		</dependency>
      		<dependency>
      			<groupId>ibatis</groupId>
      			<artifactId>ibatis</artifactId>
      			<version>2.3.0.677</version>
      			<type>jar</type>
      		</dependency>
      		<dependency>
      			<groupId>commons-pool</groupId>
      			<artifactId>commons-pool</artifactId>
      			<version>1.3</version>
      			<type>jar</type>
      		</dependency>
      
      		<!-- jfreechart -->
      		<dependency>
      			<groupId>jfreechart</groupId>
      			<artifactId>jfreechart</artifactId>
      			<version>1.0.3</version>
      			<type>jar</type>
      		</dependency>
      		<dependency>
      			<groupId>com.lowagie</groupId>
      			<artifactId>itext</artifactId>
      			<version>1.3.1</version>
      			<type>jar</type>
      		</dependency>
      		<dependency>
      			<groupId>cewolf</groupId>
      			<artifactId>cewolf</artifactId>
      			<version>1.0</version>
      			<type>jar</type>
      		</dependency>
      		<dependency>
      			<groupId>batik</groupId>
      			<artifactId>batik-xml</artifactId>
      			<version>1.6</version>
      			<type>jar</type>
      		</dependency>
      		<dependency>
      			<groupId>batik</groupId>
      			<artifactId>batik-dom</artifactId>
      			<version>1.6</version>
      			<type>jar</type>
      		</dependency>
      		<dependency>
      			<groupId>batik</groupId>
      			<artifactId>batik-awt-util</artifactId>
      			<version>1.6</version>
      			<type>jar</type>
      		</dependency>
      		<dependency>
      			<groupId>batik</groupId>
      			<artifactId>batik-svggen</artifactId>
      			<version>1.6</version>
      			<type>jar</type>
      		</dependency>
      		<dependency>
      			<groupId>batik</groupId>
      			<artifactId>batik-util</artifactId>
      			<version>1.6</version>
      			<type>jar</type>
      		</dependency>
      
      		<!-- Apache dependencies -->
      		<dependency>
      			<groupId>commons-beanutils</groupId>
      			<artifactId>commons-beanutils</artifactId>
      			<version>1.7.0</version>
      			<type>jar</type>
      		</dependency>
      		<dependency>
      			<groupId>commons-logging</groupId>
      			<artifactId>commons-logging</artifactId>
      			<version>1.0.4</version>
      			<type>jar</type>
      		</dependency>
      		<dependency>
      			<groupId>commons-collections</groupId>
      			<artifactId>commons-collections</artifactId>
      			<version>3.2</version>
      			<type>jar</type>
      		</dependency>
      		<dependency>
      			<groupId>commons-digester</groupId>
      			<artifactId>commons-digester</artifactId>
      			<version>1.5</version>
      			<type>jar</type>
      		</dependency>
      		<dependency>
      			<groupId>commons-fileupload</groupId>
      			<artifactId>commons-fileupload</artifactId>
      			<version>1.1.1</version>
      			<type>jar</type>
      		</dependency>
      		<dependency>
      			<groupId>commons-lang</groupId>
      			<artifactId>commons-lang</artifactId>
      			<version>2.1</version>
      			<type>jar</type>
      		</dependency>
      		<dependency>
      			<groupId>commons-validator</groupId>
      			<artifactId>commons-validator</artifactId>
      			<version>1.1.4</version>
      			<type>jar</type>
      		</dependency>
      		<dependency>
      			<groupId>commons-discovery</groupId>
      			<artifactId>commons-discovery</artifactId>
      			<version>0.2</version>
      			<type>jar</type>
      		</dependency>
      		<dependency>
      			<groupId>commons-httpclient</groupId>
      			<artifactId>commons-httpclient</artifactId>
      			<version>3.0.1</version>
      			<type>jar</type>
      		</dependency>
      		<dependency>
      			<groupId>commons-dbcp</groupId>
      			<artifactId>commons-dbcp</artifactId>
      			<version>1.2.1</version>
      			<type>jar</type>
      		</dependency>
      		<dependency>
      			<groupId>commons-configuration</groupId>
      			<artifactId>commons-configuration</artifactId>
      			<version>1.3</version>
      			<type>jar</type>
      		</dependency>
      		<dependency>
      			<groupId>commons-io</groupId>
      			<artifactId>commons-io</artifactId>
      			<version>1.2</version>
      			<type>jar</type>
      		</dependency>
      		<dependency>
      			<groupId>commons-codec</groupId>
      			<artifactId>commons-codec</artifactId>
      			<version>1.3</version>
      			<type>jar</type>
      		</dependency>
      
      		<!-- Trade dependencies -->
      		<dependency>
      			<groupId>trade</groupId>
      			<artifactId>casclient</artifactId>
      			<version>1.4.2</version>
      			<type>jar</type>
      		</dependency>
      		<dependency>
      			<groupId>trade</groupId>
      			<artifactId>configclient</artifactId>
      			<version>1.4.2</version>
      			<type>jar</type>
      		</dependency>
      		<dependency>
      			<groupId>trade</groupId>
      			<artifactId>gacalib</artifactId>
      			<version>2.3</version>
      			<type>jar</type>
      		</dependency>
      		<dependency>
      			<groupId>trade</groupId>
      			<artifactId>standard</artifactId>
      			<version>1.0.5</version>
      			<type>jar</type>
      		</dependency>
      
      		<dependency>
      			<groupId>poi</groupId>
      			<artifactId>poi</artifactId>
      			<version>2.5.1-final-20040804</version>
      			<type>jar</type>
      		</dependency>
      		<dependency>
      			<groupId>xml-apis</groupId>
      			<artifactId>xml-apis</artifactId>
      			<version>2.0.2</version>
      			<scope>provided</scope>
      			<type>jar</type>
      		</dependency>
      
      	</dependencies>
      thnx
      Last edited by kovy; Jul 2nd, 2007, 07:54 AM.

      Comment


      • #4
        Commons-configuration is the cause. It has a dependency on commons-jxpath and commons-jxpath has in turn a dependency on Xerces 1.2.3.

        That's why it is in there. I'm not sure how to solve this though. You could try to adjust your pom.xml so that it only includes the dependencies you need directly. And let Maven figure out the dependencies of those dependencies. In stead of including those manually.

        Comment

        Working...
        X