maven-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
Subject [maven-bug] New comment: (MAVEN-166) Maven fails on j2sdk1.4.1_01 because of Xerces
Date Sun, 01 Dec 2002 22:36:32 GMT
The following comment has been added to this issue:

     Author: Aslak Helles√ły
    Created: Sun, 1 Dec 2002 4:36 PM
A better fix for this problem could be to check for java.version in org.apache.maven.cli.App
(or maybe some other class) and set the XML related system properties to Xerces if version
< 1.4.
View the issue:

Here is an overview of the issue:
        Key: MAVEN-166
    Summary: Maven fails on j2sdk1.4.1_01 because of Xerces
       Type: Improvement

     Status: Assigned
   Priority: Major

 Time Spent: Unknown
   Estimate: 0 minutes

    Project: maven
  Component: None

   Assignee: Jason van Zyl
   Reporter: Aslak Helles√ły

    Created: Sun, 1 Dec 2002 3:11 PM
    Updated: Sun, 1 Dec 2002 3:11 PM
Environment: j2sdk1.4.1_01, win2k, maven cvs head on 2002.12.01 20:00 GMT, cygwin/bash and

The current maven and maven.bat scripts tell the VM to use Xerces as XML parser. On j2sdk1.4.1_01
this will result in the following error during the xdoc:transform-user-docs goal:

Warning: Caught exception attempting to use SAX to load a SAX XMLReader
Warning: Exception was: java.lang.ClassNotFoundException: org/apache/xerces/parsers/SAXParser
Warning: I will print the stack trace then carry on using the default SAX parser
[ERROR] java.lang.ClassNotFoundException: org/apache/xerces/parsers/SAXParser
[ERROR]         at org.xml.sax.helpers.XMLReaderFactory.createXMLReader(
[ERROR]         at org.xml.sax.helpers.XMLReaderFactory.createXMLReader(
[ERROR]         at
[ERROR]         at
[ERROR]         at
[ERROR]         at
[ERROR]         at
[ERROR]         at
[ERROR]         at
[ERROR]         at
[ERROR]         at org.apache.maven.DVSLBean.transform(

This patch adds the functionality to discover the jdk version. This is done by looking for
the directory %JAVA_HOME%\jre\bin\client which only exists (I think) on j2sdk1.4.1. If the
directory exists, the XML/Xerces related parameters are not passed to the VM.

Tested on both cygwin and command.

This message is automatically generated by JIRA.

If you think it was sent incorrectly contact one of the administrators:

If you want more information on JIRA, or have a bug to report see:

View raw message