On Tue, Jul 23, 2013 at 5:32 PM, Dishara Wijewardana <
ddwijeward...@gmail.com> wrote:

>
>
> On Mon, Jul 22, 2013 at 1:56 PM, Ian Boston <i...@tfd.co.uk> wrote:
>
>> Hi Dishara,
>>
>> The Unit test coverage sounds great. I will pull the code and review
>> today.
>>
>>
>> Have you tried loading the bundle into a running Sling instance ?
>
> Not yet. I will try that out and let you know in one of following ways
> Thanks.
>
>>
>> Once you have built it you can load in 2 ways:
>>
>> method A
>>
>> mvn clean install sling:install
>>
>> The sling:install will post the Jar into the OSGi container over HTTP and
>> cause it to start.
>>
> 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 ?


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



>
>>
>> method B
>>
>> Goto http://localhost:8080/system/console
>>
>> select the bundle tab and install the bundle by uploading.
>>
>> If you monitor the logs you should see no errors, the bundle should
>> register and you should be able to map cassandra read only to somewhere in
>> the resource tree.
>>
>
Can you explain in a  bit more detail how  I should map a cassandra
resources from sling browser  http://localhost:8080/.explorer.html ? . I
can add different JCR node types. How my cassandra node type get registered
here. Does it load all resource providers from reflection when I
implemented the provider interface.





>
>> Best Regards
>> Ian
>>
>>
>> On 21 July 2013 13:08, Dishara Wijewardana <ddwijeward...@gmail.com>
>> wrote:
>>
>> > On Sun, Jul 21, 2013 at 5:32 PM, Dishara Wijewardana <
>> > ddwijeward...@gmail.com> wrote:
>> >
>> > >
>> > >
>> > > On Fri, Jul 19, 2013 at 2:35 PM, Ian Boston <i...@tfd.co.uk> wrote:
>> > >
>> > >> Hi,
>> > >>
>> > >>
>> > >> On 19 July 2013 03:20, Dishara Wijewardana <ddwijeward...@gmail.com>
>> > >> wrote:
>> > >>
>> > >> > Hi Ian
>> > >> > This is regarding the sub tasks completion  of the project
>> according
>> > to
>> > >> the
>> > >> > time line.
>> > >> >
>> > >> > I have my code locally, but yet to do some completion with some
>> > >> stuff(one
>> > >> > of them is the ongoing discussion on listChildren).
>> > >> > After that from API point of view implementation around Cassandra
>> > >> Resource
>> > >> > Provider and Resource will be finish. And I have to add some more
>> > JUnit
>> > >> > tests(have local code in to some extent already, will commit them
>> once
>> > >> all
>> > >> > done around this).
>> > >> >
>> > >> > So after that (after mid term)  what I have to do is  enhance the
>> > >> provider
>> > >> > implementation  to  do READ operations with access control. My
>> idea is
>> > >> to
>> > >> > finish that also before the mid term. I was kind of got stuck in
>> some
>> > >> OSGi
>> > >> > stuff last days ;-).  And I will make sure I will have JUnit tests
>> to
>> > >> cover
>> > >> > all the implementations before the midterm.
>> > >> >
>> > >>
>> > >> Yes that is fine.
>> > >> Before adding ACLs I would like to have the code running inside
>> Sling,
>> > >> inside OSGi connected to a Cassandra instance so that we can do some
>> > basic
>> > >> tests over http using Curl.
>> > >>
>> > >> Perhaps you are there already? Let me know when you are ready and
>> I'll
>> > >> give
>> > >> it a go ?
>> > >>
>> > >
>> > > Hi Ian,
>> > > That is great and +1. In fact now the code is there and I have
>> completed,
>> > > rest of the implementation on normal READ and commited.
>> > >
>> > > I have added 3 more tests to cover the core implementation.  The tests
>> > are
>> > > running which covers add/read nodes, list children,iterate/iterable
>> > > children and get parent related stuff.
>> > >
>> >
>> > Correction . It should be 4 more tests. Now we have 5 tests all together
>> > which covers above aspects. We should write more test around Cassandra
>> > Resource. Will work on that as well.
>> >
>> > Please let me know if any issues come across when you run this in the
>> sling
>> > container. Excited to see whether it works in there :-).
>> >
>> >
>> > > And I have made the changes you mentioned. So now resources will not
>> get
>> > > loaded unless we do a API call with the resource.
>> > >
>> > >
>> > >>
>> > >>
>> > >> > If you would like this approach (or unless please provide your
>> > feedback
>> > >> on
>> > >> > what needs to be done before midterm), please advice me on how to
>> > >> approach
>> > >> > on READ with access control. Can I do it and test it with keeping
>> my
>> > >> code
>> > >> > in Google Code still ?  And please add if I have missed anything.
>> > >> >
>> > >> > On Thu, Jul 4, 2013 at 11:13 PM, Dishara Wijewardana <
>> > >> > ddwijeward...@gmail.com> wrote:
>> > >> >
>> > >> > > Hi Ian,
>> > >> > > I have refactored almost all the code review changes requested.
>> In
>> > the
>> > >> > > process of the rest of the implementation.
>> > >> > >
>> > >> > > On Wed, Jul 3, 2013 at 12:52 PM, Bertrand Delacretaz <
>> > >> > > bdelacre...@apache.org> wrote:
>> > >> > >
>> > >> > >> Hi Dishara,
>> > >> > >>
>> > >> > >> On Tue, Jul 2, 2013 at 6:51 PM, Dishara Wijewardana
>> > >> > >> <ddwijeward...@gmail.com> wrote:
>> > >> > >> > ...Does each bundle in sling made to run their junit tests
>> > >> separately
>> > >> > >> at build
>> > >> > >> > time...
>> > >> > >>
>> > >> > >> Could you start new threads with new subject lines when you
>> start a
>> > >> > >> new question or discussion?
>> > >> > >>
>> > >> > >> Otherwise it's very hard to find things in our mailing list
>> > archives.
>> > >> > >>
>> > >> > >> OK. That's a good idea. I will follow that.
>> > >> > >
>> > >> > >
>> > >> > >> Thanks, and keep up the good work!
>> > >> > >> -Bertrand
>> > >> > >>
>> > >> > >
>> > >> > >
>> > >> > >
>> > >> > > --
>> > >> > > Thanks
>> > >> > > /Dishara
>> > >> > >
>> > >> >
>> > >> >
>> > >> >
>> > >> > --
>> > >> > Thanks
>> > >> > /Dishara
>> > >> >
>> > >>
>> > >
>> > >
>> > >
>> > > --
>> > > Thanks
>> > > /Dishara
>> > >
>> >
>> >
>> >
>> > --
>> > Thanks
>> > /Dishara
>> >
>>
>
>
>
> --
> Thanks
> /Dishara
>



-- 
Thanks
/Dishara

Reply via email to