You are viewing a plain text version of this content. The canonical link for it is here.
Posted to common-issues@hadoop.apache.org by "Evan Wang (JIRA)" <ji...@apache.org> on 2010/07/19 10:57:52 UTC

[jira] Commented: (HADOOP-6865) there will be ant error if ant ran without network connected

    [ https://issues.apache.org/jira/browse/HADOOP-6865?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=12889790#action_12889790 ] 

Evan Wang commented on HADOOP-6865:
-----------------------------------

There is a method to slove this problem. When ant built the project, ivy-2.0.0-rc2.jar would be rewritten. If network was not connected, this jar would have some error that cannot be repaired automatically. But you can use a original ivy-2.0.0-rc2.jar to replace it, then ant building will be ok.

> 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 is automatically generated by JIRA.
-
You can reply to this email to add a comment to the issue online.