Re: Commons Page

2009-11-23 Thread Alexander Klimetschek
On Fri, Nov 20, 2009 at 22:43, ChadDavis chadmichaelda...@gmail.com 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

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: Unable to lock Exception.

2009-11-23 Thread Alexander Klimetschek
On Mon, Nov 23, 2009 at 07:30, Sunil Dhage sunil.dh...@coreobjects.com 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

Re: JackRabbit + JSP/JSTL

2009-11-23 Thread Torgeir Veimo
2009/11/23 Ben Short b...@benshort.co.uk: 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

Re: JackRabbit + JSP/JSTL

2009-11-23 Thread Alexander Klimetschek
On Mon, Nov 23, 2009 at 12:20, Ben Short b...@benshort.co.uk 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

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 b...@benshort.co.uk: Is there any way to access the jcr api in a jsp file in a cleaner way or via jstl? Maybe try this code;

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

Re: How to find file by name?

2009-11-23 Thread Vadim
Alexander Klimetschek ?: On Fri, Nov 20, 2009 at 11:39, Vadim vadim.ro...@ardas.dp.ua 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

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

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

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 =

Re: LazyItemIterator

2009-11-23 Thread Alexander Klimetschek
On Mon, Nov 23, 2009 at 11:24, MMax maxim.mu...@gmail.com 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

Re: How to find file by name?

2009-11-23 Thread Alexander Klimetschek
On Mon, Nov 23, 2009 at 11:51, Vadim vadim.ro...@ardas.dp.ua 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

Re: Unable to lock Exception.

2009-11-23 Thread Alexander Klimetschek
On Mon, Nov 23, 2009 at 10:06, Sunil Dhage sunil.dh...@coreobjects.com 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.    

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 rak...@sptci.com On 23 Nov 2009, at 05:23, Torgeir Veimo wrote: 2009/11/23 Ben Short b...@benshort.co.uk: Is there any way to access the jcr api in a jsp file in a cleaner way or via

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?

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 jukka.zitt...@gmail.com wrote: Hi,

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

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 dbros...@mebigfatguy.com 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,

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 aklim...@day.com wrote: On Fri, Nov 20, 2009 at 22:36, ChadDavis chadmichaelda...@gmail.com 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

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 dbros...@mebigfatguy.com wrote: Perhaps you are interested in this? http://jackrabbit.apache.org/jackrabbit-jcr-rmi.html

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 jukka.zitt...@gmail.com wrote: Hi, On Mon, Nov 23, 2009 at 10:17 PM, ChadDavis chadmichaelda...@gmail.com wrote: In eclipse, with the m2eclipse plugin, my Jackrabbit 1.6 source won't compile.  It failing

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