hadoop-common-issues mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Allen Wittenauer (JIRA)" <j...@apache.org>
Subject [jira] [Resolved] (HADOOP-6865) there will be ant error if ant ran without network connected
Date Wed, 30 Jul 2014 23:05:39 GMT

     [ https://issues.apache.org/jira/browse/HADOOP-6865?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel
]

Allen Wittenauer resolved HADOOP-6865.
--------------------------------------

    Resolution: Won't Fix

mavenization makes this stale. closing.

> there will be ant error if ant ran without network connected
> ------------------------------------------------------------
>
>                 Key: HADOOP-6865
>                 URL: https://issues.apache.org/jira/browse/HADOOP-6865
>             Project: Hadoop Common
>          Issue Type: Bug
>          Components: build
>    Affects Versions: 0.20.2
>         Environment: centos 5.4
>            Reporter: Evan Wang
>
> If you run `ant` without network connected, there will be an error below. And even if
you connect your network, the error will exist.
> ivy-init-antlib:
>   [typedef] java.util.zip.ZipException: error in opening zip file
>   [typedef]     at java.util.zip.ZipFile.open(Native Method)
>   [typedef]     at java.util.zip.ZipFile.<init>(ZipFile.java:114)
>   [typedef]     at java.util.zip.ZipFile.<init>(ZipFile.java:131)
>   [typedef]     at org.apache.tools.ant.AntClassLoader.getResourceURL(AntClassLoader.java:1028)
>   [typedef]     at org.apache.tools.ant.AntClassLoader$ResourceEnumeration.findNextResource(AntClassLoader.java:147)
>   [typedef]     at org.apache.tools.ant.AntClassLoader$ResourceEnumeration.<init>(AntClassLoader.java:109)
>   [typedef]     at org.apache.tools.ant.AntClassLoader.findResources(AntClassLoader.java:975)
>   [typedef]     at java.lang.ClassLoader.getResources(ClassLoader.java:1016)
>   [typedef]     at org.apache.tools.ant.taskdefs.Definer.resourceToURLs(Definer.java:364)
>   [typedef]     at org.apache.tools.ant.taskdefs.Definer.execute(Definer.java:256)
>   [typedef]     at org.apache.tools.ant.UnknownElement.execute(UnknownElement.java:288)
>   [typedef]     at sun.reflect.GeneratedMethodAccessor1.invoke(Unknown Source)
>   [typedef]     at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
>   [typedef]     at java.lang.reflect.Method.invoke(Method.java:597)
>   [typedef]     at org.apache.tools.ant.dispatch.DispatchUtils.execute(DispatchUtils.java:106)
>   [typedef]     at org.apache.tools.ant.Task.perform(Task.java:348)
>   [typedef]     at org.apache.tools.ant.Target.execute(Target.java:357)
>   [typedef]     at org.apache.tools.ant.Target.performTasks(Target.java:385)
>   [typedef]     at org.apache.tools.ant.Project.executeSortedTargets(Project.java:1337)
>   [typedef]     at org.apache.tools.ant.Project.executeTarget(Project.java:1306)
>   [typedef]     at org.apache.tools.ant.helper.DefaultExecutor.executeTargets(DefaultExecutor.java:41)
>   [typedef]     at org.apache.tools.ant.Project.executeTargets(Project.java:1189)
>   [typedef]     at org.apache.tools.ant.Main.runBuild(Main.java:758)
>   [typedef]     at org.apache.tools.ant.Main.startAnt(Main.java:217)
>   [typedef]     at org.apache.tools.ant.launch.Launcher.run(Launcher.java:257)
>   [typedef]     at org.apache.tools.ant.launch.Launcher.main(Launcher.java:104)
>   [typedef] Could not load definitions from resource org/apache/ivy/ant/antlib.xml. It
could not be found.
> BUILD FAILED
> /opt/hadoop-0.20.2/build.xml:1644: You need Apache Ivy 2.0 or later from http://ant.apache.org/
>       It could not be loaded from http://repo2.maven.org/maven2/org/apache/ivy/ivy/2.0.0-rc2/ivy-2.0.0-rc2.jar



--
This message was sent by Atlassian JIRA
(v6.2#6252)

Mime
View raw message