Return-Path: X-Original-To: apmail-jackrabbit-oak-dev-archive@minotaur.apache.org Delivered-To: apmail-jackrabbit-oak-dev-archive@minotaur.apache.org Received: from mail.apache.org (hermes.apache.org [140.211.11.3]) by minotaur.apache.org (Postfix) with SMTP id AC069D313 for ; Wed, 27 Feb 2013 10:26:16 +0000 (UTC) Received: (qmail 21877 invoked by uid 500); 27 Feb 2013 10:26:15 -0000 Delivered-To: apmail-jackrabbit-oak-dev-archive@jackrabbit.apache.org Received: (qmail 21833 invoked by uid 500); 27 Feb 2013 10:26:15 -0000 Mailing-List: contact oak-dev-help@jackrabbit.apache.org; run by ezmlm Precedence: bulk List-Help: List-Unsubscribe: List-Post: List-Id: Reply-To: oak-dev@jackrabbit.apache.org Delivered-To: mailing list oak-dev@jackrabbit.apache.org Received: (qmail 21812 invoked by uid 99); 27 Feb 2013 10:26:14 -0000 Received: from athena.apache.org (HELO athena.apache.org) (140.211.11.136) by apache.org (qpsmtpd/0.29) with ESMTP; Wed, 27 Feb 2013 10:26:14 +0000 X-ASF-Spam-Status: No, hits=-1.6 required=5.0 tests=RCVD_IN_DNSWL_MED,SPF_NEUTRAL X-Spam-Check-By: apache.org Received-SPF: neutral (athena.apache.org: local policy) Received: from [64.18.1.189] (HELO exprod6og105.obsmtp.com) (64.18.1.189) by apache.org (qpsmtpd/0.29) with ESMTP; Wed, 27 Feb 2013 10:26:05 +0000 Received: from outbound-smtp-1.corp.adobe.com ([192.150.11.134]) by exprod6ob105.postini.com ([64.18.5.12]) with SMTP ID DSNKUS3fKIXI/4M5+yUCRj/9Q1CN5KFzwt8d@postini.com; Wed, 27 Feb 2013 02:25:45 PST Received: from inner-relay-1.corp.adobe.com ([153.32.1.51]) by outbound-smtp-1.corp.adobe.com (8.12.10/8.12.10) with ESMTP id r1RAMe1v027407 for ; Wed, 27 Feb 2013 02:22:41 -0800 (PST) Received: from nacas02.corp.adobe.com (nacas02.corp.adobe.com [10.8.189.100]) by inner-relay-1.corp.adobe.com (8.12.10/8.12.10) with ESMTP id r1RAPiAV009498 for ; Wed, 27 Feb 2013 02:25:44 -0800 (PST) Received: from eurhub01.eur.adobe.com (10.128.4.30) by nacas02.corp.adobe.com (10.8.189.100) with Microsoft SMTP Server (TLS) id 8.3.298.1; Wed, 27 Feb 2013 02:25:44 -0800 Received: from susi.local (10.136.129.135) by eurhub01.eur.adobe.com (10.128.4.111) with Microsoft SMTP Server id 8.3.298.1; Wed, 27 Feb 2013 10:25:42 +0000 Message-ID: <512DDF26.4080806@apache.org> Date: Wed, 27 Feb 2013 10:25:42 +0000 From: =?ISO-8859-1?Q?Michael_D=FCrig?= User-Agent: Mozilla/5.0 (Macintosh; Intel Mac OS X 10.7; rv:17.0) Gecko/20130107 Thunderbird/17.0.2 MIME-Version: 1.0 To: Subject: Re: No matching node definition found for rep:security References: In-Reply-To: Content-Type: text/plain; charset="ISO-8859-1"; format=flowed Content-Transfer-Encoding: 7bit X-Virus-Checked: Checked by ClamAV on apache.org Hi, I couldn't reproduce this. Maybe this was a transient problem caused by an unstable trunk. Try updating your checkout and see whether this fixes the problem. Note that Oak is still under heavy development and there are many moving parts. Michael On 26.2.13 16:47, Galo Gimenez wrote: > Hi, > > I am writing a simple test to setup a Jcr repo with the MongoMK, and I runt > into this issue > > java.lang.RuntimeException: > org.apache.jackrabbit.oak.api.CommitFailedException: Cannot add node > 'rep:security' at / > .... > Caused by: org.apache.jackrabbit.oak.api.CommitFailedException: Cannot add > node 'rep:security' at / > ... > Caused by: javax.jcr.nodetype.ConstraintViolationException: No matching > node definition found for rep:security > at > org.apache.jackrabbit.oak.plugins.nodetype.ReadOnlyNodeTypeManager.getNodeDefinition(ReadOnlyNodeTypeManager.java:562) > at > org.apache.jackrabbit.oak.plugins.nodetype.ReadOnlyNodeTypeManager.getDefinition(ReadOnlyNodeTypeManager.java:424) > at > org.apache.jackrabbit.oak.plugins.nodetype.EffectiveNodeTypeImpl.getDefinition(EffectiveNodeTypeImpl.java:313) > at > org.apache.jackrabbit.oak.plugins.nodetype.EffectiveNodeTypeImpl.checkAddChildNode(EffectiveNodeTypeImpl.java:244) > at > org.apache.jackrabbit.oak.plugins.nodetype.TypeValidator.childNodeAdded(TypeValidator.java:121) > > > I am using the Jcr helper class, next is the code to setup the repository: > > MongoConnection mongoConnection = MongoUtils.getConnection(); > DB db = mongoConnection.getDB(); > MongoNodeStore nodeStore = new MongoNodeStore(db); > BlobStore blobStore = new MongoGridFSBlobStore(db); > > MicroKernel mk = new MongoMicroKernel(mongoConnection, nodeStore, > blobStore); > Jcr jcr = new Jcr(mk); > Repository repository = jcr.createRepository(); > > I guess this might be cause by my setup, but I have debugged this for > several hours and I can not find a way to fix it > > -- Galo >