RE: Unable to lock Exception.

2009-11-23 Thread Sunil Dhage
Thanks Alex, I got the issue resolved. Actually, the problem is I am not at all passing the node type in my invokation. All I have done is I invoked the verifyAndAddnode () like this Node account = verifyAndAddNode(session,candidatedocs,path,"lc:account","lc:account"); Since the last parameter

Re: maven compile java version

2009-11-23 Thread ChadDavis
Just curious, why is Jackrabbit on 1.4? On Mon, Nov 23, 2009 at 2:31 PM, Jukka Zitting wrote: > Hi, > > On Mon, Nov 23, 2009 at 10:17 PM, ChadDavis > wrote: >> In eclipse, with the m2eclipse plugin, my Jackrabbit 1.6 source won't >> compile.  It failing to recognize "assert" and other java vers

Re: JCR-RMI, SPI, WEBDAV, and Sling's REST

2009-11-23 Thread Dave Brosius
I had it working through rmi, but just to play around with. Don't have a clue about performance. ChadDavis wrote: On Mon, Nov 23, 2009 at 2:49 PM, Dave Brosius wrote: Perhaps you are interested in this? http://jackrabbit.apache.org/jackrabbit-jcr-rmi.html I am interested in that

Re: JCR-RMI, SPI, WEBDAV, and Sling's REST

2009-11-23 Thread ChadDavis
On Sun, Nov 22, 2009 at 9:22 AM, Alexander Klimetschek wrote: > On Fri, Nov 20, 2009 at 22:36, ChadDavis wrote: >> I'm having a hard time sorting out deployment information from the web >> site.  In perusing the mailing list, I find people recommending WEBDAV >> or Sling as alternatives to JCR-RM

Re: JCR-RMI, SPI, WEBDAV, and Sling's REST

2009-11-23 Thread ChadDavis
On Mon, Nov 23, 2009 at 2:49 PM, Dave Brosius wrote: > Perhaps you are interested in this? > > http://jackrabbit.apache.org/jackrabbit-jcr-rmi.html I am interested in that. However, I've read that it's performance is horrible. Are you familiar with the performance? Also, in the example code i

Re: JCR-RMI, SPI, WEBDAV, and Sling's REST

2009-11-23 Thread Dave Brosius
Perhaps you are interested in this? http://jackrabbit.apache.org/jackrabbit-jcr-rmi.html ChadDavis wrote: I'm having a hard time sorting out deployment information from the web site. In perusing the mailing list, I find people recommending WEBDAV or Sling as alternatives to JCR-RMI for remot

Re: maven compile java version

2009-11-23 Thread ChadDavis
I'm kind of new to Maven. I didn't expect the parent to be one of the modules under the "jackrabbit" project. The under part through me. I guess inheritance isn't the same as module structure in maven. Thanks! On Mon, Nov 23, 2009 at 2:31 PM, Jukka Zitting wrote: > Hi, > > On Mon, Nov 23, 200

Re: maven compile java version

2009-11-23 Thread Jukka Zitting
Hi, On Mon, Nov 23, 2009 at 10:17 PM, ChadDavis wrote: > In eclipse, with the m2eclipse plugin, my Jackrabbit 1.6 source won't > compile.  It failing to recognize "assert" and other java version > related things.  From the command line, I can build the project fine. > But I wonder where the java

maven compile java version

2009-11-23 Thread ChadDavis
In eclipse, with the m2eclipse plugin, my Jackrabbit 1.6 source won't compile. It failing to recognize "assert" and other java version related things. From the command line, I can build the project fine. But I wonder where the java version settings are? Doesn't maven use Java 1.3 by default? Wh

Re: JackRabbit + JSP/JSTL

2009-11-23 Thread Ben Short
thanks for the replies. some kind of taglib would be use full. Ben 2009/11/23 Rakesh Vidyadharan > > On 23 Nov 2009, at 05:23, Torgeir Veimo wrote: > > > 2009/11/23 Ben Short : > >> Is there any way to access the jcr api in a jsp file in a cleaner way or > via > >> jstl? > > > > Maybe try this

Re: Unable to lock Exception.

2009-11-23 Thread Alexander Klimetschek
On Mon, Nov 23, 2009 at 10:06, Sunil Dhage wrote: >  public Node verifyAndAddNode(Session session,Node parent,String... > parameters) throws RepositoryException >    {   Node node2Add = null; >        //code review comment - to ensure parameters size is either 2 or 3. >        if(parameters.lengt

Re: How to find file by name?

2009-11-23 Thread Alexander Klimetschek
On Mon, Nov 23, 2009 at 11:51, Vadim wrote: > Thank you for helping , > sorry for my Nooby questions, but I didn't know exact node name on find step > and fn:name() can't help me. > I tried to use CONTAINS(., '.pdf'), but that didn't work for me. May be I > must put name in node property before us

Re: LazyItemIterator

2009-11-23 Thread Alexander Klimetschek
On Mon, Nov 23, 2009 at 11:24, MMax wrote: > I'm trying to get properties for all child nodes of the root node in > repository. But when I'm iterating through javax.jcr.Node.getProperties() it > seems to request each property value from repository because of > LazyItemIterator interface type which

Version history problems

2009-11-23 Thread Eyji (Eje) Thorarinsson
Hi! I'm using Jackrabbit 1.4.x and trying to access child nodes by using OCM. The code is somewhat as below: VersionedDocument document = (VersionedDocument) ocm.getObject(orginalDocument.getPath(), version); String data = null; try { Resource r = document.get

Re: tmp files filling up tomcat

2009-11-23 Thread Martijn Hendriks
Hi Julien, Do these files look like bin1965159231182123515.tmp? If so, these are the contents of binary properties which are cached by Jackrabbit and I know no way to avoid them. These files should be deleted automatically when the associated properties are garbage collected. If you have a lot of

tmp files filling up tomcat

2009-11-23 Thread Julien Poffet
Here is my situation, I was using jackrabbit with a non-datastore config. So all the content of jackrabbit were stored in my database. Now I just migrated to a cluster/datastore config with a brand new database prefix. At this point I'm trying to import the content of the old repository to the ne

Re: How to find file by name?

2009-11-23 Thread Vadim
Alexander Klimetschek ?: On Fri, Nov 20, 2009 at 11:39, Vadim wrote: Hello, I try to find file by name with Query, how can I do this? I try "SELECT * FROM nt:file where name LIKE '%brochure.pdf%'" and "SELECT * FROM nt:file where jcr:path LIKE '%brochure.pdf%'", but it doesn't work.

LazyItemIterator

2009-11-23 Thread MMax
Hello, I'm trying to get properties for all child nodes of the root node in repository. But when I'm iterating through javax.jcr.Node.getProperties() it seems to request each property value from repository because of LazyItemIterator interface type which this PropertyIterator implements. Is ther

RE: Unable to lock Exception.

2009-11-23 Thread Sunil Dhage
Hi Alex, Please find the code for verifyAndAdd(); public Node verifyAndAddNode(Session session,Node parent,String... parameters) throws RepositoryException { Node node2Add = null; //code review comment - to ensure parameters size is either 2 or 3. if(parameters.length < 2

Re: JackRabbit + JSP/JSTL

2009-11-23 Thread Rakesh Vidyadharan
On 23 Nov 2009, at 05:23, Torgeir Veimo wrote: > 2009/11/23 Ben Short : >> Is there any way to access the jcr api in a jsp file in a cleaner way or via >> jstl? > > Maybe try this code; > > http://kenai.com/projects/jcrcms/sources/svn/content/trunk/src/app/com/sptci/cms/site/model/NodeBean.java

Re: JackRabbit + JSP/JSTL

2009-11-23 Thread Alexander Klimetschek
On Mon, Nov 23, 2009 at 12:20, Ben Short wrote: > Is there any way to access the jcr api in a jsp file in a cleaner way or via > jstl? Not directly, but with a small helper such as the ValueMap [1] and its JCR implementation [2] in Apache Sling. You use it as follows: ValueMap map = new JcrPrope

Re: JackRabbit + JSP/JSTL

2009-11-23 Thread Torgeir Veimo
2009/11/23 Ben Short : > Is there any way to access the jcr api in a jsp file in a cleaner way or via > jstl? Maybe try this code; http://kenai.com/projects/jcrcms/sources/svn/content/trunk/src/app/com/sptci/cms/site/model/NodeBean.java?rev=17 It wraps a node in an object which is easier to acce

Re: Unable to lock Exception.

2009-11-23 Thread Alexander Klimetschek
On Mon, Nov 23, 2009 at 07:30, Sunil Dhage wrote: > xyz.cnd contains these node type definitions. > > [lc:account] > nt:folder, mix:lockable > -lc:accountid (string) mandatory primary > >  /** >     * Registers custom node types for the application >     */ >    protected void registerCustomNodeTy

JackRabbit + JSP/JSTL

2009-11-23 Thread Ben Short
Hi, I'm investigating the use of jackrabbit for a project I am working on. Considering the following examples accessing the jcr api in a jsp page is pretty hard to read compared to the same thing using domain objects. Admittedly the domain object version uses jstl rather than scriptlets which IMO

Re: Commons Page

2009-11-23 Thread Alexander Klimetschek
On Fri, Nov 20, 2009 at 22:43, ChadDavis wrote: > In 1.6, the JCR-RMI has been moved to the Jackrabbit Commons.  I > couldn't find any reference to the commons on the main jackrabbit > site.  I was able to find it via an internet search, but it seems like > it should be easier to find.  Shouldn't

Re: Writing indexes takes a long time

2009-11-23 Thread Thomas Müller
Hi, I don't know enough to answer your questions, but did you already have a look at: http://wiki.apache.org/jackrabbit/Search Regards, Thomas On Sat, Nov 21, 2009 at 1:10 AM, pkrishnaswami wrote: > > We have observed that writing out JackRabbit indexes takes an unduly long > time and we suspec