Hi, Dishara Wijewardana <[email protected]> wrote in thread titled [Status Update] Apache Cassandra backend for Sling: > Hi Ian > > I started Sling launchpad and Cassandra Server as well. And uploaded the > bundle through management console from http://localhost:8080/system/console > . > When I try to start the bundle it does nothing and no error logs in the > back end as well. The I noticed following where me.prettyprint.* classes > cannot loaded and hence my bundle cannot start. So ideally my bundle only > contains it self only. Not included its dependencies. As I feel one > option is get a me.prettyprint.* jar and install that bundle (I am not sure > whether it also fails due to a similar reason). So what is the best > approach to this ?
If there is a Hector OSGi bundle (or the standard Jar has a OSGi MANIFEST.MF) then use that. If not you will need to embed the dependencies. If you embed the dependencies, you are going to have to resolve all of Hectors dependencies, and TBH, if the Hector OSGi bundle doesnt embed its dependencies, they you will have to do that anyway. Personally, I would embed since nothing else is going to be using Hector. Have a look at ./contrib/extensions/cache/ehcache/pom.xml to see how its done. <Embed-Dependency>ehcache,jsr107cache,backport-util-concurrent</Embed-Dependency> embeds the artefacts of the same name. Best Regards Ian > > > Symbolic Name org.apache.sling.cassandra > Version 0.0.1.SNAPSHOT > Bundle Location inputstream:org.apache.sling.cassandra-0.0.1-SNAPSHOT.jar > Last Modification Mon Aug 05 05:26:16 IST 2013 > Description Provides a ResourceProvider implementation supporting Apache > Cassandra based resources. > Start Level 20 > Exported Packages > org.apache.sling.cassandra.resource.provider,version=0.0.1.SNAPSHOT > org.apache.sling.cassandra.resource.provider.mapper,version=0.0.1.SNAPSHOT > org.apache.sling.cassandra.resource.provider.util,version=0.0.1.SNAPSHOT > Imported Packages com.sun.org.apache.xerces.internal.impl.dv.util -- > Cannot be resolved and overwritten by Boot Delegation > javax.servlet.http from org.apache.felix.http.jetty (1) > me.prettyprint.cassandra.model,version=[1.0,2) -- Cannot be resolved > me.prettyprint.cassandra.serializers,version=[1.0,2) -- Cannot be resolved > me.prettyprint.hector.api,version=[1.0,2) -- Cannot be resolved > me.prettyprint.hector.api.beans,version=[1.0,2) -- Cannot be resolved > me.prettyprint.hector.api.ddl,version=[1.0,2) -- Cannot be resolved > me.prettyprint.hector.api.factory,version=[1.0,2) -- Cannot be resolved > me.prettyprint.hector.api.query,version=[1.0,2) -- Cannot be resolved > org.apache.sling.api.resource,version=[2.3,3) from org.apache.sling.api (98) > org.slf4j,version=[1.5,2) from slf4j.api (6) > Manifest Headers Bnd-LastModified: 1375238009819 > Build-Jdk: 1.6.0_26 > Built-By: dishara > Bundle-Description: Provides a ResourceProvider implementation supporting > Apache Cassandra based resources. > Bundle-ManifestVersion: 2 > Bundle-Name: Apache Sling Cassandra Resource Provider > Bundle-SymbolicName: org.apache.sling.cassandra > Bundle-Version: 0.0.1.SNAPSHOT > Created-By: Apache Maven Bundle Plugin > Export-Package: org.apache.sling.cassandra.resource.provider.mapper; > version="0.0.1.SNAPSHOT", org.apache.sling.cassandra.resource.provider; > uses:="javax.servlet.http, me.prettyprint.hector.api, > org.apache.sling.api.resource, > org.apache.sling.cassandra.resource.provider.mapper"; > version="0.0.1.SNAPSHOT", > org.apache.sling.cassandra.resource.provider.util; > uses:="me.prettyprint.cassandra.model, > me.prettyprint.cassandra.serializers, me.prettyprint.hector.api, > me.prettyprint.hector.api.query, org.apache.sling.api.resource, > org.apache.sling.cassandra.resource.provider"; version="0.0.1.SNAPSHOT" > Import-Package: com.sun.org.apache.xerces.internal.impl.dv.util, > javax.servlet.http, me.prettyprint.cassandra.model; version="[1.0, 2)", > me.prettyprint.cassandra.serializers; version="[1.0, 2)", > me.prettyprint.hector.api; version="[1.0, 2)", > me.prettyprint.hector.api.beans; version="[1.0, 2)", > me.prettyprint.hector.api.ddl; version="[1.0, 2)", > me.prettyprint.hector.api.factory; version="[1.0, 2)", > me.prettyprint.hector.api.query; version="[1.0, 2)", > org.apache.sling.api.resource; version="[2.3, 3)", org.slf4j; > version="[1.5, 2)" > Manifest-Version: 1.0 > Tool: Bnd-2.1.0.20130426-122213
