Return-Path: Delivered-To: apmail-jackrabbit-dev-archive@www.apache.org Received: (qmail 19549 invoked from network); 27 Oct 2006 08:22:59 -0000 Received: from hermes.apache.org (HELO mail.apache.org) (140.211.11.2) by minotaur.apache.org with SMTP; 27 Oct 2006 08:22:58 -0000 Received: (qmail 52261 invoked by uid 500); 27 Oct 2006 08:23:09 -0000 Delivered-To: apmail-jackrabbit-dev-archive@jackrabbit.apache.org Received: (qmail 52231 invoked by uid 500); 27 Oct 2006 08:23:09 -0000 Mailing-List: contact dev-help@jackrabbit.apache.org; run by ezmlm Precedence: bulk List-Help: List-Unsubscribe: List-Post: List-Id: Reply-To: dev@jackrabbit.apache.org Delivered-To: mailing list dev@jackrabbit.apache.org Received: (qmail 52222 invoked by uid 99); 27 Oct 2006 08:23:09 -0000 Received: from herse.apache.org (HELO herse.apache.org) (140.211.11.133) by apache.org (qpsmtpd/0.29) with ESMTP; Fri, 27 Oct 2006 01:23:09 -0700 X-ASF-Spam-Status: No, hits=0.5 required=10.0 tests=DNS_FROM_RFC_ABUSE,SPF_PASS X-Spam-Check-By: apache.org Received-SPF: pass (herse.apache.org: domain of tobias.strasser@gmail.com designates 64.233.162.200 as permitted sender) Received: from [64.233.162.200] (HELO nz-out-0102.google.com) (64.233.162.200) by apache.org (qpsmtpd/0.29) with ESMTP; Fri, 27 Oct 2006 01:22:56 -0700 Received: by nz-out-0102.google.com with SMTP id i11so523307nzi for ; Fri, 27 Oct 2006 01:22:35 -0700 (PDT) DomainKey-Signature: a=rsa-sha1; q=dns; c=nofws; s=beta; d=gmail.com; h=received:message-id:date:from:reply-to:sender:to:subject:in-reply-to:mime-version:content-type:content-transfer-encoding:content-disposition:references:x-google-sender-auth; b=qdPSKEadxbI3q7pJWW1xl1TB5WstJ519U8e39q+n21P1Ul0AzqDJ/f74ZDIfgJvomyJ4ODuvXfBSektsKzRvmGrCcInfXAQfEEHCdK6S2YU34wSJ9K4mEqRWRIMYUc8Kd0tg8hg5aUPjmiOs6JCuBWOU6uzTUddmjR+k277ytdQ= Received: by 10.65.59.20 with SMTP id m20mr4758564qbk; Fri, 27 Oct 2006 01:22:34 -0700 (PDT) Received: by 10.65.214.16 with HTTP; Fri, 27 Oct 2006 01:22:34 -0700 (PDT) Message-ID: <8be731880610270122g74915febh9b20702bd54b1f95@mail.gmail.com> Date: Fri, 27 Oct 2006 10:22:34 +0200 From: "Tobias Bocanegra" Reply-To: tobias.bocanegra@day.com Sender: tobias.strasser@gmail.com To: dev@jackrabbit.apache.org Subject: Re: FW: failed to read custom node type definitions stored in custom_nodetypes.xml In-Reply-To: MIME-Version: 1.0 Content-Type: text/plain; charset=ISO-8859-1; format=flowed Content-Transfer-Encoding: 7bit Content-Disposition: inline References: X-Google-Sender-Auth: bc676f89e5b89e75 X-Virus-Checked: Checked by ClamAV on apache.org well, weird. can you file a jira issue? regards, toby On 10/27/06, Magnus Grimsell wrote: > I'm not sure if this belongs in the dev list but since I didn't get any response on the user list I try here. Please tell me if I'm breaking any mailing list policies. > > /Magnus > > > -----Original Message----- > > From: Magnus Grimsell [mailto:magnus.grimsell@idainfront.se] > > Sent: Wednesday, October 25, 2006 3:56 PM > > To: users@jackrabbit.apache.org > > Subject: failed to read custom node type definitions stored in > > custom_nodetypes.xml > > > > > > I execute the following code on an empty repository first > > time the server is started: > > > > JackrabbitNodeTypeManager manager = > > > > (JackrabbitNodeTypeManager)session.getWorkspace().getNodeTypeM > > anager(); > > InputStream nodeTypes = > > this.getClass().getClassLoader().getResourceAsStream(res); > > manager.registerNodeTypes(nodeTypes, > > JackrabbitNodeTypeManager.TEXT_X_JCR_CND); > > session.save(); > > > > This seems to work as the tests passes. However when > > restarting the server I get the following error: > > > > Error creating a Connection Factory from class > > 'org.apache.jackrabbit.jca.JCAManagedConnectionFactory'. > > Reason: javax.resource.ResourceException: Failed to create > > session: internal error: failed to read custom node type > > definitions stored in custom_nodetypes.xml: > > > > custom_nodetypes.xml exists but is empty. I use jackrabbit JCA. > > > > Do I get this error because the repository isn't shut down > > correctly? Should I do repository.shutdown() or should that > > be handled by the connector? > > > > Thanks, > > Magnus Grimsell > > > -- -----------------------------------------< tobias.bocanegra@day.com >--- Tobias Bocanegra, Day Management AG, Barfuesserplatz 6, CH - 4001 Basel T +41 61 226 98 98, F +41 61 226 98 97 -----------------------------------------------< http://www.day.com >---