Return-Path: Delivered-To: apmail-jackrabbit-users-archive@locus.apache.org Received: (qmail 669 invoked from network); 2 Jan 2009 13:36:51 -0000 Received: from hermes.apache.org (HELO mail.apache.org) (140.211.11.2) by minotaur.apache.org with SMTP; 2 Jan 2009 13:36:51 -0000 Received: (qmail 66771 invoked by uid 500); 2 Jan 2009 13:36:51 -0000 Delivered-To: apmail-jackrabbit-users-archive@jackrabbit.apache.org Received: (qmail 66260 invoked by uid 500); 2 Jan 2009 13:36:49 -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 66244 invoked by uid 99); 2 Jan 2009 13:36:49 -0000 Received: from nike.apache.org (HELO nike.apache.org) (192.87.106.230) by apache.org (qpsmtpd/0.29) with ESMTP; Fri, 02 Jan 2009 05:36:49 -0800 X-ASF-Spam-Status: No, hits=2.2 required=10.0 tests=HTML_MESSAGE,SPF_PASS X-Spam-Check-By: apache.org Received-SPF: pass (nike.apache.org: domain of todd.seiber@gmail.com designates 209.85.198.225 as permitted sender) Received: from [209.85.198.225] (HELO rv-out-0506.google.com) (209.85.198.225) by apache.org (qpsmtpd/0.29) with ESMTP; Fri, 02 Jan 2009 13:36:41 +0000 Received: by rv-out-0506.google.com with SMTP id k40so6227307rvb.31 for ; Fri, 02 Jan 2009 05:36:20 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=gamma; h=domainkey-signature:received:received:message-id:date:from:to :subject:in-reply-to:mime-version:content-type:references; bh=OB5W8g+gn6GY/FV9DuGfepstgIvDJoLenSJPS6KdDRc=; b=PCHZz+Xn+/C9FwOiKtgrTKGGDCevGo2zRWniRuheOkNKx4/0oCQHZvTbsBdsTtxAAs gcIi91uqxTW6ILK8beE0mm7OBAfubzV8tQ2/zG2CWZ9diuENaTZuc8qaeTFeuMx/sUhL XfOSCIlED3WW/73ybZjnV3RHKL1uOSvSoG57c= DomainKey-Signature: a=rsa-sha1; c=nofws; d=gmail.com; s=gamma; h=message-id:date:from:to:subject:in-reply-to:mime-version :content-type:references; b=uLcAWI0WkAlRnRZBNM4S4ZVy0K4/FCNwoJxRI0COorjzUgSKLqCq/oHFPbMQi6uH2j WG+IyIejlpCq6w59JZ6O8dDZ/oreiECjEw3gS3Zi5Evq1LWr+C3vJX5lrFYHuE3SvhbH CkZsAYPbx8pTflmKno9opgBmZtyngycT8Kjuc= Received: by 10.140.201.8 with SMTP id y8mr8873154rvf.12.1230903379978; Fri, 02 Jan 2009 05:36:19 -0800 (PST) Received: by 10.140.118.5 with HTTP; Fri, 2 Jan 2009 05:36:19 -0800 (PST) Message-ID: <8ce7e61c0901020536j404bf5fcrb71f7adf1f8d6156@mail.gmail.com> Date: Fri, 2 Jan 2009 08:36:19 -0500 From: "Todd Seiber" To: users@jackrabbit.apache.org Subject: Re: ocm: is not a registered namespace prefix. In-Reply-To: <868295.52255.qm@web82602.mail.mud.yahoo.com> MIME-Version: 1.0 Content-Type: multipart/alternative; boundary="----=_Part_85442_29304394.1230903379966" References: <868295.52255.qm@web82602.mail.mud.yahoo.com> X-Virus-Checked: Checked by ClamAV on apache.org ------=_Part_85442_29304394.1230903379966 Content-Type: text/plain; charset=ISO-8859-1 Content-Transfer-Encoding: 7bit Content-Disposition: inline Try workspace.getNamespaceRegistry().registerNamespace("ocm", " http://jackrabbit.apache.org/ocm"); On Fri, Jan 2, 2009 at 12:21 AM, Cheng Zhang wrote: > Hi, > > I started to use OCM to save object to repository today and got an > exception below. It seems that I need to register a namespace ocm. Can > anybody please tell me how to fix it? > > org.apache.jackrabbit.ocm.exception.ObjectContentManagerException: Cannot > create new node of type nt:folder from mapped class class > com.openandgreen.service.system.Folder; nested exception is > javax.jcr.NamespaceException: ocm: is not a registered namespace prefix. > javax.jcr.NamespaceException: ocm: is not a registered namespace prefix. > > Thanks a lot, > Kevin > > -- Todd Seiber 830 Fishing Creek Rd. New Cumberland, PA 17070 h. 717-938-5778 c. 717-497-1742 e. todd.seiber@gmail.com ------=_Part_85442_29304394.1230903379966--