ant-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From asolomon15 <asolomo...@nyc.rr.com>
Subject conflicts when parsing xml file
Date Mon, 27 Sep 2004 14:36:21 GMT
I seem to get an error when trying to run a java program within ant.  I 
have to use the Sax parser in jdk but I get this error

init:
     [echo] Build File for Project SAX_PARSING

compile:
    [javac] Compiling 2 source files to 
/home/daddius/Desktop/solution/classes

execute:
     [java] Processing URL My_Data/Books.xml
     [java] javax.xml.parsers.FactoryConfigurationError: Provider 
org.apache.xerces.jaxp.SAXParserFactoryImpl not found
     [java]     at 
javax.xml.parsers.SAXParserFactory.newInstance(SAXParserFactory.java:93)
     [java]     at huan66283.Sep16.Books.processWithSAX(Unknown Source)
     [java]     at huan66283.Sep16.Books.main(Unknown Source)
     [java]     at sun.reflect.NativeMethodAccessorImpl.invoke0(Native 
Method)
     [java]     at 
sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39)
     [java]     at 
sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
     [java]     at java.lang.reflect.Method.invoke(Method.java:324)
     [java]     at 
org.apache.tools.ant.taskdefs.ExecuteJava.run(ExecuteJava.java:193)
     [java]     at 
org.apache.tools.ant.taskdefs.ExecuteJava.execute(ExecuteJava.java:130)
     [java]     at org.apache.tools.ant.taskdefs.Java.run(Java.java:705)
     [java]     at 
org.apache.tools.ant.taskdefs.Java.executeJava(Java.java:177)     
[java]     at org.apache.tools.ant.taskdefs.Java.execute(Java.java:83)
     [java]     at 
org.apache.tools.ant.UnknownElement.execute(UnknownElement.java:275)
     [java]     at org.apache.tools.ant.Task.perform(Task.java:364)
     [java]     at org.apache.tools.ant.Target.execute(Target.java:341)
     [java]     at org.apache.tools.ant.Target.performTasks(Target.java:369)
     [java]     at 
org.apache.tools.ant.Project.executeTarget(Project.java:1214)     
[java]     at org.apache.tools.ant.Project.executeTargets(Project.java:1062)
     [java]     at org.apache.tools.ant.Main.runBuild(Main.java:673)
     [java]     at org.apache.tools.ant.Main.startAnt(Main.java:188)
     [java]     at 
org.apache.tools.ant.launch.Launcher.run(Launcher.java:196)
     [java]     at 
org.apache.tools.ant.launch.Launcher.main(Launcher.java:55)

is there a way to get this to execute with in ant so i don't have to use 
the xerces parser?

thanks for any help

---------------------------------------------------------------------
To unsubscribe, e-mail: user-unsubscribe@ant.apache.org
For additional commands, e-mail: user-help@ant.apache.org


Mime
View raw message