Return-Path: Delivered-To: apmail-openjpa-users-archive@minotaur.apache.org Received: (qmail 48188 invoked from network); 18 May 2009 15:34:41 -0000 Received: from hermes.apache.org (HELO mail.apache.org) (140.211.11.3) by minotaur.apache.org with SMTP; 18 May 2009 15:34:41 -0000 Received: (qmail 39984 invoked by uid 500); 18 May 2009 15:34:41 -0000 Delivered-To: apmail-openjpa-users-archive@openjpa.apache.org Received: (qmail 39959 invoked by uid 500); 18 May 2009 15:34:41 -0000 Mailing-List: contact users-help@openjpa.apache.org; run by ezmlm Precedence: bulk List-Help: List-Unsubscribe: List-Post: List-Id: Reply-To: users@openjpa.apache.org Delivered-To: mailing list users@openjpa.apache.org Received: (qmail 39949 invoked by uid 99); 18 May 2009 15:34:41 -0000 Received: from athena.apache.org (HELO athena.apache.org) (140.211.11.136) by apache.org (qpsmtpd/0.29) with ESMTP; Mon, 18 May 2009 15:34:41 +0000 X-ASF-Spam-Status: No, hits=-0.0 required=10.0 tests=SPF_PASS X-Spam-Check-By: apache.org Received-SPF: pass (athena.apache.org: domain of Naomi-san@gmx.de designates 213.165.64.20 as permitted sender) Received: from [213.165.64.20] (HELO mail.gmx.net) (213.165.64.20) by apache.org (qpsmtpd/0.29) with SMTP; Mon, 18 May 2009 15:34:30 +0000 Received: (qmail 25799 invoked by uid 0); 18 May 2009 15:34:08 -0000 Received: from 82.150.225.18 by www066.gmx.net with HTTP; Mon, 18 May 2009 17:34:06 +0200 (CEST) Content-Type: text/plain; charset="iso-8859-1" Date: Mon, 18 May 2009 17:34:06 +0200 From: Naomi-san@gmx.de In-Reply-To: <4A117AFE.9090505@apache.org> Message-ID: <20090518153406.237790@gmx.net> MIME-Version: 1.0 References: <20090518130631.183310@gmx.net> <1242655576800-2933295.post@n2.nabble.com> <20090518142959.191820@gmx.net> <4A117AFE.9090505@apache.org> Subject: Re: Runtime Enhancement: Problems with Ant Task in Eclipse To: users@openjpa.apache.org X-Authenticated: #13475631 X-Flags: 0001 X-Mailer: WWW-Mail 6100 (Global Message Exchange) X-Priority: 3 X-Provags-ID: V01U2FsdGVkX1+MaiJoJWOMVuHCIUgdkPAhqj7DoS6dtqU7eFSYof 4Y5zJVpmRSLZonfJ6vs+ZsuDNuy90ED2+65g== Content-Transfer-Encoding: 8bit X-GMX-UID: 2k0mfYolbGInYVbpoGRnzYJvcmZ1Zlx8 X-FuHaFi: 0.49 X-Virus-Checked: Checked by ClamAV on apache.org Hey David, thank you for the tip! I checked one of my entities with javap: 1. After a clean and manually invoking the enhance task 2. After execution of my application Both times the class has pc* methods, so it seems that they are enhanced and not overwritten by Eclipse. So why the error message? :( -Naomi -------- Original-Nachricht -------- > Datum: Mon, 18 May 2009 11:13:02 -0400 > Von: David Ezzio > An: users@openjpa.apache.org > Betreff: Re: Runtime Enhancement: Problems with Ant Task in Eclipse > Hi Naomi, > > Three easy ways to verify that your classes have been enhanced. > > One install DJ Decompiler (Windows) or another decompiler and verify > that the class file is enhanced. > > Two, run the JDK command: > javap -c > and look for a bunch of methods with names that start with "pc". > > Three, do a clean (unenhanced compile) and note file sizes. > Then do the enhancement step and expect to see a 4+ KB gain in file > sizes for enhanced files. > > Once you can tell unequivocally whether a file is enhanced, I'm sure > you'll have luck troubleshooting the issue. > > Cheers, > > David > > Naomi-san@gmx.de wrote: > > Hi Rick, > > > > I also had that thought, but the message lists all of my entities, so I > think they all have not been enhanced. > > > > I oriented on the following tutorial for creating and invoking the build > script: > > > > > http://webspherepersistence.blogspot.com/2009/04/openjpa-enhancement-eclipse-builder.html > > > > I edited the XML to avoid setting and checking the arguments and > additionally added my entities to the build path. > > > > I also invoked the script on Eclipse's "Clean" process (does not make > sense, I think, does it?) and I started it "manually" (right click on the > enhance task and choosing "run as" - "Ant build"). > > > > -Naomi > > > > -------- Original-Nachricht -------- > >> Datum: Mon, 18 May 2009 07:06:16 -0700 (PDT) > >> Von: Rick Curtis > >> An: users@openjpa.apache.org > >> Betreff: Re: Runtime Enhancement: Problems with Ant Task in Eclipse > > > >> Is it possible that only a portion of your Entities are being enhanced > by > >> the > >> build script? How are you invoking the ant build script? > >> > >> -Rick > >> -- > >> View this message in context: > >> > http://n2.nabble.com/Runtime-Enhancement%3A-Problems-with-Ant-Task-in-Eclipse-tp2932839p2933295.html > >> Sent from the OpenJPA Users mailing list archive at Nabble.com. > > -- Neu: GMX FreeDSL Komplettanschluss mit DSL 6.000 Flatrate + Telefonanschluss f�r nur 17,95 Euro/mtl.!* http://dslspecial.gmx.de/freedsl-surfflat/?ac=OM.AD.PD003K11308T4569a