Hi, I have written Transport client in camel to connect Elastic search 5.1.1 server, but when deploying in to Jboss fuse container, I am getting the below error.
This looks the package org.apache.lucene.search is available in both lucene-misc-6.3.0.jar and lucene-core-6.3.0.jar jar files which is not allowed in jboss fuse to deploy and resolve.
Error logs from Fuse container:-
Caused by: org.osgi.framework.BundleException: Uses constraint violation. Unable to resolve bundle revision wrap_file__d_workspace_localrepo-v1_org_apache_lucene_lucene-misc_6.3.0_lucene-misc-6.3.0.jar [410.0] because it exports package 'org.apache.lucene.search' and is also exposed to it from bundle revision wrap_file__d_workspace_localrepo-v1_org_apache_lucene_lucene-core_6.3.0_lucene-core-6.3.0.jar [405.0] via the following dependency chain:
Interesting to know.
So I think we should fix duplicated packages in our code base (I'm speaking about elasticsearch).
For example, some plugins are using the same package name in discovery-ec2 and repository-s3. I know it's not really an issue when you run elasticsearch as they are loaded by different class loaders but we should fix it to conform with this split package policy then.
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.