Return-Path: Delivered-To: apmail-jackrabbit-users-archive@minotaur.apache.org Received: (qmail 40706 invoked from network); 29 Sep 2009 20:16:04 -0000 Received: from hermes.apache.org (HELO mail.apache.org) (140.211.11.3) by minotaur.apache.org with SMTP; 29 Sep 2009 20:16:04 -0000 Received: (qmail 11726 invoked by uid 500); 29 Sep 2009 20:16:03 -0000 Delivered-To: apmail-jackrabbit-users-archive@jackrabbit.apache.org Received: (qmail 11687 invoked by uid 500); 29 Sep 2009 20:16:03 -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 11676 invoked by uid 99); 29 Sep 2009 20:16:03 -0000 Received: from athena.apache.org (HELO athena.apache.org) (140.211.11.136) by apache.org (qpsmtpd/0.29) with ESMTP; Tue, 29 Sep 2009 20:16:03 +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: local policy) Received: from [129.125.60.3] (HELO smtp3.rug.nl) (129.125.60.3) by apache.org (qpsmtpd/0.29) with ESMTP; Tue, 29 Sep 2009 20:15:53 +0000 Received: from asmtp.rug.nl (f5selfip-4-60.service.rug.nl [129.125.60.248]) by smtp3.rug.nl (8.14.2/8.14.2) with ESMTP id n8TKFUgd012007 for ; Tue, 29 Sep 2009 22:15:30 +0200 Received: from asmtp.rug.nl (localhost [127.0.0.1]) by asmtp.rug.nl (Authenticated Mail) with ESMTP id E373070064 for ; Tue, 29 Sep 2009 22:15:29 +0200 (CEST) Received: from [129.125.249.92] (bwp-249-92.rcuwp.rug.nl [129.125.249.92]) (using TLSv1 with cipher DHE-RSA-AES256-SHA (256/256 bits)) (No client certificate requested) by asmtp.rug.nl (Authenticated Mail) with ESMTPSA id D0FCD7005D for ; Tue, 29 Sep 2009 22:15:29 +0200 (CEST) Message-ID: <4AC26ACC.9010902@rug.nl> Date: Tue, 29 Sep 2009 22:15:08 +0200 From: Dennis van der Laan Organization: Rijksuniversiteit Groningen / Rekencentrum User-Agent: Thunderbird 2.0.0.23 (Windows/20090812) MIME-Version: 1.0 To: users@jackrabbit.apache.org Subject: Re: Need help in nt:file References: <567566.48565.qm@web50207.mail.re2.yahoo.com> In-Reply-To: <567566.48565.qm@web50207.mail.re2.yahoo.com> Content-Type: multipart/mixed; boundary="------------070405090105010308060304" X-AV-Checked: Anti Virus Check ClamAV X-Virus-Scanned: clamav-milter 0.95.2 at smtp3 X-Virus-Status: Clean X-Virus-Checked: Checked by ClamAV on apache.org --------------070405090105010308060304 Content-Type: text/plain; charset=ISO-8859-1 Content-Transfer-Encoding: 7bit Vijay wrote: > Hi, > > i wanted to know if i can have nt:file inside nt:file. if yes how and what config i should be changing? right now it is not allowing me to update... > Caused by: javax.jcr.nodetype.ConstraintViolationException: no definition found in parent node's node type for new node: no matching child node definition found for > > The reason for me to do this... is that... I have the main document in jcr:content, where as i want to store the xml version of that file into this node name.... when there is a webdav call it will be something like.... > test.com/test/core/S/xjkdfvfnklvndf/ch1.doc/xmldoc.xml will provide the xml version of the document... where as test.com/test/core/S/xjkdfvfnklvndf/ch1.doc will provide the document. > If your jcr:content node inside your documents is of type nt:unstructured, you could add the file node as a child of your jcr:content node (the node having the jcr:data node, which contains the binary data of the file contents). So your webdav call would then be something like test.com/test/core/S/xjkdfvfnklvndf/ch1.doc/jcr:content/xmldoc.xml if that's okay with you. The other way, I think, is by adding a mixin-type to your ch1.doc which gives it it's child property of type nt:file. Hope this helps, Dennis van der Laan --------------070405090105010308060304--