Stephan Feder created IVY-1483:
----------------------------------
Summary: Ant fails when invoked from Ivy
Key: IVY-1483
URL: https://issues.apache.org/jira/browse/IVY-1483
Project: Ivy
Issue Type: Bug
Components: Core
Affects Versions: 2.3.0
Reporter: Stephan Feder
I unpacked apache-ivy-2.3.0-bin.zip in /tmp, changed directory to
/tmp/apache-ivy-2.3.0 and invoked Ant via Ivy (3 different ways, none working,
all failing the same way):
# java -jar ivy-2.3.0.jar -main org.apache.tools.ant.Main
:: loading settings :: url =
jar:file:/tmp/apache-ivy-2.3.0/ivy-2.3.0.jar!/org/apache/ivy/core/settings/ivysettings.xml
:: resolving dependencies :: org.apache.ivy#ivy;2.3.0
confs: [core, httpclient, oro, vfs, sftp, standalone, ant, default,
test, source]
found commons-httpclient#commons-httpclient;3.0 in public
found commons-logging#commons-logging;1.0.3 in public
found commons-codec#commons-codec;1.2 in public
found oro#oro;2.0.8 in public
found commons-vfs#commons-vfs;1.0 in public
found commons-logging#commons-logging;1.0.4 in public
found com.jcraft#jsch;0.1.31 in default
found org.apache.ant#ant;1.7.1 in public
found org.apache.ant#ant-launcher;1.7.1 in public
found org.apache.ant#ant-nodeps;1.7.1 in public
found org.apache.ant#ant-trax;1.7.1 in public
found org.bouncycastle#bcpg-jdk14;1.45 in public
found org.bouncycastle#bcprov-jdk14;1.45 in public
found junit#junit;3.8.2 in public
found commons-lang#commons-lang;2.6 in public
found org.apache.ant#ant-testutil;1.7.0 in public
found ant#ant-launcher;1.6.2 in public
found ant-contrib#ant-contrib;1.0b3 in public
found xerces#xercesImpl;2.6.2 in public
found xerces#xmlParserAPIs;2.6.2 in public
:: resolution report :: resolve 2025ms :: artifacts dl 97ms
:: evicted modules:
commons-logging#commons-logging;1.0.3 by
[commons-logging#commons-logging;1.0.4] in [default]
---------------------------------------------------------------------
| | modules || artifacts |
| conf | number| search|dwnlded|evicted|| number|dwnlded|
---------------------------------------------------------------------
| core | 0 | 0 | 0 | 0 || 0 | 0 |
| httpclient | 3 | 0 | 0 | 0 || 3 | 0 |
| oro | 1 | 0 | 0 | 0 || 1 | 0 |
| vfs | 2 | 0 | 0 | 0 || 2 | 0 |
| sftp | 1 | 0 | 0 | 0 || 1 | 0 |
| standalone | 0 | 0 | 0 | 0 || 0 | 0 |
| ant | 2 | 0 | 0 | 0 || 2 | 0 |
| default | 13 | 0 | 0 | 1 || 12 | 0 |
| test | 7 | 0 | 0 | 0 || 7 | 0 |
| source | 0 | 0 | 0 | 0 || 0 | 0 |
---------------------------------------------------------------------
Buildfile: build.xml
init-ivy:
BUILD FAILED
/tmp/apache-ivy-2.3.0/build.xml:24: The following error occurred while
executing this line:
jar:file:/tmp/apache-ivy-2.3.0/ivy-2.3.0.jar!/org/apache/ivy/ant/antlib.xml:21:
typedef A class needed by class org.apache.ivy.ant.IvyAntSettings cannot be
found: org/apache/tools/ant/types/DataType
Total time: 0 seconds
# java -jar ivy-2.3.0.jar -dependency org.apache.ant ant 1.7.1 -main
org.apache.tools.ant.Main
:: loading settings :: url =
jar:file:/tmp/apache-ivy-2.3.0/ivy-2.3.0.jar!/org/apache/ivy/core/settings/ivysettings.xml
:: resolving dependencies :: org.apache.ant#ant-caller;working
confs: [default]
found org.apache.ant#ant;1.7.1 in public
found org.apache.ant#ant-launcher;1.7.1 in public
found xerces#xercesImpl;2.9.0 in public
found xml-apis#xml-apis;1.3.04 in public
:: resolution report :: resolve 733ms :: artifacts dl 34ms
---------------------------------------------------------------------
| | modules || artifacts |
| conf | number| search|dwnlded|evicted|| number|dwnlded|
---------------------------------------------------------------------
| default | 4 | 0 | 0 | 0 || 5 | 0 |
---------------------------------------------------------------------
Buildfile: build.xml
init-ivy:
BUILD FAILED
/tmp/apache-ivy-2.3.0/build.xml:24: The following error occurred while
executing this line:
jar:file:/tmp/apache-ivy-2.3.0/ivy-2.3.0.jar!/org/apache/ivy/ant/antlib.xml:21:
typedef A class needed by class org.apache.ivy.ant.IvyAntSettings cannot be
found: org/apache/tools/ant/types/DataType
Total time: 0 seconds
# java -jar ivy-2.3.0.jar -dependency org.apache.ivy ivy 2.3.0 -main
org.apache.tools.ant.Main
:: loading settings :: url =
jar:file:/tmp/apache-ivy-2.3.0/ivy-2.3.0.jar!/org/apache/ivy/core/settings/ivysettings.xml
:: resolving dependencies :: org.apache.ivy#ivy-caller;working
confs: [default]
found org.apache.ivy#ivy;2.3.0 in public
found org.apache.ant#ant;1.7.1 in public
found org.apache.ant#ant-launcher;1.7.1 in public
found org.apache.ant#ant-nodeps;1.7.1 in public
found org.apache.ant#ant-trax;1.7.1 in public
found commons-httpclient#commons-httpclient;3.0 in public
found junit#junit;3.8.1 in public
found commons-logging#commons-logging;1.0.3 in public
found commons-codec#commons-codec;1.2 in public
found oro#oro;2.0.8 in public
found commons-vfs#commons-vfs;1.0 in public
found commons-logging#commons-logging;1.0.4 in public
found com.jcraft#jsch;0.1.31 in default
found org.bouncycastle#bcpg-jdk14;1.45 in public
found org.bouncycastle#bcprov-jdk14;1.45 in public
:: resolution report :: resolve 1752ms :: artifacts dl 70ms
:: evicted modules:
commons-logging#commons-logging;1.0.3 by
[commons-logging#commons-logging;1.0.4] in [default]
---------------------------------------------------------------------
| | modules || artifacts |
| conf | number| search|dwnlded|evicted|| number|dwnlded|
---------------------------------------------------------------------
| default | 15 | 0 | 0 | 1 || 16 | 0 |
---------------------------------------------------------------------
Buildfile: build.xml
init-ivy:
BUILD FAILED
/tmp/apache-ivy-2.3.0/build.xml:24: The following error occurred while
executing this line:
jar:file:/tmp/apache-ivy-2.3.0/ivy-2.3.0.jar!/org/apache/ivy/ant/antlib.xml:21:
typedef A class needed by class org.apache.ivy.ant.IvyAntSettings cannot be
found: org/apache/tools/ant/types/DataType
Total time: 0 seconds
This looks like a classloader problem to me.
--
This message was sent by Atlassian JIRA
(v6.2#6252)