X-CGP-ClamAV-Result: CLEAN X-VirusScanner: Niversoft's CGPClamav Helper v1.22.2a (ClamAV engine v0.102.2) X-Junk-Score: 0 [] X-KAS-Score: 0 [] Return-Path: Received: from mail-ed1-f45.google.com ([209.85.208.45] verified) by selbstdenker.ag (CommuniGate Pro SMTP 6.3.7) with ESMTPS id 27030651 for webobjects-dev@wocommunity.org; Tue, 28 Dec 2021 12:04:20 +0100 Received-SPF: pass receiver=post.selbstdenker.com; client-ip=209.85.208.45; envelope-from=stavros.panidis@gmail.com Received: by mail-ed1-f45.google.com with SMTP id o6so72366365edc.4 for ; Tue, 28 Dec 2021 03:04:20 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20210112; h=from:message-id:mime-version:subject:date:in-reply-to:cc:to :references; bh=ztDGsO7JR5aU70ZF8AEDp6LvMmuGboNDFlVsEqt8wHE=; b=YhXCHq8BKhpIaYy83zBpGqwAVzpuhWibzwuzW9PCCHiLPkpUgx6+hegpd+uBQTWVHx bg0T0CtFR7g1kyXB1smKeY6AtCCNtXX4TiOKkgQyMjYx28aGAJs94Kwh9LbVDeKSC6sM 5OKMjr4tG4yvFCpMjqk6W/4qO3kZzWZ3G4PgStc5wbI68S0kqcn9Pkw64JZikTc/55rX fwDoPgW66zm4TGnrieA32pSGddZ4Uu1u88341sXzOs627NhhzSK1xeRRKao8U2c0oUuh Sp2wk4Yq5pd5BJzCB4o9sZI5T4i3gSHm6lb95TxFoqQe7xYRdpF1mduKqKi+STTdHwrA FIRw== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20210112; h=x-gm-message-state:from:message-id:mime-version:subject:date :in-reply-to:cc:to:references; bh=ztDGsO7JR5aU70ZF8AEDp6LvMmuGboNDFlVsEqt8wHE=; b=rmgISRuDzagBOAd9eKrHeRS//EMH3P4VUPnwVXsrKliJTZl674uJDHWi9znxD6lWph aKZ5NT1CxPBooc/RjahZXI1Ob/u5nSjutAhGFzE/7DBcy5kuSYX/Ug2BtQbKmCWZb0Y+ 9/ZgeB2ilRsojUBc5+61RVLFeTWJgd9YJZuK1Vk4g7bJqD0/zIXe8RAN47JPcWzd1S3N LLHmZgEXhGapRaA59pxN8YIb/NTl8yc3TGL+jkCENNZzAUmoiduIbovq+IXMhkWdsilX SErvnTdm1ZWt3BKwtDzphof1ss+AktrF3hAxpN+EHfglEscjfC4MNTE7xn2Dzr7yInM8 XEPQ== X-Gm-Message-State: AOAM531mnXSIwoS+yNjEEkKq3tvWmrVvRcbk41TgPondnRfogaBXrAHH I+6ALmqk3dZBL85mw8sSZjWbtFFwzeNvEw== X-Google-Smtp-Source: ABdhPJw0hAeOUcqzyT2eIFmXAHDMzjbhUA2PDbrDAm5SzRKL4JZdrUp6wMDwOyZuO4kNj56a73IYEQ== X-Received: by 2002:a17:907:1626:: with SMTP id hb38mr1195911ejc.491.1640689440013; Tue, 28 Dec 2021 03:04:00 -0800 (PST) Return-Path: Received: from smtpclient.apple (o894gc.static.otenet.gr. [79.129.50.142]) by smtp.gmail.com with ESMTPSA id q19sm5958270ejs.117.2021.12.28.03.03.59 (version=TLS1_2 cipher=ECDHE-ECDSA-AES128-GCM-SHA256 bits=128/128); Tue, 28 Dec 2021 03:03:59 -0800 (PST) From: Stavros Panidis Message-Id: Content-Type: multipart/alternative; boundary="Apple-Mail=_7E5C7F21-09D3-46F5-B733-70712FFE6EEF" Mime-Version: 1.0 (Mac OS X Mail 15.0 \(3693.40.0.1.81\)) Subject: Re: [WO-DEV] Installation on osx Monterey - deployment Date: Tue, 28 Dec 2021 13:03:58 +0200 In-Reply-To: Cc: paulh@logicsquad.net To: WebObjects & WOnder Development References: X-Mailer: Apple Mail (2.3693.40.0.1.81) --Apple-Mail=_7E5C7F21-09D3-46F5-B733-70712FFE6EEF Content-Transfer-Encoding: quoted-printable Content-Type: text/plain; charset=us-ascii Dear Paul, Thank you very much for the info. I never used Maven before, but since it is the solution I have to do = now. Are there any info / documentation /how to on this? Best regards Stavros > On 28 Dec 2021, at 8:29 AM, Paul Hoadley wrote: >=20 > Hi Stavros, >=20 > On 28 Dec 2021, at 3:04 pm, Stavros Panidis > wrote: >=20 >> Old applications run with no problems but when I deploy the new one, = built in Java 17, application does not start, even after I add: >>=20 >> --add-exports=3Djava.base/sun.security.action=3DALL-UNNAMED >>=20 >> in JavaMonitor (Additional arguments). >=20 > I ran into this issue a few months ago, and discussed it in #java on = Slack. The problem is that the application launch script inside the WOA = bundle does some magic on all the arguments to get them into the right = place on the eventual command line invocation. There are two issues: (a) = --add-exports needs to appear before the Java class name on the command = line; but (b) the launch script pre-dates the existence of any arguments = that look like that, and hence doesn't move it. So it's appearing on the = command line after the class name, and has no effect. >=20 > There's an easy fix, but you need to be using Maven to build: = wolifecycle-maven-plugin 2.5 will add options like this to the = *ClassPath.txt files, where they will be honoured on launch. You can = specify them in build.properties. >=20 > https://github.com/wocommunity/wolifecycle-maven-plugin/pull/15 = >=20 >=20 > --=20 > Paul Hoadley > https://logicsquad.net/ > https://www.linkedin.com/company/logic-squad/ >=20 --Apple-Mail=_7E5C7F21-09D3-46F5-B733-70712FFE6EEF Content-Transfer-Encoding: quoted-printable Content-Type: text/html; charset=us-ascii Dear = Paul,

Thank you very = much for the info.

I never used Maven before, but since it is the solution I = have to do now. Are there any info / documentation /how to on = this?

Best = regards

Stavros


On 28 = Dec 2021, at 8:29 AM, Paul Hoadley <paulh@logicsquad.net> wrote:

Hi Stavros,

On 28 = Dec 2021, at 3:04 pm, Stavros Panidis <stavros.panidis@gmail.com> wrote:

Old applications run with no problems but = when I deploy the new one, built in Java 17, application does not start, = even after I add:

--add-exports=3Djava.base/sun.security.action=3DALL-UNNAMED

in = JavaMonitor (Additional = arguments).

I ran into this issue a = few months ago, and discussed it in #java on Slack. The problem is that = the application launch script inside the WOA bundle does some magic on = all the arguments to get them into the right place on the eventual = command line invocation. There are two issues: (a) --add-exports needs = to appear before the Java class name on the command line; but (b) the = launch script pre-dates the existence of any arguments that look like = that, and hence doesn't move it. So it's appearing on the command line = after the class name, and has no effect.

There's an easy fix, but you need to be = using Maven to build: wolifecycle-maven-plugin 2.5 will add options = like this to the *ClassPath.txt files, where they will be honoured on = launch. You can specify them in build.properties.


<= br class=3D"">
= --Apple-Mail=_7E5C7F21-09D3-46F5-B733-70712FFE6EEF--