X-CGP-ClamAV-Result: CLEAN X-VirusScanner: Niversoft's CGPClamav Helper v1.25a (ClamAV 0.103.9/27060) X-Junk-Score: 0 [] X-KAS-Score: 0 [] Return-Path: Received: from mail-vs1-f53.google.com ([209.85.217.53] verified) by selbstdenker.ag (CommuniGate Pro SMTP 6.3.18) with ESMTPS id 31436756 for webobjects-dev@wocommunity.org; Sat, 14 Oct 2023 02:07:36 +0200 Received-SPF: pass receiver=post.selbstdenker.com; client-ip=209.85.217.53; envelope-from=recurve@cocoanutstech.com Received: by mail-vs1-f53.google.com with SMTP id ada2fe7eead31-457c2d81f7fso592190137.3 for ; Fri, 13 Oct 2023 17:07:36 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=chatnbike.com; s=chatnbike; t=1697242035; x=1697846835; darn=wocommunity.org; h=references:to:in-reply-to:subject:date:mime-version:message-id:from :from:to:cc:subject:date:message-id:reply-to; bh=SEV2hj6YM0I0R/KwSpdu3rAsuyhXdi9w/qQ6G5gmbGE=; b=DTCxiIQYBkPTolXmCOleMdFqR6ENz1TYe45zUHh1O2rFfp7n4yB9n5vQzTKOUX11UX Stff3saoqStfgphwSf+VpgPduV9xgqaCPJPVPDrszr7kkzmDSo4DciTO0p39F1bQ7jqX kjuV1DNrKiD+fC2VJdZslgZQdoNaYDaEhP+CY= X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1697242035; x=1697846835; h=references:to:in-reply-to:subject:date:mime-version:message-id:from :x-gm-message-state:from:to:cc:subject:date:message-id:reply-to; bh=SEV2hj6YM0I0R/KwSpdu3rAsuyhXdi9w/qQ6G5gmbGE=; b=toZbq+1LYUDsACDdXZVF1T0u2Uy8/8RRDP0pl8W56qExduSQ2PZFyelEled8QHtVvT T9sX76wHPbT4auo/xyfDdPo6+UfOqsXmC7Hr9S62OlidbJT3cE8tCGEu4e4a17XvkSHD zNElw/6yO+QfOTYEzvr9l25UfX4fmfKy5KOHzLGXW0yqayXizbGJCCDLbVyUU5UzoZTg jTOCk23dQjEqjFbE97eaj+6JdrDY8za2WmrQrVxdCK0qfI1h9oMhHPCmwn35LdpuEaWQ HvGgt/NbAwdJhDiPaFBHD/hYFfzPNNcW3+JVg/VNKeXLX20F7xuiOwlcsGQRVMWFITmm b74A== X-Gm-Message-State: AOJu0YyYPaOt650PamRbRFTwVuoX1mWfQMtVwmwU6UKXlmdJOcYijQcX ZcLB55KzmDDj9Yxv7xShyJQtTwXHOY9Xv2nEmtQ= X-Google-Smtp-Source: AGHT+IGwyZJLfrqIPzPvE2i+kVQ/VwHLrTzn9gZsGigHzIHwzQCF7IHFe80FgBRU5bpBnwZhv73Q4g== X-Received: by 2002:a05:6102:904:b0:452:8423:e957 with SMTP id x4-20020a056102090400b004528423e957mr27749900vsh.28.1697242034769; Fri, 13 Oct 2023 17:07:14 -0700 (PDT) Return-Path: Received: from smtpclient.apple (pool-173-79-21-236.washdc.fios.verizon.net. [173.79.21.236]) by smtp.gmail.com with ESMTPSA id ie4-20020a05622a698400b00403ad6ec2e8sm998879qtb.26.2023.10.13.17.07.13 (version=TLS1_2 cipher=ECDHE-ECDSA-AES128-GCM-SHA256 bits=128/128); Fri, 13 Oct 2023 17:07:13 -0700 (PDT) From: Aaron Rosenzweig Message-Id: <9E6B7EE9-7C38-4882-8712-316007975554@chatnbike.com> Content-Type: multipart/alternative; boundary="Apple-Mail=_B1E34DC6-DC9C-49EF-9E67-9CAF60C552AC" Mime-Version: 1.0 (Mac OS X Mail 16.0 \(3696.120.41.1.3\)) Date: Fri, 13 Oct 2023 20:07:12 -0400 Subject: Re: [WO-DEV] ERJars collision with 3rd party jar In-Reply-To: To: WebObjects & WOnder Development References: X-Mailer: Apple Mail (2.3696.120.41.1.3) --Apple-Mail=_B1E34DC6-DC9C-49EF-9E67-9CAF60C552AC Content-Transfer-Encoding: quoted-printable Content-Type: text/plain; charset=utf-8 Hi Markus,=20 Maven isn=E2=80=99t a silver bullet, you don=E2=80=99t have to go to it = at this moment and doing so may not solve your issues anyway. If you = have some code that uses an old API and other code that uses a newer API = you will be in a pickle.=20 I didn=E2=80=99t fully understand what you said. On the one hand, you = were able to get the twillio jar loaded first in Eclipse and things were = good. Then you said no matter how you rearrange, it didn=E2=80=99t work. = So which is it? Could you rearrange or not?=20 Perhaps you are saying that within Eclipse you can rearrange and get = things to work=E2=80=A6 and maybe in Jenkins/Hudson (if you are using = that) you can=E2=80=99t get it to build. I don=E2=80=99t know, I=E2=80=99m= only guessing. If this is indeed the case then maybe in the short term = you can build the .woa from Eclipse and upload that until you fix = Jenkins.=20 Hope you get it figured out. It must be very frustrating.=20 > On Oct 12, 2023, at 5:14 PM, Markus Ruggiero (rucotec) = wrote: >=20 > I have a big (?) problem. >=20 > We have a rather complex Wonder app built from several custom = frameworks and a ton of Wonder frameworks. That=E2=80=99s all good so = far. But now I need to include a 3rd party jar for sending out SMS/text = (twilio.com ). I created a simple out-of-the-box = Wonder application and included that jar as a library. The app includes = the standard ERJar framework. When I run the app I get a crash because = the twilio lib makes a call to some Apache httpclient stuff that does = not exist in ERJar (it is obviously newer). I can get a built jar = including all dependencies from twilio. Adding this to my project = instead of the =E2=80=9Cnaked=E2=80=9D one I still get the same crash. = BUT reordering the class path in Eclipse so that twilio lib comes before = ERJars makes everything work. >=20 > So I tried to include that complete twilio jar into my big Wonder App. = But no matter what I do, I always get the crash that something in = httpclient cannot be resolved. Dumping java.class.path clearly shows = that ERJar is before my library, not matter how I try to rearrange the = class path. So it seem that in my complex setup with included other = custom frameworks ERJar is always moved further up and thus shadows the = newer classes (why does this not happen with the initial simple Hello = World app?) >=20 > How can I resolve this class path issue? All my projects are still = ant-based.=20 >=20 > Please don=E2=80=99t tell me to switch to maven! I simply do not have = the time to convert everything. I started to read up on maven but then = urgent issues and required new functionality took all my time away. And = as long as I could make things work easily there was no need to go = maven. So for the sake of my schedule I really hope there is a way to = get that stuff working in my ant setup, at least for the time being. >=20 > Any ideas? > Thanks a lot > ---markus--- >=20 --Apple-Mail=_B1E34DC6-DC9C-49EF-9E67-9CAF60C552AC Content-Transfer-Encoding: quoted-printable Content-Type: text/html; charset=utf-8 Hi = Markus, 

Maven = isn=E2=80=99t a silver bullet, you don=E2=80=99t have to go to it at = this moment and doing so may not solve your issues anyway. If you have = some code that uses an old API and other code that uses a newer API you = will be in a pickle. 

I didn=E2=80=99t fully understand what you said. On the one = hand, you were able to get the twillio jar loaded first in Eclipse and = things were good. Then you said no matter how you rearrange, it didn=E2=80= =99t work. So which is it? Could you rearrange or not? 

Perhaps you are saying = that within Eclipse you can rearrange and get things to work=E2=80=A6 = and maybe in Jenkins/Hudson (if you are using that) you can=E2=80=99t = get it to build. I don=E2=80=99t know, I=E2=80=99m only guessing. If = this is indeed the case then maybe in the short term you can build the = .woa from Eclipse and upload that until you fix Jenkins. 

Hope you get it figured = out. It must be very frustrating. 

On Oct 12, 2023, at 5:14 PM, Markus Ruggiero (rucotec) <markus.ruggiero@rucotec.ch> wrote:

I have a big (?) = problem.

We have a = rather complex Wonder app built from several custom frameworks and a ton = of Wonder frameworks. That=E2=80=99s all good so far. But now I need to = include a 3rd party jar for sending out SMS/text (twilio.com). I created a = simple out-of-the-box Wonder application and included that jar as a = library. The app includes the standard ERJar framework. When I run the = app I get a crash because the twilio lib makes a call to some Apache = httpclient stuff that does not exist in ERJar (it is obviously newer). I = can get a built jar including all dependencies from twilio. Adding this = to my project instead of the =E2=80=9Cnaked=E2=80=9D one I still get the = same crash. BUT reordering the class path in Eclipse so that twilio lib = comes before ERJars makes everything work.

So I tried to include that complete = twilio jar into my big Wonder App. But no matter what I do, I always get = the crash that something in httpclient cannot be resolved. Dumping = java.class.path clearly shows that ERJar is before my library, not = matter how I try to rearrange the class path. So it seem that in my = complex setup with included other custom frameworks ERJar is always = moved further up and thus shadows the newer classes (why does this not = happen with the initial simple Hello World app?)

How can I resolve this class path = issue? All my projects are still = ant-based. 

Please don=E2=80=99t = tell me to switch to maven! I simply do not have the time to convert = everything. I started to read up on maven but then urgent issues and = required new functionality took all my time away. And as long as I could = make things work easily there was no need to go maven. So for the sake = of my schedule I really hope there is a way to get that stuff working in = my ant setup, at least for the time being.

Any = ideas?
Thanks a = lot
---markus---


= --Apple-Mail=_B1E34DC6-DC9C-49EF-9E67-9CAF60C552AC--