Hi Ian,
I did so. But then I am facing more dependencies to be resolved. In import
package I have only *. Which means all importing (will have to change that
also, but hard to figure out which  can be removed.). I added hector
dependency and added Transitive =true. Doesn't this Transitive =true add
hector's transitive dependencies ?


  <Import-Package>
                            *
  </Import-Package>
  <Embed-Transitive>*true*</Embed-Transitive>
  <Embed-Dependency>hector-core</Embed-Dependency>
   </instructions>

com.eaio.uuid -- Cannot be resolved
com.ecyrd.speed4j -- Cannot be resolved
com.google.common.base -- Cannot be resolved
com.google.common.collect -- Cannot be resolved
com.sun.org.apache.xerces.internal.impl.dv.util -- Cannot be resolved and
overwritten by Boot Delegation
com.sun.xml.fastinfoset.stax -- Cannot be resolved and overwritten by Boot
Delegation
javax.management from org.apache.felix.framework (0)
javax.naming from org.apache.felix.framework (0)
javax.naming.spi from org.apache.felix.framework (0)
javax.security.auth from org.apache.felix.framework (0)
javax.security.auth.callback from org.apache.felix.framework (0)
javax.security.auth.login from org.apache.felix.framework (0)
javax.servlet.http from org.apache.felix.http.jetty (1)
javax.xml.bind from org.apache.felix.framework (0)
javax.xml.stream from org.apache.felix.framework (0)
org.apache.cassandra.thrift -- Cannot be resolved
org.apache.commons.lang,version=[2.4,3) from org.apache.commons.lang (85)
org.apache.commons.lang.builder,version=[2.4,3) from
org.apache.commons.lang (85)
org.apache.commons.lang.math,version=[2.4,3) from org.apache.commons.lang
(85)
org.apache.commons.pool.impl,version=[1.5,2) -- Cannot be resolved
org.apache.sling.api.resource,version=[2.3,3) from org.apache.sling.api (98)
org.apache.thrift -- Cannot be resolved
org.apache.thrift.protocol -- Cannot be resolved
org.apache.thrift.transport -- Cannot be resolved


On Mon, Aug 5, 2013 at 1:01 PM, Ian Boston <[email protected]> wrote:

> 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
>



-- 
Thanks
/Dishara

Reply via email to