Test Failure:mixin nodetype mix:simpleVersionable is missing

2010-07-14 Thread Subash Chaturanga
Hi, $subject occurs in simple version test.This test failure says repository does not support versioning But I have set the following to true OPTION_VERSIONING_SUPPORTED = true OPTION_SIMPLE_VERSIONING_SUPPORTED = true It will be really great if anyone can help me to solve this problem Regards

Does JackRabbit support the method QueryObjectModel.getStatement()

2010-07-04 Thread Subash Chaturanga
Hi , $subject ? I got a checkout from the jackrabbit trunk and saw UnsupportedOperationException thrown in QueryObjectModel.getStatement() method in QueryObjectModelImpl class in JackRabbit. I also notice that there is no such test class to test the Comparison Constraint in javax.jcr.query.qom

Can we convert a query in QOM format to a string query statement -in JCR

2010-06-28 Thread Subash Chaturanga
Hi all, QueryObjectModelFactory can create a query as a QOM instance.Also we can simply create a query statement via a QueryManager , instead of a QOM. $subject ? Suppose I can only support query type SQL at this moment and I have implemented that. I want to use QueryManager.createQuery code

Can anybody explain this (related to javax.jcr.query)

2010-06-21 Thread Subash Chaturanga
In JCR Queries ,say for instance select * from nt:resource Does this means select all nodes which has the node type resource.As I am a new commer ,it is really great if anyone can tell me how to query it? I went through the JSR 283 spec ,but couldn't get an exact meaning. Does Selectors means

Re: Can anybody explain this (related to javax.jcr.query)

2010-06-21 Thread Subash Chaturanga
Thanks Alex for your immediate reply. Can JCR query do arbitrary number of joins with say , | != etc ,per one query.If so it will be a bit hard job to implement that,isn'i it? In the JCR implementation what is to put ,or what is the usage of empty interfaces like JoinCondition, Constraint,

javax.jcr.nodetype tests failed due to workspace doesnt contain any test data

2010-06-16 Thread Subash Chaturanga
Hi,when run the javax.jcr.nodetype test classes ,all classes except NodeTypeCreationTest ,failed due to workspace doesnt contain any test data at /testdata. It will be really helpful if anyone can tell , how to overcome from this?

Re: How to use Node and Property DefinitionTemplates to create a NodeTypeTemplate

2010-06-15 Thread Subash Chaturanga
Thanks for your reply Alex , Yes ,but my prob is where should I keep the list.Lists asks from NodeTypeTemplate . NodeTypeManager can create any number of NodeTypeTemplates(with or with out a definition) . If i maintain a List in NodeTypeManager then how can i return Definition List asked from

Re: How to use Node and Property DefinitionTemplates to create a NodeTypeTemplate

2010-06-15 Thread Subash Chaturanga
Hi ,Thanks Alex Though i might not able to communicate my problem to you , I was able to get exactly what i wanted by the piece of code you gave me .It worked.Thanks a lot Regards /Subash

How to use Node and Property DefinitionTemplates to create a NodeTypeTemplate

2010-06-14 Thread Subash Chaturanga
Hi All , In JCR 2 ; javax.jcr.nodetype package When NodeTypeManager wants to register a NodeType ,it needs a NodeTypeTemplate to be passed to registerNodeType method. In NodeTypeManager.createNodeTypeTemplate(NodeTypeDefinition nodeTypeDefinition) we can set the template according to the given

Re: problem with workspace when testing with JCR TCK

2010-05-24 Thread Subash Chaturanga
Hi, Yes i figured out the class TestContentLoader .But still in the test class org.apache.jackrabbit.test.api.SerializationTest I am still getting exceptions due to not having data at /testdata/serialization/source.But in the above class TestContentLoader doesnt load any data called

possibility of passing JCR TCK tests

2010-05-17 Thread Subash Chaturanga
Hi , I had an experience of pass of some tests in a package that i have not implemented .May be those are tests which have tests dependent on other packages that i have already implemented and tested successfully. So I just wanna know that ,if my JCR TCK passes a test ,that means I am done with

problem with workspace when testing with JCR TCK

2010-05-13 Thread Subash Chaturanga
Hi, I'am Testing a repository JCR implementation with JCR TCK .I was able to pass some test cases of some test classes. When testing with RootNodeTest , RepositoryLoginTest and some other test classes all tests fails without error saying Workspace does not contain any test data .If anyone can

Problem with JCR TCK

2010-03-22 Thread Subash Chaturanga
Hi i am subash. I tried to run the JCR TCK to test a JCR implementation.(here i have only implemented javax.jcr package only and wanted to test it) so I put all required jars +my JCR implementation required jars And TCK runs successfully. *In every Run it gives an error : failed to get