Return-Path: X-Original-To: apmail-geronimo-dev-archive@www.apache.org Delivered-To: apmail-geronimo-dev-archive@www.apache.org Received: from mail.apache.org (hermes.apache.org [140.211.11.3]) by minotaur.apache.org (Postfix) with SMTP id 36893523E for ; Wed, 11 May 2011 01:57:38 +0000 (UTC) Received: (qmail 37729 invoked by uid 500); 11 May 2011 01:57:37 -0000 Delivered-To: apmail-geronimo-dev-archive@geronimo.apache.org Received: (qmail 37686 invoked by uid 500); 11 May 2011 01:57:37 -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 37679 invoked by uid 99); 11 May 2011 01:57:37 -0000 Received: from athena.apache.org (HELO athena.apache.org) (140.211.11.136) by apache.org (qpsmtpd/0.29) with ESMTP; Wed, 11 May 2011 01:57:37 +0000 X-ASF-Spam-Status: No, hits=-0.7 required=5.0 tests=FREEMAIL_FROM,RCVD_IN_DNSWL_LOW,RFC_ABUSE_POST,SPF_PASS,T_TO_NO_BRKTS_FREEMAIL X-Spam-Check-By: apache.org Received-SPF: pass (athena.apache.org: domain of david.blevins@gmail.com designates 209.85.212.172 as permitted sender) Received: from [209.85.212.172] (HELO mail-px0-f172.google.com) (209.85.212.172) by apache.org (qpsmtpd/0.29) with ESMTP; Wed, 11 May 2011 01:57:30 +0000 Received: by pxi6 with SMTP id 6so38500pxi.31 for ; Tue, 10 May 2011 18:57:09 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=gamma; h=domainkey-signature:content-type:mime-version:subject:from :in-reply-to:date:content-transfer-encoding:message-id:references:to :x-mailer; bh=ij07IyTIo+xCqOIdBAZ7tkQ96pOVs5a+/I5Es57FRf8=; b=fa78SLzUIA5Afb2tCQgur+rgOIX4fIcBByHUrqH8iZiT1HpG2BpaHhZi5TGgv9INcU bBqreEzhe7rvUc3QQTYXFqu45APVrZK4eIhdhqx701Fr2XNuUAefqptOBOMZMde4q0pn qv21qnpr6QcjvqUceO4k2F0cjkbLGJKQKnWZ0= DomainKey-Signature: a=rsa-sha1; c=nofws; d=gmail.com; s=gamma; h=content-type:mime-version:subject:from:in-reply-to:date :content-transfer-encoding:message-id:references:to:x-mailer; b=EdgXVFO17fxDNqf5QGpBiFc/Y2bCaXJ+RfNnptAdt1Zz5xBINNHZ5RSXSDyMvW41QB rm1anX8lC2TpSuU1P08sth7QJmjTHN9lLFQKAjnVepZFnMhhwLPfvNMsDamstjGT6QD/ ALAAZ/Of3AZhU8FSjJzjQBOriFz+uhith2F/E= Received: by 10.68.29.228 with SMTP id n4mr12388577pbh.500.1305079029800; Tue, 10 May 2011 18:57:09 -0700 (PDT) Received: from [192.168.0.2] (cpe-76-175-195-209.socal.res.rr.com [76.175.195.209]) by mx.google.com with ESMTPS id t7sm2499028pbj.63.2011.05.10.18.57.07 (version=TLSv1/SSLv3 cipher=OTHER); Tue, 10 May 2011 18:57:08 -0700 (PDT) Content-Type: text/plain; charset=us-ascii Mime-Version: 1.0 (Apple Message framework v1084) Subject: Re: LinkageError woes From: David Blevins In-Reply-To: <6E6249FE-D79A-4269-9ECC-8ACBE10BE688@gmail.com> Date: Tue, 10 May 2011 18:57:06 -0700 Content-Transfer-Encoding: quoted-printable Message-Id: <39AD0332-A07A-4E62-B12A-AC4A8EF43518@gmail.com> References: <46738C49-4ACD-4BFE-8ED5-6CD198450F8C@gmail.com> <99D3BD9A-ECA4-45BE-A0A3-FBEF06CBBDE5@gmail.com> <6E6249FE-D79A-4269-9ECC-8ACBE10BE688@gmail.com> To: dev@geronimo.apache.org X-Mailer: Apple Mail (2.1084) On May 10, 2011, at 5:56 PM, Kevan Miller wrote: >=20 > On May 10, 2011, at 8:19 PM, David Blevins wrote: >=20 >>=20 >> On May 10, 2011, at 3:48 PM, Kevan Miller wrote: >>=20 >>>=20 >>> On May 10, 2011, at 5:08 PM, Kevan Miller wrote: >>>=20 >>>>=20 >>>> On May 10, 2011, at 3:54 PM, David Blevins wrote: >>>>=20 >>>>> Running out of places to perform our LinkageError hack. >>>>>=20 >>>>> We've been doing the "try again" routine on all our code (xbean, = openwebbeans, etc) and it seems we've followed that path as far as it = will lead us. Currently stuck at the following with no good ideas on = how to work around it. >>>>=20 >>>> Yuck. Thanks for getting us this far! >>>>=20 >>>> For some reason, I had the notion that this was all going to be = resolved by moving up to the latest OpenJPA release. Obviously, I was = mis-guided (at best) and definitely hadn't gotten to the test validation = stage.=20 >>>>=20 >>>> I guess OpenJPA would be where I might hope we could resolve... I = can try banging my head against the wall for a bit... >>>=20 >>> Well, one reason why OpenJPA wouldn't help resolve is if OpenJPA = weren't involved... Hmph. >>>=20 >>> If my memory is correct, this will work on Felix... >>=20 >> Indeed it seems like an Equinox issue. >>=20 >> Tried a hack involving wrapping the classloader with one that = double-tries loadClass if a LinkageError is thrown. Didn't work. Might = have needed to have done the hack a little deeper -- I just did the = wrapping in TomcatWebAppContext. >>=20 >> At the moment trying to find at least some dirty hack that will let = me get far enough to see if the test will pass sans this issue. Current = hack idea: eagerly load all annotation classes. >=20 > Started looking at Equinox code a bit. Also sent of a question. See = who gets there first... Eagerly loading annotation classes alone didn't do the trick. Loading = *all* the classes does work and results in all 5 persistence tests to = pass. I have a hunch that eagerly loading annotations *and* enums might do the = trick. Going to see if that is the case as that might give us more = information about the issue and potentially a workaround that might be = one we can stomach. Loading all the classes eagerly is not ok, but = eagerly loading annotation and enum classes might be livable till we can = find the real issue. -David