Re: Error trying jackrabbit examples: "method (I)V not found" running FirstHop example

2011-09-08 Thread chetan mehrotra
Looks like there is an older version of commons-collections jar. What is the version of commons-collection jar is present in your webapp.? It should be 3.2.1 Chetan Mehrotra On Fri, Sep 9, 2011 at 11:20 AM, Markus Meixner < markus.meix...@optimizeit.ch> wrote: > Hi everybody > &

Re: Error trying jackrabbit examples: "method (I)V not found" running FirstHop example

2011-09-09 Thread chetan mehrotra
class") org.apache.commons.collections.BeanMap.getResource("/org/apache/commons/collections/ArrayStack.class") To see from where the class is getting pickedup Chetan Mehrotra [1] http://snippets.dzone.com/posts/show/3719

Improving Jackrabbit integration within OSGi and other managed environment

2012-09-05 Thread Chetan Mehrotra
worry about services going away at runtime. Would such a feature be useful to be part of JR Core. Thoughts? Chetan Mehrotra [1] https://github.com/chetanmeh/jackrabbit/tree/osgi-factory [2] https://github.com/chetanmeh/jackrabbit/compare/osgi-factory [3] http://jackrabbit.apache.org/api/2.4/org

Re: Improving Jackrabbit integration within OSGi and other managed environment

2012-09-06 Thread Chetan Mehrotra
> This looks very interesting to me and should rather be targeted at dev@ > instead of user@. I suggest you repost this there. Also I'd create a JCR Done. Send it to dev. Would continue discussion there Chetan Mehrotra On Thu, Sep 6, 2012 at 3:20 PM, Michael Dürig wrote: &g

Re: No session returned on repository.login

2012-09-25 Thread Chetan Mehrotra
Looks like you missed attaching the source code of the LoginModule. Can you attach that also? Chetan Mehrotra On Mon, Sep 24, 2012 at 7:02 PM, connuser1 connuser1 wrote: > Hi > > I am facing a problem wherein when I login to the repository, I get null > returned as jcrSession. For

Re: Where are users stored in the repository?

2012-10-13 Thread Chetan Mehrotra
Chetan Mehrotra

Re: Format and Consistency of Log statements in Jackrabbit

2014-07-07 Thread Chetan Mehrotra
ysis tool? How are logs analyzed (visual inspection, home-grown tool/program, external open-source/commercial tool)? Mostly the logs are seen in a text editor/viewer :). Depending on requirements people can use Commercial products like Splunk [2] or Logstash [3] Chetan Mehrotra [1] http://logba

Re: OakRepositoryFactory / non-osgi setting

2014-07-13 Thread Chetan Mehrotra
/fixtures [2] or docs [3] for programatically constructing Oak instance Chetan Mehrotra [1] https://github.com/apache/jackrabbit-oak/tree/trunk/oak-pojosr [2] https://github.com/apache/jackrabbit-oak/blob/trunk/oak-run/src/main/java/org/apache/jackrabbit/oak/fixture/OakFixture.java#L378 [3] http

Re: OakRepositoryFactory / non-osgi setting

2014-07-14 Thread Chetan Mehrotra
in a user friendly way. For now repository just ensures that concurrent use does not happen by taking file locks. For this would be helpful to file a JIRA issue. Chetan Mehrotra

Re: oak; seeing Uniqueness constraint violated for key XX

2014-07-29 Thread Chetan Mehrotra
With OAK-1997 the exception message should provide more details. Can you try with latest from 1.x branch? Chetan Mehrotra On Tue, Jul 29, 2014 at 12:56 PM, Torgeir Veimo wrote: > Just starting up with a new repository now gives me an exception > during repository configu

Re: oak; seeing Uniqueness constraint violated for key XX

2014-07-29 Thread Chetan Mehrotra
you should not be adding them again. Instead new Jcr(oak).createRepository(); should be sufficient unless you want to add extra editors which are not registered by default. Can you try with above mode? Chetan Mehrotra On Tue, Jul 29, 2014 at 2:23 PM, Torgeir Veimo wro

Re: How to get total nodes in Oak repo

2014-08-07 Thread Chetan Mehrotra
"totalIndexSize" : 102437104, "indexSizes" : { "_id_" : 86902704, "_modified_-1" : 15027488, "_bin_1" : 449680, "_deletedOnce_1" : 24528, "_sdType_1"

Re: How to get total nodes in Oak repo

2014-08-13 Thread Chetan Mehrotra
35eeb3/raw/getChildCount.groovy /> getChildCount(session.workingNode) Chetan Mehrotra [1] https://gist.github.com/chetanmeh/2138c188a1bcc135eeb3 On Wed, Aug 13, 2014 at 8:06 PM, Andrew Khoury wrote: > Thanks Chetan, this really helped. > > This was for a tar based deployment.

Re: How to access a standalone Oak Server from a webapp?

2014-08-22 Thread Chetan Mehrotra
and some Felix bundles to construct repository in a non OSGi env. As of now #2 works fine and we use it for couple of integration test cases also. Just that it involves packaging of some extra jars Chetan Mehrotra [1] http://jackrabbit.apache.org/oak/docs/construct.html [2] https://github.com/apache

Re: OR child axis query fails in oak 1.1.5

2015-02-08 Thread Chetan Mehrotra
This was a regression introduced with OAK-2354 and later fixed with OAK-2427 in 1.1.6 release. Can you try with Oak 1.1.6 release Chetan Mehrotra On Mon, Feb 9, 2015 at 8:41 AM, Torgeir Veimo wrote: > It fails in 1.1.4 as well, but not in 1.1.3. > > On 9 February 2015 at 12:54, Torg

Re: oak shutdown, unstopped threads

2015-04-07 Thread Chetan Mehrotra
closed also. Can you create a issue for that? Chetan Mehrotra On Tue, Apr 7, 2015 at 6:08 PM, Torgeir Veimo wrote: > I run oak in a non-osgi environment (tomcat) and am seeing these on > webapp reload; > > SEVERE: The web application [/frontend] appears to have started a > th

Re: Unsatisfied bundle status for DocumentNodeStore

2015-08-02 Thread Chetan Mehrotra
can export that package via system packages extra of Felix. That should let oak-core bundle start. Chetan Mehrotra

Re: OakDirectory with cluster

2015-08-04 Thread Chetan Mehrotra
:async hidden node. So essentially by design we enforce that no concurrent indexing should happen and hence the use of NoLockFactory Chetan Mehrotra On Tue, Aug 4, 2015 at 5:40 PM, Shinichiro Abe wrote: > Hello, > > If I understand correctly, by OakDirectory, a Lucene index is placed as B

Re: OakDirectory with cluster

2015-08-04 Thread Chetan Mehrotra
which embeds Oak and Oak relies on host application for certain aspects like coordinating the jobs across cluster. Chetan Mehrotra

Re: get default Repository from webapp in my servlet

2015-08-12 Thread Chetan Mehrotra
AbstractRepositoryServlet would register the created repository instance in ServletContext against attribute named 'javax.jcr.Repository'. So in your servlet you can obtain the instance from ServletContext attribute Chetan Mehrotra On Wed, Aug 12, 2015 at 12:51 AM, Karsten Priegnitz w

Re: Alternative to PreExtractedTextProvider

2015-11-30 Thread Chetan Mehrotra
ots of internal to get in right. Instead of that you can make use of OSGI support without requiring your code to run in an OSGi container. For an example have a look at oak-standalone example [1] which is currently being developed (and as of now in working state) Chetan Mehrotra [1] https://github.com/

Re: [JackRabbit] - DAV session maintenance and JAAS login

2015-12-01 Thread Chetan Mehrotra
that helps! Chetan Mehrotra [1] https://docs.jboss.org/keycloak/docs/1.1.0.Final/userguide/html/ch08.html#jaas-adapter [2] https://github.com/keycloak/keycloak/blob/master/integration/adapter-core/src/main/java/org/keycloak/adapters/jaas/BearerTokenLoginModule.java#L9 On Thu, Nov 26, 2015 at 10:49 PM,

Re: Alternative to PreExtractedTextProvider

2015-12-01 Thread Chetan Mehrotra
o its better to keep FileDataStore and not store binary files in Mongo. So while performing migration/upgrade retain FileDataStore Just for completeness - You can generate the csv programatically. For e.g. when running in OSGi container and using Script Console you can use script at [1] Chetan Meh

Re: Issues running native Lucene queries

2016-02-25 Thread Chetan Mehrotra
need to rely on how oak-lucene maps JCR properties to Lucene Document properties. So would be interested to know the requirement here. You can achieve the same thing using std JCR query also Chetan Mehrotra

Re: Oak PropertyIndex on node name

2016-05-12 Thread Chetan Mehrotra
On Thu, May 12, 2016 at 5:15 PM, Giovanni L wrote: > I read you can build a > lucene index on a node name, and I was wondering if you could do the same > using a PropertyIndex > Currently that is not supported Chetan Mehrotra

Re: Oak PropertyIndex on node name

2016-05-13 Thread Chetan Mehrotra
Would suggest that you create an issue providing your requirement. So far we did not have any specific requirement where such things need to be supported by property index hence was not implemented there. Chetan Mehrotra On Fri, May 13, 2016 at 1:02 PM, Giovanni L wrote: > Thank you Cha

Re: Changes not visible in new sessions

2016-05-24 Thread Chetan Mehrotra
Is it a single node setup or a cluster? What is the persistence used TarMK or MongoMK Chetan Mehrotra On Tue, May 24, 2016 at 3:11 PM, Loicram Kro wrote: > Hi. > > I'm using oak in version 1.2.11. > I have a problem with visibility of changes in new sessions. > Steps whi

Re: Changes not visible in new sessions

2016-05-24 Thread Chetan Mehrotra
Then it should work as you expect. Can you share some code around how you create the JCR Session and perform the read/write operation Chetan Mehrotra On Tue, May 24, 2016 at 4:57 PM, Loicram Kro wrote: > It is a single node (author) with TarMK > > On 24 May 2016 at 12:15, Chetan

Re: Changes not visible in new sessions

2016-05-24 Thread Chetan Mehrotra
To be sure is your application is based on AEM or just a custom Sling based app? When you are performing a read is that preceded by invoking a query to find the resource? Chetan Mehrotra On Tue, May 24, 2016 at 9:05 PM, Loicram Kro wrote: > I don't create it explictly, it is created

Re: Changes not visible in new sessions

2016-05-25 Thread Chetan Mehrotra
based on property index regards Chetan Chetan Mehrotra On Wed, May 25, 2016 at 1:56 PM, Loicram Kro wrote: > AEM, > > Yes, we execute a questy which finds the resource by a property which was > already saved on a resource (even before the first request) > > On 25 May 2016 at 05:1

Re: Use FileDataStore with NFS SAN (NAS)

2016-11-10 Thread Chetan Mehrotra
operation should be fast i.e. O(1) instead of being a function of size Chetan Mehrotra On Thu, Nov 10, 2016 at 10:25 PM, hsp wrote: > Hi, > > We use persistence with DataStore using a path that maps to a remote NAS, > using NFS. > With the default c

Re: Use FileDataStore with NFS SAN (NAS)

2016-11-10 Thread Chetan Mehrotra
Hi Clay, Looking at the modified file [1] the change was done in rename flow. So first temporary file gets created and then in new impl its copied to final file via channel copy Chetan Mehrotra [1] http://jackrabbit.510166.n4.nabble.com/file/n4665414/FileDataStore.java On Fri, Nov 11, 2016 at

Re: oak-standalone with --mongo unable to start repository

2016-12-17 Thread Chetan Mehrotra
Hi Mathias, Thanks for reporting it. Fixed the issue as part of OAK-5333. Can you try out the build from latest trunk again? Chetan Mehrotra On Sat, Dec 17, 2016 at 9:26 PM, mathiasconradt wrote: > Clay, thanks for your reply. > > Dependencies look good. Maven states this dependency

Re: How to access a Jackrabbit Oak repository via WebDAV?

2016-12-17 Thread Chetan Mehrotra
On Sat, Dec 17, 2016 at 5:32 PM, mathiasconradt wrote: > I was missing the workspace name (default) in the URL. Updated the readme (1774792) to include workspace name in webdav url. Chetan Mehrotra

Re: FileVault for import and export of JCR?

2017-01-05 Thread Chetan Mehrotra
Have a look at JCRVLT-151 where such an API is being worked upon Chetan Mehrotra On Fri, Jan 6, 2017 at 5:08 AM, Lance Dolan wrote: > UPDATE: > > I have discovered the file /vault-cli/target/appassembler/bin/vlt after > building FileVault from source, and that appears to give me

Re: Assessing Oak: content delivery, security, deployment & more

2017-02-15 Thread Chetan Mehrotra
basis would be fine. Also do have a look at Sling [1] which can be deployed as a war > 4. Transactions. Is it correct that with JTA I can have transactions > that span both JPA and Oak scopes? What about different deployment > models (most interestingly server)? This is currently not supported i.e.

Re: LuceneIndexProviderService copyonread/write running into too much open file handles

2017-03-28 Thread Chetan Mehrotra
e for you to open an issue and attach lsof output (possibly scrubbing private info). Want to see the file handle pattern Chetan Mehrotra

Re: LuceneIndexProviderService copyonread/write running into too much open file handles

2017-03-28 Thread Chetan Mehrotra
On Tue, Mar 28, 2017 at 8:02 PM, Dirk Rudolph wrote: > Issue created with the lsof output attached here: > > https://issues.apache.org/jira/browse/OAK-5995 > <https://issues.apache.org/jira/browse/OAK-5995> Would follow up on the issue then Chetan Mehrotra

Improving Oak Documentation

2017-03-29 Thread Chetan Mehrotra
missing and which specific aspect needs improvement. Chetan Mehrotra [1] https://jackrabbit.apache.org/oak/docs [2] https://issues.apache.org/jira/browse/OAK-5998

Re: ContentRepository handle

2017-04-07 Thread Chetan Mehrotra
Also have a look at standalone example [1] which demonstrates using Oak in a Spring Boot application Chetan Mehrotra [1] https://github.com/apache/jackrabbit-oak/tree/trunk/oak-examples/standalone

Re: Using Oak for distributed system

2017-05-18 Thread Chetan Mehrotra
can we select what version to use? I imagine we can with Secondary Node > solution. For that you need to rely on JCR API. At Secondary Node level its all content Chetan Mehrotra [1] https://jackrabbit.apache.org/oak/docs/migration.html#Sidegrade

Re: Oak and Mongo

2017-05-22 Thread Chetan Mehrotra
< 2.10 you should not be getting this error Chetan Mehrotra

Re: Oak Index on custom Node Type - Updated

2017-05-25 Thread Chetan Mehrotra
You would need to create a Lucene index definition. See [1] for details Chetan Mehrotra [1] https://jackrabbit.apache.org/oak/docs/query/lucene.html On Thu, May 25, 2017 at 12:07 PM, techie2k wrote: > Hi, > > I have custom node type: > > [et:document] > nt:file, mix:titl

Re: Concurrrent use of Repositories

2017-06-05 Thread Chetan Mehrotra
Mongo or some database backed by DataStore Chetan Mehrotra

Re: Concurrrent use of Repositories

2017-06-06 Thread Chetan Mehrotra
As Ioan also mentioned SegmentNodeStore only supports access from a single process. So if you want to use it then have the logic to handle upload also run from the same process to keep setup simple. Chetan Mehrotra

Re: node.hasNodes() ,node.getNodes() and removing nodes with node.remove()

2017-08-06 Thread Chetan Mehrotra
> Every addition of a child node implies a change to the parent node Document Looks like the parent nodetype is nt:unstructured which requires orderable children. If you do not require that use a nodetype like oak:Unstructured. See [1] for some background Chetan Mehrotra [1] ht

Re: node.hasNodes() ,node.getNodes() and removing nodes with node.remove()

2017-08-08 Thread Chetan Mehrotra
cts which would need to be resolved. Also for inserting find the last entry would involve iterating over all previous entries. In general having an orderable list of large size would pose problem and should be avoided Chetan Mehrotra

Re: slowness accessing lucene results

2017-08-29 Thread Chetan Mehrotra
number of rows accessed may be large but only few of them qualify all criteria at query engine level. This can be confirmed by query explanation output 3. Or lots of filtering happening due to access control. Does the performance remains same with admin user? Chetan Mehrotra On Mon, Aug 28, 2017 at

Re: slowness accessing lucene results

2017-08-30 Thread Chetan Mehrotra
s a workaround you can set 'entryCount' property to some high value such that this lucene index is not preferred Chetan Mehrotra On Wed, Aug 30, 2017 at 7:05 PM, Jason Bailey wrote: > Hi Chetan, > > For the lucene index provider we have the following configured > Enabled: &

Re: slowness accessing lucene results

2017-08-31 Thread Chetan Mehrotra
I have backported the fix for OAK-6333 to 1.2 branch also. Would be part of Oak 1.2.28 Chetan Mehrotra On Wed, Aug 30, 2017 at 8:18 AM, Jason Bailey wrote: > Yes, that's how I patched the problem. You've answered my question by > explaining that the index value is not the c

Re: Apache Jackrabbit OAK - Sharding DocumentNodeStore across cluster by node path

2017-09-11 Thread Chetan Mehrotra
Path based sharding is currently not implemented. Some initial work is done in OAK-3401/OAK-3426 but its still not part of trunk. Are you looking for sharding to scale out writes or for geo distributed setups? Chetan Mehrotra On Sun, Sep 10, 2017 at 6:54 AM, Jon McPherson wrote: > I

Re: Apache Jackrabbit OAK - Sharding DocumentNodeStore across cluster by node path

2017-09-13 Thread Chetan Mehrotra
ble approach. In such a case you would need to programatically construct the Repository instance per Mongo server to connect to. Going forward once we OAK-3426 implemented this would be much simpler Chetan Mehrotra

Re: Oak Strongly Consistency (On Demand?)

2017-10-21 Thread Chetan Mehrotra
ase where you would like to do explicit "sync"? regards Chetan Chetan Mehrotra On Tue, Oct 17, 2017 at 5:04 AM, Alexey Pechenev wrote: > Hello everyone, > > I'am developing an application with HA requirement which uses Oak (MongoMK). > So in our system we have N Oak

Re: Jackrabbit Oak : java.lang.NoSuchMethodException: org.springframework.boot.loader.jar.JarEntry.getUrl()

2018-02-13 Thread Chetan Mehrotra
This is now fixed with OAK-7265. Rajesh can you try with a build from trunk and see if this works for you? Would then backport it to 1.8 branch Chetan Mehrotra On Tue, Feb 13, 2018 at 4:48 PM, rajesh wrote: > This is my custom application. I just used the files from the Standalone > p

Re: oak-pojosr not in maven for oak 1.8.2

2018-03-05 Thread Chetan Mehrotra
Looks like its marked as skip from deployment since starting [1]. Opened https://issues.apache.org/jira/browse/OAK-7304 to track that Chetan Mehrotra [1] https://github.com/apache/jackrabbit-oak/blob/trunk/oak-pojosr/pom.xml#L34 On Mon, Mar 5, 2018 at 11:26 PM, McIntyre, Kevin wrote: >