{"action":"created","issue":{"url":"https://api.github.com/repos/elastic/elasticsearch/issues/14348","labels_url":"https://api.github.com/repos/elastic/elasticsearch/issues/14348/labels{/name}","comments_url":"https://api.github.com/repos/elastic/elasticsearch/issues/14348/comments","events_url":"https://api.github.com/repos/elastic/elasticsearch/issues/14348/events","html_url":"https://github.com/elastic/elasticsearch/issues/14348","id":113961444,"number":14348,"title":"jar hell in test classpath when running with JDK 1.8.0_66 on OS X (ant-javafx.jar, packager.jar)","user":{"login":"robinst","id":16778,"avatar_url":"https://avatars.githubusercontent.com/u/16778?v=3","gravatar_id":"","url":"https://api.github.com/users/robinst","html_url":"https://github.com/robinst","followers_url":"https://api.github.com/users/robinst/followers","following_url":"https://api.github.com/users/robinst/following{/other_user}","gists_url":"https://api.github.com/users/robinst/gists{/gist_id}","starred_url":"https://api.github.com/users/robinst/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/robinst/subscriptions","organizations_url":"https://api.github.com/users/robinst/orgs","repos_url":"https://api.github.com/users/robinst/repos","events_url":"https://api.github.com/users/robinst/events{/privacy}","received_events_url":"https://api.github.com/users/robinst/received_events","type":"User","site_admin":false},"labels":[],"state":"closed","locked":false,"assignee":null,"milestone":null,"comments":5,"created_at":"2015-10-29T01:48:09Z","updated_at":"2015-12-10T13:40:09Z","closed_at":"2015-10-29T01:53:04Z","body":"Trying to run a test that extends `ESIntegTestCase` with Elasticsearch 2.0.0, getting this:\r\n\r\n```\r\njava.lang.RuntimeException: found jar hell in test classpath\r\n\tat org.elasticsearch.bootstrap.BootstrapForTesting.<clinit>(BootstrapForTesting.java:63)\r\n\tat org.elasticsearch.test.ESTestCase.<clinit>(ESTestCase.java:106)\r\n\tat java.lang.Class.forName0(Native Method)\r\n\tat java.lang.Class.forName(Class.java:348)\r\n\tat com.carrotsearch.randomizedtesting.RandomizedRunner$1.run(RandomizedRunner.java:573)\r\nCaused by: java.lang.IllegalStateException: jar hell!\r\nclass: jdk.packager.services.UserJvmOptionsService\r\njar1: /Library/Java/JavaVirtualMachines/jdk1.8.0_66.jdk/Contents/Home/lib/ant-javafx.jar\r\njar2: /Library/Java/JavaVirtualMachines/jdk1.8.0_66.jdk/Contents/Home/lib/packager.jar\r\n\tat org.elasticsearch.bootstrap.JarHell.checkClass(JarHell.java:267)\r\n\tat org.elasticsearch.bootstrap.JarHell.checkJarHell(JarHell.java:185)\r\n\tat org.elasticsearch.bootstrap.JarHell.checkJarHell(JarHell.java:86)\r\n\tat org.elasticsearch.bootstrap.BootstrapForTesting.<clinit>(BootstrapForTesting.java:61)\r\n\t... 4 more\r\n```\r\n\r\nNot sure I can do much about that."},"comment":{"url":"https://api.github.com/repos/elastic/elasticsearch/issues/comments/163621325","html_url":"https://github.com/elastic/elasticsearch/issues/14348#issuecomment-163621325","issue_url":"https://api.github.com/repos/elastic/elasticsearch/issues/14348","id":163621325,"user":{"login":"jprante","id":635745,"avatar_url":"https://avatars.githubusercontent.com/u/635745?v=3","gravatar_id":"","url":"https://api.github.com/users/jprante","html_url":"https://github.com/jprante","followers_url":"https://api.github.com/users/jprante/followers","following_url":"https://api.github.com/users/jprante/following{/other_user}","gists_url":"https://api.github.com/users/jprante/gists{/gist_id}","starred_url":"https://api.github.com/users/jprante/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/jprante/subscriptions","organizations_url":"https://api.github.com/users/jprante/orgs","repos_url":"https://api.github.com/users/jprante/repos","events_url":"https://api.github.com/users/jprante/events{/privacy}","received_events_url":"https://api.github.com/users/jprante/received_events","type":"User","site_admin":false},"created_at":"2015-12-10T13:40:09Z","updated_at":"2015-12-10T13:40:09Z","body":"FYI same config works here flawlessly\r\n\r\n```\r\nJorg-Prantes-MacBook-Pro:~ joerg$ uname -a\r\nDarwin Jorg-Prantes-MacBook-Pro.local 13.4.0 Darwin Kernel Version 13.4.0: Wed Mar 18 16:20:14 PDT 2015; root:xnu-2422.115.14~1/RELEASE_X86_64 x86_64\r\nJorg-Prantes-MacBook-Pro:~ joerg$ java -version\r\njava version \"1.8.0_66\"\r\nJava(TM) SE Runtime Environment (build 1.8.0_66-b17)\r\nJava HotSpot(TM) 64-Bit Server VM (build 25.66-b17, mixed mode)\r\nJorg-Prantes-MacBook-Pro:~ joerg$ ls -l  /Library/Java/JavaVirtualMachines/jdk1.8.0_66.jdk/Contents/Home/lib/ant-javafx.jar\r\n-rwxrwxr-x  1 root  wheel  1165611  6 Okt 22:59 /Library/Java/JavaVirtualMachines/jdk1.8.0_66.jdk/Contents/Home/lib/ant-javafx.jar\r\nJorg-Prantes-MacBook-Pro:~ joerg$ ls -l  /Library/Java/JavaVirtualMachines/jdk1.8.0_66.jdk/Contents/Home/lib/packager.jar\r\n-rwxrwxr-x  1 root  wheel  4646  6 Okt 22:59 /Library/Java/JavaVirtualMachines/jdk1.8.0_66.jdk/Contents/Home/lib/packager.jar\r\nJorg-Prantes-MacBook-Pro:~ joerg$ cd ~es/elasticsearch-2.1.0\r\nJorg-Prantes-MacBook-Pro:elasticsearch-2.1.0 joerg$ ./bin/elasticsearch\r\n[2015-12-10 14:37:28,445][INFO ][node                     ] [Kiden Nixon] version[2.1.0], pid[83532], build[72cd1f1/2015-11-18T22:40:03Z]\r\n[2015-12-10 14:37:28,446][INFO ][node                     ] [Kiden Nixon] initializing ...\r\n[2015-12-10 14:37:28,495][INFO ][plugins                  ] [Kiden Nixon] loaded [], sites []\r\n[2015-12-10 14:37:28,517][INFO ][env                      ] [Kiden Nixon] using [1] data paths, mounts [[/ (/dev/disk0s2)]], net usable_space [336.9gb], net total_space [931gb], spins? [unknown], types [hfs]\r\n[2015-12-10 14:37:30,217][INFO ][node                     ] [Kiden Nixon] initialized\r\n[2015-12-10 14:37:30,218][INFO ][node                     ] [Kiden Nixon] starting ...\r\n[2015-12-10 14:37:30,274][INFO ][transport                ] [Kiden Nixon] publish_address {127.0.0.1:9300}, bound_addresses {127.0.0.1:9300}, {[fe80::1]:9300}, {[::1]:9300}\r\n[2015-12-10 14:37:30,280][INFO ][discovery                ] [Kiden Nixon] elasticsearch/sr2IKPk7QnizIRE-2yquZQ\r\n[2015-12-10 14:37:33,305][INFO ][cluster.service          ] [Kiden Nixon] new_master {Kiden Nixon}{sr2IKPk7QnizIRE-2yquZQ}{127.0.0.1}{127.0.0.1:9300}, reason: zen-disco-join(elected_as_master, [0] joins received)\r\n[2015-12-10 14:37:33,317][INFO ][http                     ] [Kiden Nixon] publish_address {127.0.0.1:9200}, bound_addresses {127.0.0.1:9200}, {[fe80::1]:9200}, {[::1]:9200}\r\n[2015-12-10 14:37:33,317][INFO ][node                     ] [Kiden Nixon] started\r\n[2015-12-10 14:37:33,344][INFO ][gateway                  ] [Kiden Nixon] recovered [1] indices into cluster_state\r\n```"}}