Hi all,

I am stumped by this error, so I hope you can help.
I'm getting a strange syntax error message when trying to build the
hello-ivy example using ant. Note I have not changed ant (1.8.2) or ivy
(2.2.0) at all from when I downloaded them off the Apache website.

When running ant in either the ivy root directory, or in hello-ivy I get the
following......



:/srv/apache-ivy-2.2.0 # ant
Buildfile: /srv/apache-ivy-2.2.0/build.xml

init-ivy:

retrieve-all:
[ivy:retrieve] :: Ivy 2.2.0 - 20100923230623 :: http://ant.apache.org/ivy/
::
[ivy:retrieve] :: loading settings :: url =
jar:file:/usr/share/ant/lib/ivy-2.2.0.jar!/org/apache/ivy/core/settings/ivysettings.xml
[ivy:retrieve] http://java.sun.com/xml/jaxp/properties/schemaLanguage in
file:/srv/apache-ivy-2.2.0/ivy.xml

BUILD FAILED
/srv/apache-ivy-2.2.0/build.xml:55: syntax errors in ivy file:
java.text.ParseException:
http://java.sun.com/xml/jaxp/properties/schemaLanguage in
file:/srv/apache-ivy-2.2.0/ivy.xml
   at
org.apache.ivy.plugins.parser.xml.XmlModuleDescriptorParser$Parser.parse(XmlModuleDescriptorParser.java:273)
   at
org.apache.ivy.plugins.parser.xml.XmlModuleDescriptorParser.parseDescriptor(XmlModuleDescriptorParser.java:112)
   at
org.apache.ivy.plugins.parser.AbstractModuleDescriptorParser.parseDescriptor(AbstractModuleDescriptorParser.java:48)
   at
org.apache.ivy.core.resolve.ResolveEngine.resolve(ResolveEngine.java:185)
   at org.apache.ivy.Ivy.resolve(Ivy.java:502)
   at org.apache.ivy.ant.IvyResolve.doExecute(IvyResolve.java:244)
   at org.apache.ivy.ant.IvyTask.execute(IvyTask.java:277)
   at
org.apache.ivy.ant.IvyPostResolveTask.ensureResolved(IvyPostResolveTask.java:217)
   at
org.apache.ivy.ant.IvyPostResolveTask.prepareAndCheck(IvyPostResolveTask.java:164)
   at org.apache.ivy.ant.IvyRetrieve.doExecute(IvyRetrieve.java:57)
   at org.apache.ivy.ant.IvyTask.execute(IvyTask.java:277)
   at org.apache.tools.ant.UnknownElement.execute(UnknownElement.java:291)
   at java.lang.reflect.Method.invoke(libgcj.so.9)
   at
org.apache.tools.ant.dispatch.DispatchUtils.execute(DispatchUtils.java:106)
   at org.apache.tools.ant.Task.perform(Task.java:348)
   at org.apache.tools.ant.Target.execute(Target.java:390)
   at org.apache.tools.ant.Target.performTasks(Target.java:411)
   at org.apache.tools.ant.Project.executeSortedTargets(Project.java:1399)
   at org.apache.tools.ant.Project.executeTarget(Project.java:1368)
   at
org.apache.tools.ant.helper.DefaultExecutor.executeTargets(DefaultExecutor.java:41)
   at org.apache.tools.ant.Project.executeTargets(Project.java:1251)
   at org.apache.tools.ant.Main.runBuild(Main.java:809)
   at org.apache.tools.ant.Main.startAnt(Main.java:217)
   at org.apache.tools.ant.launch.Launcher.run(Launcher.java:280)
   at org.apache.tools.ant.launch.Launcher.main(Launcher.java:109)
Caused by: org.xml.sax.SAXNotSupportedException:
http://java.sun.com/xml/jaxp/properties/schemaLanguage
   at gnu.xml.stream.SAXParser.setProperty(libgcj.so.9)
   at org.apache.ivy.util.XMLHelper.newSAXParser(XMLHelper.java:65)
   at org.apache.ivy.util.XMLHelper.parse(XMLHelper.java:118)
   at org.apache.ivy.util.XMLHelper.parse(XMLHelper.java:94)
   at org.apache.ivy.util.XMLHelper.parse(XMLHelper.java:84)
   at
org.apache.ivy.plugins.parser.xml.XmlModuleDescriptorParser$Parser.parse(XmlModuleDescriptorParser.java:248)
   ...24 more

Total time: 1 second

---------------------------------

The other weird thing is that the example go-ivy builds just fine with no
errors!

I installed ivy by following the instructions in doc/install.html (just copy
the ivy jar to the ant lib directory)

Thank you!
-- 
View this message in context: 
http://old.nabble.com/syntax-errors-in-the-ivy-example-files%21-tp32810295p32810295.html
Sent from the ivy-user mailing list archive at Nabble.com.

Reply via email to