Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

test-softlayer-rhel74-x64-1 got "Could not find or load main class org.apache.tools.ant.launch.Launcher" #283

Closed
sophia-guo opened this issue Mar 9, 2018 · 8 comments

Comments

@sophia-guo
Copy link

test-softlayer-rhel74-x64-1 got "Could not find or load main class org.apache.tools.ant.launch.Launcher"
15:51:32 Error: Could not find or load main class org.apache.tools.ant.launch.Launcher
15:51:32 Caused by: java.lang.ClassNotFoundException: org.apache.tools.ant.launch.Launcher
15:51:32 make: *** [compile] Error 1

https://ci.adoptopenjdk.net/view/System%20tests/job/openjdk10_hs_systemtest_x86-64_linux/26/console

https://ci.adoptopenjdk.net/view/System%20tests/job/openjdk10_hs_systemtest_x86-64_linux/26/console

@smlambert
Copy link
Contributor

This likely implies the rhel ansible playbook needs to be looked at, as the ant installation does not seem correct/complete.

@karianna karianna added the bug label Mar 12, 2018
@bblondin
Copy link
Contributor

Where does this code expect ANT_HOME to be located?
Would you be able to provide a basic test to reproduce this error?

@sophia-guo
Copy link
Author

It can be reproduced using https://ci.adoptopenjdk.net/view/work%20in%20progress/job/test_personal/

I just launched one:
https://ci.adoptopenjdk.net/view/work%20in%20progress/job/test_personal/412/console

It happened when using: ant -f scripts/build_test.xml -DTEST_ROOT=/home/jenkins/workspace/test_personal/openjdk-tests/TestConfig/.. -DBUILD_ROOT=/home/jenkins/workspace/test_personal/openjdk-tests/TestConfig/../../jvmtest -DJAVA_BIN=/home/jenkins/workspace/test_personal/openjdkbinary/j2sdk-image/bin -DJAVA_VERSION=SE90 -DJCL_VERSION=current -DBUILD_LIST=openjdk_regression -DRESOURCES_DIR=/home/jenkins/workspace/test_personal/openjdk-tests/TestConfig/../../jvmtest/TestConfig/resources -DJCK_ROOT= -DJVM_VERSION=openjdk9

Note: it only happened when doing tests with java9. Same issue with test-softlayer-rhel69-x64-1. No issue with unbuntu.

@smlambert
Copy link
Contributor

smlambert commented Mar 16, 2018

@bblondin - if you like to reproduce this test after making changes to that machine, you can go to Sophia's test_personal build 412 while its around, and hit the rebuild button.

rebuildpersonal

@pnstanton
Copy link
Contributor

Something different happens if I run the ant command at the command line:

[jenkins@test-softlayer-rhel74-x64-1 TestConfig]$ ant -f scripts/build_test.xml -DTEST_ROOT=/home/jenkins/workspace/test_personal/openjdk-tests/TestConfig/.. -DBUILD_ROOT=/home/jenkins/workspace/test_personal/openjdk-tests/TestConfig/../../jvmtest -DJAVA_BIN=/home/jenkins/workspace/test_personal/openjdkbinary/j2sdk-image/bin -DJAVA_VERSION=SE90 -DJCL_VERSION=current -DBUILD_LIST=openjdk_regression -DRESOURCES_DIR=/home/jenkins/workspace/test_personal/openjdk-tests/TestConfig/../../jvmtest/TestConfig/resources -DJCK_ROOT= -DJVM_VERSION=openjdk9
Buildfile: /home/jenkins/workspace/test_personal/openjdk-tests/TestConfig/scripts/build_test.xml
  [taskdef] Could not load definitions from resource net/sf/antcontrib/antlib.xml. It could not be found.
     [echo]  JAVA_BIN is /home/jenkins/workspace/test_personal/openjdkbinary/j2sdk-image/bin 

BUILD FAILED
/home/jenkins/workspace/test_personal/openjdk-tests/TestConfig/scripts/build_test.xml:36: Problem: failed to create task or type if
Cause: The name is undefined.
Action: Check the spelling.
Action: Check that any custom tasks/types have been declared.
Action: Check that any <presetdef>/<macrodef> declarations have taken place.


Total time: 0 seconds

@sophia-guo
Copy link
Author

@pnstanton the error is because ant-contrib is not installed or installed uncorrectly. #269

@sxa sxa added this to the Backlog milestone Mar 7, 2019
@sxa
Copy link
Member

sxa commented Jul 8, 2020

As far as I can see this in place now on the machine - closing. Please re-open if required

@sxa sxa closed this as completed Jul 8, 2020
@karianna karianna modified the milestones: Backlog, July 2020 Jul 8, 2020
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

6 participants