Jackgrp

2008-06-24 Thread abhankur
Please tell me the basic requirements for installing the Apache Jackrabbit 1.4 release. I have come across the 2 of them- JDK 1.5 or higher and Tomcat 6.0. Apart from these please let me know the other basic ones as well as the system requirements. If anyone can provide me a link to the whole i

Re: Similarity search question

2008-06-24 Thread jascpaint
Thanks for a quick reply, Alex. Yes, I've changed both in repository.xml and workspace.xml. Here is how my workspace.xml looks like: Does it look right to you? Alexander Klimetschek wrote: > > Are you sure you added to

Re: Multiple connections to database repository

2008-06-24 Thread Jukka Zitting
Hi, On Tue, Jun 24, 2008 at 11:07 PM, Jared Graber <[EMAIL PROTECTED]> wrote: > In that case my question comes down to this: Are you decided about accessing the underlying database from multiple Jackrabbit clients from different host/JVMs? How about using JCR-RMI instead of a remote database conn

Re: Deleting a node also delete version history of the node

2008-06-24 Thread Alexander Klimetschek
On Tue, Jun 24, 2008 at 11:02 PM, Pulla Venkat <[EMAIL PROTECTED]> wrote: > what should I do to delete version history also ? Call VersionHistory.removeVersion() for each version. Regards, Alex -- Alexander Klimetschek [EMAIL PROTECTED]

Re: Similarity search question

2008-06-24 Thread Alexander Klimetschek
Are you sure you added to the query handler in your workspace.xml? Maybe you changed only repository.xml (whose Workspace section acts only as a template for new workspaces) common glitch ;-) Regards, Alex On Tue, Jun 24, 2008 at 10:24 PM, jascpaint <[EMAIL PROTECTED]> wrote: > > Hi all, > I

Deleting a node also delete version history of the node

2008-06-24 Thread Pulla Venkat
Hi, I am trying to understand the node deletion in jackrabbit. we have scenarios for deleting nodes which should delete version history associated with the node. Node.remove() -- Method in javax.jcr.Item Interface [ inherited by javax.jcr.Node interface ] Does the above method remove the vers

Similarity search question

2008-06-24 Thread jascpaint
Hi all, I am currently testing out similarity search and rep:similar function as per http://wiki.apache.org/jackrabbit/SimilaritySearch. However I keep getting javax.jcr.query.InvalidQueryException: Unsupported function: rep:similar Could anyone please tell me what I am doing wrong here? I use J

Re: Can anyone explain

2008-06-24 Thread Alexander Klimetschek
On Tue, Jun 24, 2008 at 5:41 PM, Wade Girard <[EMAIL PROTECTED]> wrote: > I think that I am confusing the term repository with workspace here. Yes, looking at it again, you were. No problem, though ;-) > Can I just specify one workspace as a default workspace, thus removing the > requirement to n

Re: Can anyone explain

2008-06-24 Thread Wade Girard
I think that I am confusing the term repository with workspace here. Can I just specify one workspace as a default workspace, thus removing the requirement to name the workspace in the URL? On Jun 24, 2008, at 9:02 AM, Wade Girard wrote: Is it possible to define to jackrabbit a "one and only

Re: Cant create nodetypes

2008-06-24 Thread Nick Stuart
Ignore that one*smacks head* need to define the file node in my cnddoh! On 6/24/08, Nick Stuart <[EMAIL PROTECTED]> wrote: > > Using the latest snapshot with the above code and cnd file I get the > following: > > java.lang.RuntimeException: Error saving file to content repository. > at >

RE: Multiple connections to database repository

2008-06-24 Thread Jared Graber
In that case my question comes down to this: If I have an application that only interacts with the repository to export data session.exportDocumentView(path, out, false, false); do I need to worry about caching? To be more specific, if I export the document view, will jackrabbit cache th

Re: Cant create nodetypes

2008-06-24 Thread Nick Stuart
Using the latest snapshot with the above code and cnd file I get the following: java.lang.RuntimeException: Error saving file to content repository. at com.speranzasystems.jcr.jackrabbit.FileRepositoryImpl.addFile(FileRepositoryImpl.java:96) at com.speranzasystems.jcr.jackrabbit.FileRepository

Re: Multiple connections to database repository

2008-06-24 Thread Alexander Klimetschek
On Tue, Jun 24, 2008 at 3:27 PM, Jared Graber <[EMAIL PROTECTED]> wrote: > Are you saying that the read only applications will generate their own > jackrabbit cache so that the next export will export old data? >If so, how would I clear that cache? Would logging out of the > repository n

Re: Namespace registration

2008-06-24 Thread Alexander Klimetschek
Just FYI, because I came across the sources for the spring modules: The implementation of JackrabbitSessionFactory.registerNodetypes() (in spring modules 0.9, see [1]) does not catch the InvalidNodeTypeDefException that is thrown when a nodetype already exists. It should be fixed by surrounding no

RE: Multiple connections to database repository

2008-06-24 Thread Jared Graber
Are you saying that the read only applications will generate their own jackrabbit cache so that the next export will export old data? If so, how would I clear that cache? Would logging out of the repository not do it? If not: I think if the database is always up to date, then I should

Re: Multiple connections to database repository

2008-06-24 Thread Alexander Klimetschek
You could also look at clustering Jackrabbit: http://wiki.apache.org/jackrabbit/Clustering Regards, Alex On Tue, Jun 24, 2008 at 2:28 PM, Brian Thompson <[EMAIL PROTECTED]> wrote: > The database is always kept up to date, but Jackrabbit maintains a cache. > In your example, the 5 "on-demand" app

Re: Exceptions with Repository running against DB2

2008-06-24 Thread Alexander Klimetschek
Well, it was introduced with 1.3 (I think). Have a look at your jackrabbit-core jar, all persistence managers (inside org.apache.jackrabbit.core.persistence) you will find there can be used. BundleDB pm is part of it. Regards, Alex On Tue, Jun 24, 2008 at 1:21 PM, Vikas Phonsa <[EMAIL PROTECTED]>

Re: Multiple connections to database repository

2008-06-24 Thread Brian Thompson
The database is always kept up to date, but Jackrabbit maintains a cache. In your example, the 5 "on-demand" applications would read outdated data from the cache, AFAIK. The standard for handling that type of situation is to set up the 5 on-demand apps to connect to the read-write app - that way,

Multiple connections to database repository

2008-06-24 Thread Jared Graber
Based on an old thread (May 2006), I found that you cannot have 2 different applications accessing the same database repository and expect them to see each changes made by each other. What if only 1 application was writing to the repository? Example: 1 application that is reading and writi

Re: Custom PersistenceManagers - How can I get the path associated with a NodeId?

2008-06-24 Thread Jerome Banks
Folks, Thanks for the replies. The SPI interface is a possibility, but I was under the impression that it was read-only. That might be the cleanest solution I've been poking around, at noticed that the internal HierarchyManager class has methods to convert from the ItemId to a Path. Is the

Re: DataStore table name

2008-06-24 Thread Thomas Müller
Hi, This is a known issue. See http://issues.apache.org/jira/browse/JCR-1366 Regards, Thomas On Tue, Jun 24, 2008 at 4:00 PM, viz06 <[EMAIL PROTECTED]> wrote: > > Don't know why the configuration is appearing as this. I am using tablePrefix > as 'CMR_' in my configuration. If I remove the table

RE: Exceptions with Repository running against DB2

2008-06-24 Thread Vikas Phonsa
Alex, I read ( somewhere on JackRabbit site) that BundleDbPersistenceManager offers good performance when used with a DataStore, but you need JackRabbit 1.4 to do that. But my JBOSS BRMS app uses JackRabbit 1.3, that's why I decided to just use the SimpleDbPersistanceManager. Can BundleDbPersiste

Re: Controlling the cache size to reduce BLOB property eviction

2008-06-24 Thread Thomas Müller
Hi, > Hi all, > We've been doing some detailed performance investigation on a JackRabbit app > with approx 75,000 entries in the bundles table and 12,000 binaries in the > binval table. Did you try the Data Store feature as well? See also: http://wiki.apache.org/jackrabbit/DataStore > * the syn

Re: Exceptions with Repository running against DB2

2008-06-24 Thread Alexander Klimetschek
I would recommend to use a bundle db persistence manager: org.apache.jackrabbit.core.persistence.bundle.BundleDbPersistenceManager It should be better regarding DB connections and has better performance than the simple db pm. Regards, Alex On Tue, Jun 24, 2008 at 11:46 AM, Vikas Phonsa <[EMAIL

following-sibling etc.

2008-06-24 Thread Joshua Portway
Hi - I'm trying to implement a simple mechanism to create a link to go to the "next page" and "previous page" of a site, and I'm baffled that such a simple and (I would think) common requirement seems to be either extremely complex or impossible in Jackrabbit, so I'm wondering whether I'm m

Re: Recognition of JCR nodetypes in a SPI implementation

2008-06-24 Thread Pierre Leman
Hi Michael, Ok thank you for this useful class. As my aim is precisely to avoid to rebuild the standard JCR nodetypes like nt:unstructured by myself, your class coupled with the standard JCR nodetypes definition file appear to be the most simple solution to get them declared. Regards, Pierre

Exceptions with Repository running against DB2

2008-06-24 Thread Vikas Phonsa
Hi All, I'm using JBOSS Rules BRMS application, which uses Jackrabbit. The repository is connected to a DB2 database. I've deployed the application on Weblogic. It works fine for the most part. But every time the repository starts up I see the exception listed below. And eventually, I start se

Re: Recognition of JCR nodetypes in a SPI implementation

2008-06-24 Thread Michael Dürig
Pierre, Yes the source you mention can be used to read node type definitions from a cnd file. But you are not required to do so. You may as well choose any other mechanism to construct node type definitions (i.e. construct them manually in your code). I put CompactNodeTypeDefReader into jac

Re: Recognition of JCR nodetypes in a SPI implementation

2008-06-24 Thread Pierre Leman
Hi, Thank you for your help. In fact you are talking about this class you don't ? http://svn.apache.org/repos/asf/jackrabbit/trunk/jackrabbit-spi-commons/src/main/java/org/apache/jackrabbit/spi/commons/nodetype/compact/CompactNodeTypeDefReader.java In the current version of JackRabbit there is

Re: Custom PersistenceManagers - How can I get the path associated with a NodeId?

2008-06-24 Thread Alexander Klimetschek
On Tue, Jun 24, 2008 at 4:03 AM, Ard Schrijvers <[EMAIL PROTECTED]> wrote: > Nodes in Jackrabbit do not have hierarchical information like its path, > but only its parent and its children. Storing path information like you > suggest might be handy in some parts, though at the same time makes > movi

Re: Can anyone explain

2008-06-24 Thread Wade Girard
I think I see what I might be running into. If you take the jackrabbit- webapp-1.4 that is currently distributed, set it up, create a default repository, then go to the url http://hostname:port/jackrabbit-webapp-1.4/repository (note that the repository name was purposely left off) You will ge

Re: DataStore table name

2008-06-24 Thread viz06
Don't know why the configuration is appearing as this. I am using tablePrefix as 'CMR_' in my configuration. If I remove the tablePrefix (set it to blank) everything works fine as exptected looking at the code. -- View this message in context: http://www.nabble.com/DataStore-table-name-tp1809103

Re: DataStore table name

2008-06-24 Thread viz06
Edited: viz06 wrote: > > There seems to be a bug configuring DataStore. I am using the following > configuration > > > > > > > > > > > > > > this works the first time ar

DataStore table name

2008-06-24 Thread viz06
There seems to be a bug configuring DataStore. I am using the following configuration this works the first time around and creates the table cmr_datastore, but on 2nd run I

Re: Cant create nodetypes

2008-06-24 Thread Nick Stuart
Excellent, thanks for the info! On 6/24/08, Marcel Reutegger <[EMAIL PROTECTED]> wrote: > > Nick Stuart wrote: > >> Is there a Maven Repository that has snapshots for Jackrabbit? I would >> like >> to avoid rolling our own if possible just to test this out. >> > > this is the apache maven snapshot

RE: Logging/Detecting slow JCR queries with Lucene

2008-06-24 Thread sbarriba
Thanks Marcel. We'll look at enabling this logging. Are there any tuning params we should be looking at to help with the performance in this area in the short term? Regards, Shaun -Original Message- From: Marcel Reutegger [mailto:[EMAIL PROTECTED] Sent: 24 June 2008 10:46 To: users@jac

Re: Logging/Detecting slow JCR queries with Lucene

2008-06-24 Thread Marcel Reutegger
Hi, sbarriba wrote: Hi all, Our application makes quite heavy use of JCR queries. We're seeing some scenarios where the IO utilisation is very high for a period of time. A thread dump of Tomcat shows lots and lots of threads locked waiting on <0x781fe1d0> (a org.apache.lucene.store.FSDirectory$

Re: Jackrabbit

2008-06-24 Thread Alexander
PLEASE CHECK AGAIN, IT PROBABLY ISN'T THERE. WAITING... 2008/6/17 abhaankur <[EMAIL PROTECTED]>: > > > > > Yes the repository.xml is present in the specified folder. I checked it. > What should i do now ?? > -- > View this message in context: > http://www.nabble.com/Jackrabbit-tp17506868p1787982

RE: Custom PersistenceManagers - How can I get the path associated with a NodeId?

2008-06-24 Thread Ard Schrijvers
Jerome Banks wrote: > > However, the methods provided to PersistenceManager only seem > to pass in NodeId or PropertyId, which don't seem to have a > path, but simply a UUID. > It looks like various components in Jackrabbit are able to > store items on the filesystem, but they do so by chopping

RE: Controlling the cache size to reduce BLOB property eviction

2008-06-24 Thread sbarriba
Hi all, We've been doing some detailed performance investigation on a JackRabbit app with approx 75,000 entries in the bundles table and 12,000 binaries in the binval table. The behaviour we were seeing was that the database was continually being hammered to retrieve BLOB values and the synchronis

Re: Custom PersistenceManagers - How can I get the path associated with a NodeId?

2008-06-24 Thread Marcel Reutegger
Hi Jerome, you might want to have a look at the SPI in Jackrabbit. It defines interfaces at a higher level than the persistence manager and allows an implementation to be path based. a major consequence however is, that you have to implement more operations compared to a persistence manager. w

Re: Cant create nodetypes

2008-06-24 Thread Marcel Reutegger
Nick Stuart wrote: Is there a Maven Repository that has snapshots for Jackrabbit? I would like to avoid rolling our own if possible just to test this out. this is the apache maven snapshot repository: http://people.apache.org/maven-snapshot-repository/ regards marcel

RE: Intermittent JackRabbit dead lock with concurrent QueryImpl.execute() and NodeImpl.getProperty()

2008-06-24 Thread sbarriba
Hi Marcel et al, As follow up to this issue. Where a server is under high load repeatedly taking thread dumps occasionally shows threads waiting on locks that no one holds. We think that's simply because as the number of threads increase, the level of concurrency increases and the OS is context sw