ant-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Meg <sec...@io.com>
Subject Re: two out of three ...
Date Thu, 10 Apr 2003 19:25:47 GMT
I still can't run Ant?!? I can't wait to figure out what I am doing wrong 
so I can fix it. The tool sounds very wonderful and fun.

The problem seems to happen in the code at line 121 of the JAXPUtils.java 
file when a BuildException error is thrown. Evidently the 
SAXParserFactory.newInstance() fails. I'm not sure why that is happening at 
this moment, however.

     /**
      * Returns a new  parser factory instance.
      *
      * @since Ant 1.5
      */
     public static SAXParserFactory newParserFactory() throws BuildException {

         try {

         /////////////////////////////////////////////////////////
         // MEG: This next line fails on my machine.
             return SAXParserFactory.newInstance();
         } catch (FactoryConfigurationError e) {
             throw new BuildException("XML parser factory has not been "
                                      + "configured correctly: "
                                      + e.getMessage(), e);
         }
     }


>Hi everyone,
>
>I got Ant 1.5.2, binary distro, up instantly on 2 out of my 3 machines. 
>But not on the one I primarily use for Java dev, so I am confused. I'm 
>sure there is something wrong with my CLASSPATH, or something, but what? 
>I've got jaxp on all the machines and use them for xslt stuff just fine! 
>I've read the manual, checked the troubleshooting tips, but ... nada!
>
>Thanks,
>Meg
>
>PS - I'm not even sure what info to give. Here's some of my environmentals:
>
>ANT_HOME=d:\ant
>
>CLASSPATH=d:\jdk1.3\classes.zip;d:\jaxp-1.1\jaxp.jar;d:\jaxp-1.1\crimson.jar;d:\jaxp-1.1\xalan.jar;d:\jdk1.3\jre\lib\ext\QTJava.zip;D:\meg\dev\xslt
>
>JAVA_HOME=d:\jdk1.3
>
>Path=c:\bin;d:\ant\bin;d:\meg\dev\bin;C:\WINNT\system32;C:\WINNT;C:\WINNT\System32\Wbem;d:\jdk1.3\bin
>
>QTJAVA=d:\jdk1.3\jre\lib\ext\QTJava.zip
>
>XML=d:\jaxp-1.1
>
>
>==============================================
>
> > ant -buildfile zap.bat
>
>Setting ro project property: ant.file -> D:\ZAP\zap-01.xml
>
>BUILD FAILED
>XML parser factory has not been configured correctly: 
>java.lang.ClassNotFoundException: org.apache.crimson.jaxp.SAXParserFactoryImpl
>         at 
> org.apache.tools.ant.util.JAXPUtils.newParserFactory(JAXPUtils.java:121)
>         at 
> org.apache.tools.ant.util.JAXPUtils.getParserFactory(JAXPUtils.java:106)
>         at 
> org.apache.tools.ant.util.JAXPUtils.newSAXParser(JAXPUtils.java:188)
>         at 
> org.apache.tools.ant.util.JAXPUtils.getXMLReader(JAXPUtils.java:153)
>         at 
> org.apache.tools.ant.helper.ProjectHelperImpl.parse(ProjectHelperImpl.java:136)
>         at 
> org.apache.tools.ant.ProjectHelper.configureProject(ProjectHelper.java:117)
>         at org.apache.tools.ant.Main.runBuild(Main.java:596)
>         at org.apache.tools.ant.Main.start(Main.java:196)
>         at org.apache.tools.ant.Main.main(Main.java:235)
>--- Nested Exception ---
>javax.xml.parsers.FactoryConfigurationError: 
>java.lang.ClassNotFoundException: org.apache.crimson.jaxp.SAXParserFactoryImpl
>         at 
> javax.xml.parsers.SAXParserFactory.newInstance(SAXParserFactory.java:120)
>         at 
> org.apache.tools.ant.util.JAXPUtils.newParserFactory(JAXPUtils.java:119)
>         at 
> org.apache.tools.ant.util.JAXPUtils.getParserFactory(JAXPUtils.java:106)
>         at 
> org.apache.tools.ant.util.JAXPUtils.newSAXParser(JAXPUtils.java:188)
>         at 
> org.apache.tools.ant.util.JAXPUtils.getXMLReader(JAXPUtils.java:153)
>         at 
> org.apache.tools.ant.helper.ProjectHelperImpl.parse(ProjectHelperImpl.java:136)
>         at 
> org.apache.tools.ant.ProjectHelper.configureProject(ProjectHelper.java:117)
>         at org.apache.tools.ant.Main.runBuild(Main.java:596)
>         at org.apache.tools.ant.Main.start(Main.java:196)
>         at org.apache.tools.ant.Main.main(Main.java:235)
>
>
>
>---------------------------------------------------------------------
>To unsubscribe, e-mail: user-unsubscribe@ant.apache.org
>For additional commands, e-mail: user-help@ant.apache.org



Mime
View raw message