On 8/20/07, Chapman, Brandon <[EMAIL PROTECTED]> wrote: > > > I'm getting a http error when trying to run go ivy. I can go to the url > fine in my we browser. I have commons-httpclient.jar on my classpath > just in case. Any ideas?
I don't know why you get an authorization failure, but there is a problem with the go-ivy example: the ivy.jar is not where expected. I've just added the jar at the right location, it should now work better... except that there is a bug in this example in alpha 2 release, you have to replace this line: <ivy:cachepath organisation="apache" module="commons-lang" revision="2.1" by this one: <ivy:cachepath organisation="commons-lang" module="commons-lang" revision=" 2.1" conf="default" in the build.xml Then it should work properly. HTH, Xavier $ ant -debug > Apache Ant version 1.7.0 compiled on December 13 2006 > Buildfile: build.xml > Adding reference: ant.PropertyHelper > Detected Java version: 1.4 in: /opt/java1.4/jre > Detected OS: HP-UX > Adding reference: ant.ComponentHelper > Setting ro project property: ant.file -> > /pagsw/pag_dev1/ivyTest/build.xml > Adding reference: ant.projectHelper > Adding reference: ant.parsing.context > Adding reference: ant.targets > parsing buildfile /pagsw/pag_dev1/ivyTest/build.xml with URI = > file:/pagsw/pag_dev1/ivyTest/build.xml > Setting ro project property: ant.project.name -> go-ivy > Adding reference: go-ivy > Setting ro project property: ant.file.go-ivy -> > /pagsw/pag_dev1/ivyTest/build.xml > Project base dir set to: /pagsw/pag_dev1/ivyTest > +Target: > +Target: install-ivy > +Target: go > +Target: generate-src > +Target: clean > +Target: clean-ivy > +Target: clean-cache > [antlib:org.apache.tools.ant] Could not load definitions from resource > org/apache/tools/ant/antlib.xml. It could not be found. > Setting project property: ivy.install.version -> > 2.0.0-alpha-2-incubating > Setting project property: ivy.jar.dir -> /pagsw/pag_dev1/ivyTest/ivy > Setting project property: ivy.jar.file -> > /pagsw/pag_dev1/ivyTest/ivy/ivy.jar > Setting project property: build.dir -> build > Setting project property: src.dir -> src > Attempting to create object of type > org.apache.tools.ant.helper.DefaultExecutor > Adding reference: ant.executor > Build sequence for target(s) `go' is [install-ivy, generate-src, go] > Complete build sequence is [install-ivy, generate-src, go, clean-ivy, > clean, clean-cache, ] > > install-ivy: > [mkdir] Skipping /pagsw/pag_dev1/ivyTest/ivy because it already > exists. > [echo] installing ivy... > [get] Getting: > http://people.apache.org/~xavier/ivy/2.0.0-alpha-2-incubating/ivy.jar > [get] To: /pagsw/pag_dev1/ivyTest/ivy/ivy.jar > > BUILD FAILED > /pagsw/pag_dev1/ivyTest/build.xml:64: HTTP Authorization failure > at org.apache.tools.ant.taskdefs.Get.doGet(Get.java:183) > at org.apache.tools.ant.taskdefs.Get.execute(Get.java:76) > at > org.apache.tools.ant.UnknownElement.execute(UnknownElement.java:288) > at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method) > at > sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.jav > a:39) > at > sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessor > Impl.java:25) > at java.lang.reflect.Method.invoke(Method.java:324) > at > org.apache.tools.ant.dispatch.DispatchUtils.execute(DispatchUtils.java:1 > 05) > at org.apache.tools.ant.Task.perform(Task.java:348) > at org.apache.tools.ant.Target.execute(Target.java:357) > at org.apache.tools.ant.Target.performTasks(Target.java:385) > at > org.apache.tools.ant.Project.executeSortedTargets(Project.java:1329) > at org.apache.tools.ant.Project.executeTarget(Project.java:1298) > at > org.apache.tools.ant.helper.DefaultExecutor.executeTargets(DefaultExecut > or.java:41) > at > org.apache.tools.ant.Project.executeTargets(Project.java:1181) > at org.apache.tools.ant.Main.runBuild(Main.java:698) > at org.apache.tools.ant.Main.startAnt(Main.java:199) > at org.apache.tools.ant.launch.Launcher.run(Launcher.java:257) > at org.apache.tools.ant.launch.Launcher.main(Launcher.java:104) > -- Xavier Hanin - Independent Java Consultant http://xhab.blogspot.com/ http://incubator.apache.org/ivy/ http://www.xoocode.org/
