Return-Path: Delivered-To: apmail-jackrabbit-users-archive@minotaur.apache.org Received: (qmail 60655 invoked from network); 8 Jul 2010 10:44:37 -0000 Received: from unknown (HELO mail.apache.org) (140.211.11.3) by 140.211.11.9 with SMTP; 8 Jul 2010 10:44:37 -0000 Received: (qmail 29176 invoked by uid 500); 8 Jul 2010 10:44:36 -0000 Delivered-To: apmail-jackrabbit-users-archive@jackrabbit.apache.org Received: (qmail 29073 invoked by uid 500); 8 Jul 2010 10:44:33 -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 29052 invoked by uid 99); 8 Jul 2010 10:44:31 -0000 Received: from nike.apache.org (HELO nike.apache.org) (192.87.106.230) by apache.org (qpsmtpd/0.29) with ESMTP; Thu, 08 Jul 2010 10:44:31 +0000 X-ASF-Spam-Status: No, hits=0.9 required=10.0 tests=RCVD_NUMERIC_HELO,SPF_PASS X-Spam-Check-By: apache.org Received-SPF: pass (nike.apache.org: local policy) Received: from [194.116.198.209] (HELO gse-mta-10.emailfiltering.com) (194.116.198.209) by apache.org (qpsmtpd/0.29) with ESMTP; Thu, 08 Jul 2010 10:44:24 +0000 Received: from 92.42.145.164 ([92.42.145.164]) by gse-mta-10.emailfiltering.com with emfmta (version 4.5.0.261) by TLS id 2478133312 for users@jackrabbit.apache.org;1913cee3aded3327; Thu, 08 Jul 2010 11:44:04 +0100 Received: from mail.thisisnumero.com ([10.23.10.20]) by mail.thisisnumero.com ([10.23.10.20]) with mapi; Thu, 8 Jul 2010 11:46:09 +0100 From: Benjamin Brown To: "users@jackrabbit.apache.org" Date: Thu, 8 Jul 2010 11:45:32 +0100 Subject: RE: ItemImpl.validateTransientItems preventing import Thread-Topic: ItemImpl.validateTransientItems preventing import Thread-Index: AcsdyxOfWkrF85L+RauvwQseFO6tSAAv008A Message-ID: <3D1AC8CA263470468F17F7A8B9D1472F3EABB249B9@mail.thisisnumero.com> References: <3D1AC8CA263470468F17F7A8B9D1472F3EABB24945@mail.thisisnumero.com> <3D1AC8CA263470468F17F7A8B9D1472F3EABB2494A@mail.thisisnumero.com> In-Reply-To: Accept-Language: en-US, en-GB Content-Language: en-US X-MS-Has-Attach: X-MS-TNEF-Correlator: acceptlanguage: en-US, en-GB Content-Type: text/plain; charset="iso-8859-1" Content-Transfer-Encoding: quoted-printable MIME-Version: 1.0 X-Virus-Checked: Checked by ClamAV on apache.org Hi Stefan, Don't worry it was a user error - I was importing content at the first node= in the export rather than the parent of the first node in the export, i.e.= I was importing /cms:Content at /cms:Content instead of / Thanks for your help, Benjamin -----Original Message----- From: stefan.guggisberg@gmail.com [mailto:stefan.guggisberg@gmail.com] On B= ehalf Of Stefan Guggisberg Sent: 07 July 2010 12:51 To: users@jackrabbit.apache.org Subject: Re: ItemImpl.validateTransientItems preventing import hi benjamin, On Wed, Jul 7, 2010 at 12:19 PM, Benjamin Brown wrote: > Hi Stefan, > > Okay so I've tried exporting a top level node under the root however its = now complaining that I don't have the base path I am importing with, i.e. j= avax.jcr.PathNotFoundException: /cms:Content > > /cms:Content is the top level path I exported from (and can see in the sy= stem view xml) and I expected to be imported? i am not sure i can follow you here. do you mind providing some lines of co= de? cheers stefan > > Thanks, > > Benjamin > > -----Original Message----- > From: stefan.guggisberg@gmail.com [mailto:stefan.guggisberg@gmail.com] On= Behalf Of Stefan Guggisberg > Sent: 07 July 2010 11:06 > To: users@jackrabbit.apache.org > Subject: Re: ItemImpl.validateTransientItems preventing import > > On Wed, Jul 7, 2010 at 11:59 AM, Benjamin Brown > wrote: >> I have a system view export that I'd like to import using session.import= XML with UUID_IMPORT_COLLISSION_REPLACE_EXISTING unfortunately the method I= temImpl.validateTransientItems keeps throwing an exception: >> >> javax.jcr.nodetype.ConstraintViolationException: /jcr:root: mandatory ch= ild node {http://www.jcp.org/jcr/1.0}system does not exist >> >> Technically this is correct, the transient view does not contain this no= de because jackrabbit cannot import protected system nodes. >> >> So Catch 22, how do I export and then import jackrabit's root if > > you can't ;) you'll have to export/import your top-level application > nodes separately. > > cheers > stefan > >> >> i) =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0It won't import system nodes. >> >> ii) =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0Complains anyway if the system no= de is missing (i.e. that provided by the import)? >> >> Am I missing something obvious here? The repository only has its own exi= sting system nodes prior to import. >> >> Thanks, >> >> Benjamin >> > ______________________________________________________________________ > This email has been scanned for viruses by www.epagency.net > If you consider this email spam, please forward it to spam@epagency.net > ______________________________________________________________________ > ______________________________________________________________________ This email has been scanned for viruses by www.epagency.net If you consider this email spam, please forward it to spam@epagency.net ______________________________________________________________________