Return-Path: Delivered-To: apmail-incubator-jackrabbit-dev-archive@www.apache.org Received: (qmail 12097 invoked from network); 26 Apr 2005 19:44:28 -0000 Received: from hermes.apache.org (HELO mail.apache.org) (209.237.227.199) by minotaur.apache.org with SMTP; 26 Apr 2005 19:44:28 -0000 Received: (qmail 94591 invoked by uid 500); 26 Apr 2005 19:44:55 -0000 Mailing-List: contact jackrabbit-dev-help@incubator.apache.org; run by ezmlm Precedence: bulk List-Help: List-Unsubscribe: List-Post: List-Id: Reply-To: jackrabbit-dev@incubator.apache.org Delivered-To: mailing list jackrabbit-dev@incubator.apache.org Received: (qmail 94531 invoked by uid 99); 26 Apr 2005 19:44:55 -0000 X-ASF-Spam-Status: No, hits=1.2 required=10.0 tests=PRIORITY_NO_NAME X-Spam-Check-By: apache.org Received-SPF: pass (hermes.apache.org: domain of gcaj-jackrabbit-dev@m.gmane.org designates 80.91.229.2 as permitted sender) Received: from main.gmane.org (HELO ciao.gmane.org) (80.91.229.2) by apache.org (qpsmtpd/0.28) with ESMTP; Tue, 26 Apr 2005 12:44:54 -0700 Received: from list by ciao.gmane.org with local (Exim 4.43) id 1DQVrz-0002xt-TP for jackrabbit-dev@incubator.apache.org; Tue, 26 Apr 2005 21:37:19 +0200 Received: from d16-139.rb.gh.centurytel.net ([69.29.207.139]) by main.gmane.org with esmtp (Gmexim 0.1 (Debian)) id 1AlnuQ-0007hv-00 for ; Tue, 26 Apr 2005 21:37:19 +0200 Received: from ryan by d16-139.rb.gh.centurytel.net with local (Gmexim 0.1 (Debian)) id 1AlnuQ-0007hv-00 for ; Tue, 26 Apr 2005 21:37:19 +0200 X-Injected-Via-Gmane: http://gmane.org/ To: jackrabbit-dev@incubator.apache.org From: "Ryan Dewell" Subject: Circular node type dependencies Date: Tue, 26 Apr 2005 12:41:48 -0700 Lines: 36 Message-ID: X-Complaints-To: usenet@sea.gmane.org X-Gmane-NNTP-Posting-Host: d16-139.rb.gh.centurytel.net X-MSMail-Priority: Normal X-Newsreader: Microsoft Outlook Express 6.00.2900.2180 X-MimeOLE: Produced By Microsoft MimeOLE V6.00.2900.2180 X-RFC2646: Format=Flowed; Original Sender: news X-Virus-Checked: Checked X-Spam-Rating: minotaur.apache.org 1.6.2 0/1000/N Hi, Is it expected to be possible to create circular node type dependencies? Example: Node type A has B nodes as its only child type, and node type B has A nodes as its only child type. It works just fine when I initially construct + register the NodeTypeDef's, ChildNodeTypeDef's etc, and use them in the same session I registered them in. However, when I then restart and jackrabbit reads those new definitions from custom_nodetypes.xml, it no longer works. The error is: ------------- Caused by: org.apache.jackrabbit.core.nodetype.InvalidNodeTypeDefException: the following node types could not be registered because of unresolvable dependencies: at org.apache.jackrabbit.core.nodetype.NodeTypeRegistry.internalRegister(NodeTypeRegistry.java:287) at org.apache.jackrabbit.core.nodetype.NodeTypeRegistry.(NodeTypeRegistry.java:207) ------------- In summary, the dependencies work when used in the same session where they where added to NodeTypeRegistry, but the dependencies do not work on the next go around when read from custom_nodetypes.xml. Note: I'm using a jackrabbit build from April 8th. Ryan