Return-Path: Delivered-To: apmail-maven-users-archive@www.apache.org Received: (qmail 56338 invoked from network); 1 Jun 2007 09:05:00 -0000 Received: from hermes.apache.org (HELO mail.apache.org) (140.211.11.2) by minotaur.apache.org with SMTP; 1 Jun 2007 09:05:00 -0000 Received: (qmail 14924 invoked by uid 500); 1 Jun 2007 08:34:15 -0000 Delivered-To: apmail-maven-users-archive@maven.apache.org Received: (qmail 14868 invoked by uid 500); 1 Jun 2007 08:34:14 -0000 Mailing-List: contact users-help@maven.apache.org; run by ezmlm Precedence: bulk List-Unsubscribe: List-Help: List-Post: List-Id: "Maven Users List" Reply-To: "Maven Users List" Delivered-To: mailing list users@maven.apache.org Received: (qmail 14857 invoked by uid 99); 1 Jun 2007 08:34:14 -0000 Received: from herse.apache.org (HELO herse.apache.org) (140.211.11.133) by apache.org (qpsmtpd/0.29) with ESMTP; Fri, 01 Jun 2007 01:34:14 -0700 X-ASF-Spam-Status: No, hits=-0.0 required=10.0 tests=SPF_PASS X-Spam-Check-By: apache.org Received-SPF: pass (herse.apache.org: domain of ejbengine@gmail.com designates 64.233.162.237 as permitted sender) Received: from [64.233.162.237] (HELO nz-out-0506.google.com) (64.233.162.237) by apache.org (qpsmtpd/0.29) with ESMTP; Fri, 01 Jun 2007 01:34:10 -0700 Received: by nz-out-0506.google.com with SMTP id q3so419625nzb for ; Fri, 01 Jun 2007 01:33:49 -0700 (PDT) DKIM-Signature: a=rsa-sha1; c=relaxed/relaxed; d=gmail.com; s=beta; h=domainkey-signature:received:received:message-id:date:from:to:subject:in-reply-to:mime-version:content-type:content-transfer-encoding:content-disposition:references; b=D+PgMOxJkSBzFRrwp/USgIBsuYioQJtHrbcEhvoBeFXfJw5NJ1lUH0BRPKPF+09wMojLbsDpMkRLi1i7gZ0OH5N1VwxkzOj3Ql1qMvcTyNXFr9Gh03w7787I7iAD5a+gsIOFk1bWAHMFbApUr4TT8s2JJ0kKga390nRgHcGRetQ= DomainKey-Signature: a=rsa-sha1; c=nofws; d=gmail.com; s=beta; h=received:message-id:date:from:to:subject:in-reply-to:mime-version:content-type:content-transfer-encoding:content-disposition:references; b=GEmjEdWBBX4Mo2mW2pZrzJY2w42VccGZeO7NZA7Y3jsVdikfIKKUmmXo5jv0ScMRWVXELCm74238CjHS8F63BlKFgIrcya6jWJalhhSt5c+cBMfPwZaLwHXStV0AAalnmchuwmLn3DFjOdQZgCNlWy+wwjBOjJmPMhxxY2tc9Qg= Received: by 10.114.177.1 with SMTP id z1mr1497813wae.1180686828737; Fri, 01 Jun 2007 01:33:48 -0700 (PDT) Received: by 10.114.174.9 with HTTP; Fri, 1 Jun 2007 01:33:43 -0700 (PDT) Message-ID: <7e3b6c100706010133o7e85e422nd7f4298f642aff21@mail.gmail.com> Date: Fri, 1 Jun 2007 10:33:43 +0200 From: "Jeff Mutonho" To: "Maven Users List" Subject: Re: Could this be an xdoclet-maven-plugin issue? In-Reply-To: <7e3b6c100705310314i113f2dbfr185b8699dfcfb78b@mail.gmail.com> MIME-Version: 1.0 Content-Type: text/plain; charset=ISO-8859-1; format=flowed Content-Transfer-Encoding: 7bit Content-Disposition: inline References: <7e3b6c100705310314i113f2dbfr185b8699dfcfb78b@mail.gmail.com> X-Virus-Checked: Checked by ClamAV on apache.org I used XML Spy to validate the generated hbm.xml files and found out that indeed one of my hbm.xml , namely Person.hbm.xml , file is failing validation in XML Spy .The offending part is "unique" attribute which appears twice in the following entry : These hbm.xml files are being generated using the xdoclet tool.I'm using both Ant and Maven to build my application's ear files.The ear file build by Ant deploys successfully even and the Maven one fails , even though they both have the same NOT-WELL formed Person.hbm.xml. Initially I thought there's a difference in version between the dom4j jars in the ear files , but both are using the same one , dom4j-1.6.1.jar. How then is it possible that the NOT-WELL formed Person.hbm.xml passes validation in the Ant generated ear file , but fails in the Maven generated ear file?What could I be over looking here? Why is xdoclet generating the two "unique" fields ? The code looks like : /** * @return the contact details linked to the person * @hibernate.many-to-one class="za.co.introspect.portal.ContactDetails" * cascade="save-update" * column="contactdetails_id" not-null="false" unique="true" */ public ContactDetails getContactDetails() { return contactDetails; } public void setContactDetails(ContactDetails contactDetails) { this.contactDetails = contactDetails; } "Don't take the name of root in vain." Jeff Mutonho Cape Town South Africa GoogleTalk : ejbengine Skype : ejbengine Registered Linux user number 366042 --------------------------------------------------------------------- To unsubscribe, e-mail: users-unsubscribe@maven.apache.org For additional commands, e-mail: users-help@maven.apache.org