Re: How to get the repository name

2012-08-17 Thread Bhathiya Jayasekara
get > all > the repository descriptors, including the name. > With this, am I supposed to get an html page but not a json string? Thanks. --Bhathiya > > Regards, > Justin > > On Wed, Aug 15, 2012 at 9:37 AM, Bhathiya Jayasekara > wrote: > > > Hi all, > >

Re: How to get the repository name

2012-08-17 Thread Bhathiya Jayasekara
riptors.nfo and get > all > the repository descriptors, including the name. > > Regards, > Justin > > On Wed, Aug 15, 2012 at 9:37 AM, Bhathiya Jayasekara > wrote: > > > Hi all, > > > > Is there a way to get the repository name using curl? > > > > Thanks in advance. > > > > --Bhathiya > > > > > > >

Re: Unit Test Problem in OsgiConsoleTest class

2012-08-14 Thread Bhathiya Jayasekara
> Hi, > > (please don't cross-post such questions) > > On Sun, Aug 5, 2012 at 10:48 AM, Bhathiya Jayasekara > wrote: > > ...When I run OsgiConsoleTest class as a junit test (in eclipse), I get > > this[1] error. But when I add LINE_X in [2], it works fine. Is t

Build failure in testing/samples/integration-tests

2012-08-04 Thread Bhathiya Jayasekara
Hi all, I did a `maven clean install` in testing/samples/integration-tests. But I get following error in tests. I get the same error when I write my own test cases. What could be the problem? --- T E S T S --

Re: Testing with Sling - OsgiConsoleTest.java

2012-07-10 Thread Bhathiya Jayasekara
Hi, Thank you, but how do I fix that? Any config file available? Regards, --Bhathiya On Tue, Jul 10, 2012 at 8:05 PM, Robert Munteanu wrote: > Hi Bhathiya, > > > I'm trying to write some test cases with Sling. What I want is a > > transient > > sling launchpad. I read some documentation on Sli

Re: Plugging an external jackrabbit repository to Sling Launchpad

2012-07-10 Thread Bhathiya Jayasekara
ckrabbit-repository-to-Sling-Launchpad-tp4018547p4018873.html > Sent from the Sling - Users mailing list archive at Nabble.com. > -- -Bhathiya Jayasekara- http://www.google.com/profiles/tobhathiyaj http://www.facebook.com/#!/bhathiyaj1

Testing with Sling - OsgiConsoleTest.java

2012-07-10 Thread Bhathiya Jayasekara
Hi all, I'm trying to write some test cases with Sling. What I want is a transient sling launchpad. I read some documentation on Sling website and tried to run OsgiConsoleTest.java. I removed throw exception part and added a try-catch. When I run this, I expect it to run properly (tell me if I'm w

Re: Plugging an external jackrabbit repository to Sling Launchpad

2012-07-07 Thread Bhathiya Jayasekara
Hi Shilpa, I could solve the issue. (But I used Sling standalone launchpad but not the war one.) You can find steps here[1]. Thanks. --Bhathiya [1] http://summerwithairavata.blogspot.com/2012/07/plugging-external-jackrabbit-repository.html On Thu, Jul 5, 2012 at 11:35 PM, shilpa wrote: > H

Re: How to get only child nodes

2012-07-06 Thread Bhathiya Jayasekara
if isinstance(v, dict): > l.append(k + '/')* > else: > l.append(k) > return l > > > the bold part is test if value is dictionary (node), and appends / > > > > On Thu, Jul 5, 2012 at 4:12 PM, Bhathiya Jayasekar

Re: Saving an array as a property value

2012-07-01 Thread Bhathiya Jayasekara
t-the-slingpostservlet-servletspost.html#ManipulatingContent-TheSlingPostServlet%2528servlets.post%2529-ImportingContentStructures > > The JSON format should be able to take in the array in the form { > "paramName": ["value1", "value2"]} > > Sarwa

Re: Saving an array as a property value

2012-07-01 Thread Bhathiya Jayasekara
ot;value2"} > This is exactly what I was looking for. Thanks you very much. --Bhathiya > > > On Sun, Jul 1, 2012 at 2:10 PM, Bhathiya Jayasekara > wrote: > > > Hi, > > > > On Sun, Jul 1, 2012 at 11:33 PM, Raghu Sengar > >wrote: > > &g

Re: Saving an array as a property value

2012-07-01 Thread Bhathiya Jayasekara
;mypropname", values); > This is a JCR API method. What I want is to do this with Sling using an http request. Thanks. --Bhathiya > > On Sun, Jul 1, 2012 at 4:06 AM, Bhathiya Jayasekara > wrote: > > > Hi all, > > > > I want to save a String array as a value of

Re: Get UUID of a Node

2012-06-26 Thread Bhathiya Jayasekara
d be able to make requests > > GET /some/node/path.uuid.html > > to get uuid of /some/node/path > > > > On Tue, Jun 26, 2012 at 12:11 PM, Justin Edelson > wrote: > > > If the Node has the mix:referenceable mixin, you should see the UUID in > the > > JSON

Re: Get UUID of a Node

2012-06-26 Thread Bhathiya Jayasekara
Justin > > On Tue, Jun 26, 2012 at 11:58 AM, Bhathiya Jayasekara < > tobhathi...@gmail.com > > wrote: > > > Hi, > > > > Thank you for the reply. As I understand, what you say is to write an esp > > or something in server side to get UUID and respond to an ht

Re: Get UUID of a Node

2012-06-26 Thread Bhathiya Jayasekara
Tue, Jun 26, 2012 at 10:48 AM, Bhathiya Jayasekara < > tobhathi...@gmail.com > > wrote: > > > Hi all, > > > > How can I get the UUID of a Node with an http request? I searched a lot > but > > had no luck. :( > > > > Thank you. > > > >

Re: Plugging an external jackrabbit repository to Sling Launchpad

2012-06-25 Thread Bhathiya Jayasekara
ource [org.apache.sling.jcr.resource.internal.JcrResourceListener] Component instance could not be created, activation failed Thank you. --Bhathiya On Sun, Jun 24, 2012 at 12:51 PM, Bhathiya Jayasekara wrote: > Hi, > > Please read my inline comments. > > On Mon, Jun 18, 2012 at 4:27 PM, Felix Meschberger wrote: >

Re: Plugging an external jackrabbit repository to Sling Launchpad

2012-06-24 Thread Bhathiya Jayasekara
to > ask this question on the Jackrabbit Users list. > Sure, I'll ask ask them too. Thank you, -- Bhathiya > > Regards > Felix > > Am 16.06.2012 um 08:45 schrieb Bhathiya Jayasekara: > > > Hi Felix, > > > > Thank you very much for the reply. I had a loo

Re: Plugging an external jackrabbit repository to Sling Launchpad

2012-06-15 Thread Bhathiya Jayasekara
Thank you, --Bhathiya On Sat, Jun 16, 2012 at 3:13 AM, Felix Meschberger wrote: > Hi > > Looks like there is no Repository service available for the authentication > infrastructure. Check your log files for any error messages or such. > > > Regards > Felix > >

Access resources

2012-06-10 Thread Bhathiya Jayasekara
Hi all, I'm new to Sling and I have a question about accessing resources. I have followed *Discover Sling in 15 minutes - the Sling Launchpad [1] *tutorial. I would like to know if there is a direct method (may be by Sling API) to do what is done by curl in the tutorial (e.g. creating nodes), prog

Run Sling Examples

2012-05-22 Thread Bhathiya Jayasekara
er.ui* are preferred) Thank you, Regards. -- -Bhathiya Jayasekara- http://www.google.com/profiles/tobhathiyaj http://www.facebook.com/#!/bhathiyaj1