Fuse: Exception while using mongodb connector
Hi All, I've created sample project to connect to mongodb. while performing osgi:install of bundle, below exception is thrown. Could someone help here.
Error:
Unresolved constraint in bundle org.fusebyexample.mq-fabric.camel-consumer [295]: Unable to resolve 295.0: missing requirement [295.0] osgi.wiring.package; (&(osgi.wiring.package=com.mongodb)(version>=2.12.0)(!(version>=3.0.0)))
camel-context.xml:
POM.XML (Camel part):
org.apache.camel camel-mongodb 2.15.1.redhat-620133 org.mongodb mongo-java-driver 2.12.4
Manifest (mongo-java-driver):
Manifest-Version: 1.0 Ant-Version: Apache Ant 1.9.2 Created-By: 1.7.0_51-b13 (Oracle Corporation) Bundle-License: http://www.apache.org/licenses/LICENSE-2.0.txt Bundle-ManifestVersion: 2 Bundle-Name: MongoDB Java Driver Bundle-SymbolicName: org.mongodb.mongo-java-driver Bundle-Version: 2.12.4.RELEASE Import-Package: javax.management,javax.net,javax.net.ssl,javax.securit y.sasl,javax.security.auth.login,javax.security.auth,org.ietf.jgss Export-Package: com.mongodb;version="2.12.4.RELEASE",com.mongodb.io;ve rsion="2.12.4.RELEASE",com.mongodb.util;version="2.12.4.RELEASE",com. mongodb.gridfs;version="2.12.4.RELEASE",org.bson;version="2.12.4.RELE ASE",org.bson.util;version="2.12.4.RELEASE",org.bson.util.annotations ;version="2.12.4.RELEASE",org.bson.types;version="2.12.4.RELEASE",org .bson.io;version="2.12.4.RELEASE"
Responses