From users-return-13737-apmail-tomee-users-archive=tomee.apache.org@tomee.apache.org Fri Oct 4 17:19:22 2013 Return-Path: X-Original-To: apmail-tomee-users-archive@www.apache.org Delivered-To: apmail-tomee-users-archive@www.apache.org Received: from mail.apache.org (hermes.apache.org [140.211.11.3]) by minotaur.apache.org (Postfix) with SMTP id C4B31107B1 for ; Fri, 4 Oct 2013 17:19:22 +0000 (UTC) Received: (qmail 1249 invoked by uid 500); 4 Oct 2013 17:19:21 -0000 Delivered-To: apmail-tomee-users-archive@tomee.apache.org Received: (qmail 1208 invoked by uid 500); 4 Oct 2013 17:19:19 -0000 Mailing-List: contact users-help@tomee.apache.org; run by ezmlm Precedence: bulk List-Help: List-Unsubscribe: List-Post: List-Id: Reply-To: users@tomee.apache.org Delivered-To: mailing list users@tomee.apache.org Delivered-To: moderator for users@tomee.apache.org Received: (qmail 68588 invoked by uid 500); 4 Oct 2013 16:58:58 -0000 Delivered-To: apmail-openejb-users@openejb.apache.org X-ASF-Spam-Status: No, hits=2.3 required=5.0 tests=FORGED_YAHOO_RCVD,SPF_PASS,URI_HEX X-Spam-Check-By: apache.org Received-SPF: pass (nike.apache.org: local policy includes SPF record at spf.trusted-forwarder.org) Date: Fri, 4 Oct 2013 09:57:51 -0700 (PDT) From: wlad To: users@openejb.apache.org Message-ID: <1380905871180-4665422.post@n4.nabble.com> In-Reply-To: References: <1380818200922-4665401.post@n4.nabble.com> <1380824703259-4665404.post@n4.nabble.com> <1380836483781-4665408.post@n4.nabble.com> <1380839492142-4665409.post@n4.nabble.com> <1380895120783-4665420.post@n4.nabble.com> Subject: Re: Getting exception: "java.lang.LinkageError:" ... attempted duplicate class definition for name... MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Transfer-Encoding: 7bit X-Virus-Checked: Checked by ClamAV on apache.org Hi, You are totally correct (i myself didn't realize that at first). Actually ant deploy task is not important. It is just here beacause build.xml was build the way its content was copied from some other project that was deploying its jars to tomee, so some ant tasks remained there (even they do nothing). In this example, actually tomee is not beeing used, only JPA API. So, client can be run as Java Application. The create-database ant task works fine (execute sql script), it does create tables in previously created mysql database (db name: v7). And then runClient task (TestClient class) should connect to database, persist, update, remove entities from database, and list them. It is my fault that i didn't realize that tomee is actually not used when running client! I apologize on that, i'm still learning from these examples. -- View this message in context: http://openejb.979440.n4.nabble.com/Getting-exception-java-lang-LinkageError-attempted-duplicate-class-definition-for-name-tp4665401p4665422.html Sent from the OpenEJB User mailing list archive at Nabble.com.