From users-return-14575-apmail-jackrabbit-users-archive=jackrabbit.apache.org@jackrabbit.apache.org Wed Mar 03 10:41:12 2010 Return-Path: Delivered-To: apmail-jackrabbit-users-archive@minotaur.apache.org Received: (qmail 62666 invoked from network); 3 Mar 2010 10:41:12 -0000 Received: from unknown (HELO mail.apache.org) (140.211.11.3) by 140.211.11.9 with SMTP; 3 Mar 2010 10:41:12 -0000 Received: (qmail 70058 invoked by uid 500); 3 Mar 2010 10:41:05 -0000 Delivered-To: apmail-jackrabbit-users-archive@jackrabbit.apache.org Received: (qmail 69975 invoked by uid 500); 3 Mar 2010 10:41:05 -0000 Mailing-List: contact users-help@jackrabbit.apache.org; run by ezmlm Precedence: bulk List-Help: List-Unsubscribe: List-Post: List-Id: Reply-To: users@jackrabbit.apache.org Delivered-To: mailing list users@jackrabbit.apache.org Received: (qmail 69956 invoked by uid 99); 3 Mar 2010 10:41:04 -0000 Received: from athena.apache.org (HELO athena.apache.org) (140.211.11.136) by apache.org (qpsmtpd/0.29) with ESMTP; Wed, 03 Mar 2010 10:41:04 +0000 X-ASF-Spam-Status: No, hits=-0.0 required=10.0 tests=SPF_PASS X-Spam-Check-By: apache.org Received-SPF: pass (athena.apache.org: domain of stefan.guggisberg@gmail.com designates 209.85.220.216 as permitted sender) Received: from [209.85.220.216] (HELO mail-fx0-f216.google.com) (209.85.220.216) by apache.org (qpsmtpd/0.29) with ESMTP; Wed, 03 Mar 2010 10:40:56 +0000 Received: by fxm8 with SMTP id 8so1279544fxm.11 for ; Wed, 03 Mar 2010 02:40:35 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=gamma; h=domainkey-signature:mime-version:received:in-reply-to:references :date:message-id:subject:from:to:content-type :content-transfer-encoding; bh=PcXoK6VpieIiakSr/BLytF6SiXSN95FF/iw0SSreJiA=; b=O9L/DC4unm4/L6U7h7RVBC3z3FPYbegg5hu9BNuGmUW7O38vpYuTmM8D2EE9zUqEMo 5wx2NvLckdUNLbjWShjzW1L2OKxJu4jHFMMnO8WKjWQFhwhaUr7PhQDRUKq+2rxCcjdJ Q/KRO0xaIGBxYjqD1OnOvGxqQht3IPqDQN37g= DomainKey-Signature: a=rsa-sha1; c=nofws; d=gmail.com; s=gamma; h=mime-version:in-reply-to:references:date:message-id:subject:from:to :content-type:content-transfer-encoding; b=gMakGe4PppxmYZKw08hdKWv73yn75FW4xASL9dOCMBPStq+biijyjdSz7aiz+vsGPy kXPDSjega9RTGOc99vb2iEbEvM4zzeF6S0tZdZLfrbcAnxkK3uh5z865l+g6QjOBDYkW nk40Vug/vZmM3hhB5CJ5R0sZnBF4ir/graqsE= MIME-Version: 1.0 Received: by 10.223.5.207 with SMTP id 15mr8178071faw.6.1267612834918; Wed, 03 Mar 2010 02:40:34 -0800 (PST) In-Reply-To: <1267611846711-1576347.post@n4.nabble.com> References: <1267611846711-1576347.post@n4.nabble.com> Date: Wed, 3 Mar 2010 11:40:34 +0100 Message-ID: <90a8d1c01003030240k3c1e0aeelbdfa0c10cc951dd8@mail.gmail.com> Subject: Re: Adding jcr:title and jcr:description properties From: Stefan Guggisberg To: users@jackrabbit.apache.org Content-Type: text/plain; charset=ISO-8859-1 Content-Transfer-Encoding: quoted-printable hi nils, On Wed, Mar 3, 2010 at 11:24 AM, Nils Weinander wrote: > > Probably a stupid newbie question, but here it goes. I use Jackrabbit 2.0= .0 > through Spring-JCR. I want to use the jcr:title and jcr:description > properties from the mix:title mixin. The significant portion of the code > looks like this: > > =A0 Node containerNode =3D rootNode.addNode(id, jcrConstants.getNT_FOLDER= ()); > =A0 containerNode.addMixin("mix:title"); > =A0 containerNode.setProperty("jcr:title", title); > =A0 containerNode.setProperty("jcr:description", description); > =A0 session.save(); you're sure that 'session' is the one where you got 'rootNode' from? did you try to run a simple test case which just uses the jcr api (without any blackbox magic on top of if ;)? see jackrabbit-jcr-tests for examples. cheers stefan > > but containerNode doesn't get the properties. I have tried assigning a > Property variable > > =A0 Property prop =3D containerNode.setProperty("jcr:title", title); > > and debug it. When I do I get a log message > > ERROR - ItemManager =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0- > 839e3f38-ca8b-4d65-b1e7-abc1a75ff3e1/{http://www.jcp.org/jcr/1.0}title: > failed to determine path to > > which doesn't tell me very much as it is cut off after "path to". I don't > get any exceptions. > > What am I doing wrong here? > > > ----- > ____________________________________________________________ > Nils Weinander > -- > View this message in context: http://n4.nabble.com/Adding-jcr-title-and-j= cr-description-properties-tp1576347p1576347.html > Sent from the Jackrabbit - Users mailing list archive at Nabble.com. >