X-CGP-ClamAV-Result: CLEAN X-VirusScanner: Niversoft's CGPClamav Helper v1.25a (ClamAV 0.103.9/27062) X-Junk-Score: 0 [] X-KAS-Score: 0 [] Return-Path: Received: from mail-yw1-f180.google.com ([209.85.128.180] verified) by selbstdenker.ag (CommuniGate Pro SMTP 6.3.18) with ESMTPS id 31439731 for webobjects-dev@wocommunity.org; Sun, 15 Oct 2023 15:22:08 +0200 Received-SPF: pass receiver=post.selbstdenker.com; client-ip=209.85.128.180; envelope-from=recurve@cocoanutstech.com Received: by mail-yw1-f180.google.com with SMTP id 00721157ae682-5a7ab31fb8bso42780427b3.1 for ; Sun, 15 Oct 2023 06:22:07 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=chatnbike.com; s=chatnbike; t=1697376107; x=1697980907; 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=hC9iP6PyijQ6+VVB1PwVoGTmg5X3l4HNT+kur52HQfY=; b=TB+ujXWG2R4YQz3ewlZSMFEiXzq2fTPy3cIKkhEO/YwD/aAeBg8hguonqOpIwlxdKA jev5W9aVepM58JPopaPcJY6a0P7xSmxtJqejUijb4ycI0QiuyxZQl3sKxBpmC8e3vK6P XXrZMYEokng+0ZbC5wKX7glBtjBrG2c9XhDVg= X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1697376107; x=1697980907; 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=hC9iP6PyijQ6+VVB1PwVoGTmg5X3l4HNT+kur52HQfY=; b=Q80QWYhLEGu8G7oqUoL4jb0QiP7h0YJmvp9OdsGny+Z4O1Xy8MM3Yu2XxnumOFxKjs uNnqKzshReKXqdXlPTf6fGZ+Zp9QohyIuI46qouMWy4zOQlfWsRpfZO8ojO025DWnWPO 1b7CR4S6nU8vnnD3P0iqZ8eSUkWAqZTTLJuvA9OHY+wgx3+APsgVFzthjqClDtl+36ft GlPz+X0KzyJ0Kb0sxVKgPh6BG0ZWffvuf+z4tm3HQz+5w6xsD8XanKwlW+Ny10LBFvQV D9roZneQVPW/REmK1D1ZjEvTqnCBz51QzW5WEzPN2eKKCjaWWovdcU/1p+S9IHckuKLn wDwg== X-Gm-Message-State: AOJu0Yw4T6k9UiXfkiUi/cJpJZuPLnEn+WXgPSPerNkGoPSkIID5Iy6q 1UNiU6+jDKzhXFccqOKtdhMwxSn37IVj5RP8M3g= X-Google-Smtp-Source: AGHT+IGCoPfBTVy6GMmyxEEbCsvocbnMZ0gYYcGen40xKLzNFpQCz6MU01yl351pSr90lUQm3TPBzw== X-Received: by 2002:a81:4882:0:b0:5a7:e125:478c with SMTP id v124-20020a814882000000b005a7e125478cmr13842881ywa.42.1697376106805; Sun, 15 Oct 2023 06:21:46 -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 u14-20020a05620a120e00b00767e2668536sm2274630qkj.17.2023.10.15.06.21.46 (version=TLS1_2 cipher=ECDHE-ECDSA-AES128-GCM-SHA256 bits=128/128); Sun, 15 Oct 2023 06:21:46 -0700 (PDT) From: Aaron Rosenzweig Message-Id: <145D64C7-15A9-4E05-9D43-7AD1FC098695@chatnbike.com> Content-Type: multipart/alternative; boundary="Apple-Mail=_BF654ABF-30FF-4D79-8B92-16C77D4F1D78" Mime-Version: 1.0 (Mac OS X Mail 16.0 \(3696.120.41.1.3\)) Date: Sun, 15 Oct 2023 09:21:45 -0400 Subject: Re: [WO-DEV] ERJars collision with 3rd party jar In-Reply-To: To: WebObjects & WOnder Development References: <9E6B7EE9-7C38-4882-8712-316007975554@chatnbike.com> X-Mailer: Apple Mail (2.3696.120.41.1.3) --Apple-Mail=_BF654ABF-30FF-4D79-8B92-16C77D4F1D78 Content-Transfer-Encoding: quoted-printable Content-Type: text/plain; charset=utf-8 Ah I see. You got it to work in Eclipse for a sample starter project but = not int he real project where you needed it! Glad you figured out how to = rebuild ERJars by including the Twilio provided jars you needed and are = good to go :-) > On Oct 15, 2023, at 7:19 AM, Markus Ruggiero (rucotec) = wrote: >=20 > Thanks all for your help. >=20 > I ended up patching ERJars. Seems to work and I have not yet found any = issues. >=20 > Aaron, > No Jenkins/Hudson involved, just plain conventional local ant build. > The problem was / is that when I create a new Wonder application = ERJars is included automatically but seems to be injected into the class = path after the added twilio jar. Then things work. However my real app = uses tons of other Wonder frameworks as well as a couple locally built = Wonder based company specific frameworks (which might include AND EXPORT = stuff that interferes here) . In this scenario when building the final = product ERJars is injected at least partially further up in the class = path shadowing the 3rd party included classes. > Twilio provides 2 pre-built jars, one with the Twilio stuff only and = one that includes all dependencies. I tried both and had all kind of = issues. Twilio only of course misses the dependencies whereas Twilio = with its various dependencies seems to become =E2=80=9Cscattered=E2=80=9D = around the class path and at least partially ends up below ERJars. > So I put the stuff Twilio depends on into ERJars which seems to work = now=F0=9F=A4=9E. >=20 > Yeah, Maven is the way to go but most probably wouldn=E2=80=99t have = helped in this scenario. >=20 >> On 14 Oct 2023, at 02:07, Aaron Rosenzweig = wrote: >>=20 >> Hi Markus,=20 >>=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 >>=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 >>=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 >>=20 >> Hope you get it figured out. It must be very frustrating.=20 >>=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 >>=20 >=20 >=20 --Apple-Mail=_BF654ABF-30FF-4D79-8B92-16C77D4F1D78 Content-Transfer-Encoding: quoted-printable Content-Type: text/html; charset=utf-8 Ah = I see. You got it to work in Eclipse for a sample starter project but = not int he real project where you needed it! Glad you figured out how to = rebuild ERJars by including the Twilio provided jars you needed and are = good to go :-)

On Oct 15, 2023, at 7:19 AM, Markus Ruggiero (rucotec) <markus.ruggiero@rucotec.ch> wrote:

Thanks all for your = help.

I ended up = patching ERJars. Seems to work and I have not yet found any = issues.

Aaron,
No Jenkins/Hudson involved, just = plain conventional local ant build.
The problem was = / is that when I create a new Wonder application ERJars is included = automatically but seems to be injected into the class path after the = added twilio jar. Then things work. However my real app uses tons of = other Wonder frameworks as well as a couple locally built Wonder based = company specific frameworks (which might include AND EXPORT stuff that = interferes here) . In this scenario when building the final product = ERJars is injected at least partially further up in the class path = shadowing the 3rd party included classes.
Twilio = provides 2 pre-built jars, one with the Twilio stuff only and one that = includes all dependencies. I tried both and had all kind of issues. = Twilio only of course misses the dependencies whereas Twilio with its = various dependencies seems to become =E2=80=9Cscattered=E2=80=9D around = the class path and at least partially ends up below ERJars.
So I put the stuff Twilio depends on into ERJars which seems = to work now=F0=9F=A4=9E.

Yeah, Maven is the way to go but most probably wouldn=E2=80=99t= have helped in this scenario.

On 14 = Oct 2023, at 02:07, Aaron Rosenzweig <aaron@chatnbike.com>= wrote:

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=_BF654ABF-30FF-4D79-8B92-16C77D4F1D78--