Return-Path: Delivered-To: apmail-ant-dev-archive@www.apache.org Received: (qmail 20719 invoked from network); 11 Apr 2005 10:33:45 -0000 Received: from hermes.apache.org (HELO mail.apache.org) (209.237.227.199) by minotaur.apache.org with SMTP; 11 Apr 2005 10:33:45 -0000 Received: (qmail 81533 invoked by uid 500); 11 Apr 2005 10:33:43 -0000 Delivered-To: apmail-ant-dev-archive@ant.apache.org Received: (qmail 81497 invoked by uid 500); 11 Apr 2005 10:33:42 -0000 Mailing-List: contact dev-help@ant.apache.org; run by ezmlm Precedence: bulk List-Unsubscribe: List-Subscribe: List-Help: List-Post: List-Id: "Ant Developers List" Reply-To: "Ant Developers List" Delivered-To: mailing list dev@ant.apache.org Received: (qmail 81480 invoked by uid 500); 11 Apr 2005 10:33:42 -0000 Received: (qmail 81477 invoked by uid 99); 11 Apr 2005 10:33:42 -0000 X-ASF-Spam-Status: No, hits=0.0 required=10.0 tests= X-Spam-Check-By: apache.org Received: from ajax-1.apache.org (HELO ajax.apache.org) (192.87.106.226) by apache.org (qpsmtpd/0.28) with ESMTP; Mon, 11 Apr 2005 03:33:42 -0700 Received: from ajax.apache.org (ajax.apache.org [127.0.0.1]) by ajax.apache.org (Postfix) with ESMTP id 56B3E2D2 for ; Mon, 11 Apr 2005 12:17:38 +0200 (CEST) Content-Type: text/plain; charset="us-ascii" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit From: Apache Wiki To: ant-cvs@apache.org Date: Mon, 11 Apr 2005 10:17:37 -0000 Message-ID: <20050411101737.4543.18817@ajax.apache.org> Subject: [Ant Wiki] Update of "AntNewbies" by SteveLoughran X-Virus-Checked: Checked X-Spam-Rating: minotaur.apache.org 1.6.2 0/1000/N Dear Wiki user, You have subscribed to a wiki page or wiki category on "Ant Wiki" for change notification. The following page has been changed by SteveLoughran: http://wiki.apache.org/ant/AntNewbies The comment on the change is: explain error message more clearly. ------------------------------------------------------------------------------ I'm thinking it either has to do with their version of JDK (1.4.1_02) or Ant (they claim it's 1.6.1). Anyone seen this error before? I can't get it to reproduce on my system. + '''Answer #9''' - Any error message {{{Element doesn't support nested element of type }}} means that there is + a bit of the build file that goes + + {{{ + + + + }}} + + And the element "a" -be it task, datatype, whatever, does not support nested elements of type "b". It is a parse time error, done when mapping XML nodes to the implementation classes. In the initial problem snippet, there is no way the sample code could raise this error. There is something else wrong with the build file, something like {{{echo ... }}}. It has nothing to do with the JDK or Ant version, as no version of Ant supports {{{}}} as a nested element of {{{}}}. + + + If you see this error, here is what you should do + + * Use an XML-aware editor/mode to make sure you are doing well formed XML. + * Find the outer element at the reported line. + * Locate the inner element that is causing the problem. + * Verify in your Ant manual that it is allowed in the outer element, if not, remove it. + * If it is apparently allowed, you have a misspelling or a mismatch between your documentation and + the version of ant that is actually running. + + --------------------------------------------------------------------- To unsubscribe, e-mail: dev-unsubscribe@ant.apache.org For additional commands, e-mail: dev-help@ant.apache.org