I'm trying to install a custom plugin I'm working on which includes CoreNLP. I'm getting the jar hell error with the following jars:
Caused by: java.lang.IllegalStateException: jar hell!
class: com.sun.xml.bind.Locatable
jar1: /usr/share/elasticsearch/plugins/.installing-6011384642713418918/jaxb-impl-2.4.0-b180830.0438.jar
jar2: /usr/share/elasticsearch/plugins/.installing-6011384642713418918/jaxb-core-2.3.0.1.jar
at org.elasticsearch.bootstrap.JarHell.checkClass(JarHell.java:277)
at org.elasticsearch.bootstrap.JarHell.checkJarHell(JarHell.java:190)
at org.elasticsearch.plugins.PluginsService.checkBundleJarHell(PluginsService.java:503)
... 12 more
Your plugin seems to have 2 jaxb implementations (different versions and artifact names). You should fix it by checking the dependency tree of your plugin.
I'm only using coreNLP so I'm not sure whats happening. Here's the dependency section of my pom.xml file. I'm following this exactly, I only bumped the ES and coreNLP versions.
I probably can't do that because they're both explicitly listed as dependencies in CoreNLP's pom.xml. Anyway, I found another alternative to what I'm doing so I don't need to fix this. Thanks for your help though.
Apache, Apache Lucene, Apache Hadoop, Hadoop, HDFS and the yellow elephant
logo are trademarks of the
Apache Software Foundation
in the United States and/or other countries.