Return-Path: Delivered-To: apmail-geronimo-dev-archive@www.apache.org Received: (qmail 52964 invoked from network); 1 Dec 2005 23:29:07 -0000 Received: from hermes.apache.org (HELO mail.apache.org) (209.237.227.199) by minotaur.apache.org with SMTP; 1 Dec 2005 23:29:07 -0000 Received: (qmail 68125 invoked by uid 500); 1 Dec 2005 23:28:58 -0000 Delivered-To: apmail-geronimo-dev-archive@geronimo.apache.org Received: (qmail 68083 invoked by uid 500); 1 Dec 2005 23:28:56 -0000 Mailing-List: contact dev-help@geronimo.apache.org; run by ezmlm Precedence: bulk list-help: list-unsubscribe: List-Post: Reply-To: dev@geronimo.apache.org List-Id: Delivered-To: mailing list dev@geronimo.apache.org Received: (qmail 68072 invoked by uid 99); 1 Dec 2005 23:28:56 -0000 Received: from asf.osuosl.org (HELO asf.osuosl.org) (140.211.166.49) by apache.org (qpsmtpd/0.29) with ESMTP; Thu, 01 Dec 2005 15:28:56 -0800 X-ASF-Spam-Status: No, hits=0.5 required=10.0 tests=DNS_FROM_RFC_ABUSE X-Spam-Check-By: apache.org Received-SPF: pass (asf.osuosl.org: local policy) Received: from [66.163.169.225] (HELO smtp105.mail.sc5.yahoo.com) (66.163.169.225) by apache.org (qpsmtpd/0.29) with SMTP; Thu, 01 Dec 2005 15:30:23 -0800 Received: (qmail 16395 invoked from network); 1 Dec 2005 23:28:14 -0000 DomainKey-Signature: a=rsa-sha1; q=dns; c=nofws; s=s1024; d=yahoo.com; h=Received:Mime-Version:In-Reply-To:References:Content-Type:Message-Id:Content-Transfer-Encoding:From:Subject:Date:To:X-Mailer; b=Ozujzmtd1byUnawSu/aMmT51kL7hAJ3hfKKw0B4uFQZC/apw4pHiirMrc7dyNEXqMTksfPYHGd1CFSLnqVpE3XeNsZx9+hfO3HB5oYhEbkUS2mRuf3iDPP3RipYmcM8i5NTUxReIcpAnkqtyG4KkhtO68Bp1YCCuAfChLjrtMeQ= ; Received: from unknown (HELO ?192.168.1.5?) (david?jencks@66.93.38.137 with plain) by smtp105.mail.sc5.yahoo.com with SMTP; 1 Dec 2005 23:28:13 -0000 Mime-Version: 1.0 (Apple Message framework v622) In-Reply-To: References: Content-Type: text/plain; charset=US-ASCII; delsp=yes; format=flowed Message-Id: <1de47bd5166b595100a3f166b4c998bd@yahoo.com> Content-Transfer-Encoding: 7bit From: David Jencks Subject: Re: Date: Thu, 1 Dec 2005 15:28:07 -0800 To: dev@geronimo.apache.org X-Mailer: Apple Mail (2.622) X-Virus-Checked: Checked by ClamAV on apache.org X-Spam-Rating: minotaur.apache.org 1.6.2 0/1000/N resource link and target name are exclusive choices, not a sequence or all. david jencks On Dec 1, 2005, at 3:13 PM, Sachin Patel wrote: > I'm deploying a simple web app with a dummpy resource-ref on a recent > snapshot and I'm unable to deploy as I get the exception below. If I > remove > the target-name element, it deploys. > > Why am I getting a "Element not allowed" validation error when this is > a > valid element in the schema? > > > Caused by: org.apache.xmlbeans.XmlException: Invalid deployment > descriptor: > [error: cvc-complex-type.2.4b: Element not allowed: > target-name@http://geronimo.apache.org/xml/ns/naming-1.0 in element > resource-ref@http://geronimo.apache.org/xml/ns/naming-1.0] > Descriptor: > xmlns:nam="http://geronimo.apache.org/xml/ns/naming-1.0" > xmlns:sec="http://geronimo.apache.org/xml/ns/security-1.1" > xmlns:sys="http://geronimo.apache.org/xml/ns/deployment-1.0" > xmlns:jet="http://geronimo.apache.org/xml/ns/j2ee/web/jetty-1.0"> > > /test > > false classloader> > > > foo > > bar > blah > > > > at > org.apache.geronimo.schema.SchemaConversionUtils.validateDD(SchemaConve > rsion > Utils.java:594) > at > org.apache.geronimo.jetty.deployment.JettyModuleBuilder.getJettyWebApp( > Jetty > ModuleBuilder.java:321) > ... 72 more > >