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 miniserver.rucotec.ch ([213.189.151.242] verified) by post.selbstdenker.com (CommuniGate Pro SMTP 6.3.7) with ESMTPS id 27031487 for webobjects-dev@wocommunity.org; Tue, 28 Dec 2021 20:21:08 +0100 Received-SPF: none receiver=post.selbstdenker.com; client-ip=213.189.151.242; envelope-from=markus.ruggiero@rucotec.ch Received: from localhost (localhost [127.0.0.1]) by miniserver.rucotec.ch (Postfix) with ESMTP id 82D6C340834A for ; Tue, 28 Dec 2021 20:20:47 +0100 (CET) Received: from miniserver.rucotec.ch ([127.0.0.1]) by localhost (miniserver.rucotec.ch [127.0.0.1]) (amavisd-new, port 10024) with ESMTP id t8cyJXxgIMPe for ; Tue, 28 Dec 2021 20:20:45 +0100 (CET) Received: from smtpclient.apple (unknown [192.168.57.33]) by miniserver.rucotec.ch (Postfix) with ESMTPSA id 9B0B73408338 for ; Tue, 28 Dec 2021 20:20:44 +0100 (CET) From: Markus Ruggiero (rucotec) Content-Type: multipart/signed; boundary="Apple-Mail=_3D82D824-4B7B-4A3A-AD46-0747D67B1311"; protocol="application/pkcs7-signature"; micalg=sha-256 Mime-Version: 1.0 (Mac OS X Mail 14.0 \(3654.120.0.1.13\)) Subject: Re: [WO-DEV] Installation on osx Monterey - deployment Date: Tue, 28 Dec 2021 14:20:42 -0500 References: To: WebObjects & WOnder Development In-Reply-To: Message-Id: <55F809CC-0AC2-4486-9C85-5DB968F2C967@rucotec.ch> X-Mailer: Apple Mail (2.3654.120.0.1.13) --Apple-Mail=_3D82D824-4B7B-4A3A-AD46-0747D67B1311 Content-Type: multipart/alternative; boundary="Apple-Mail=_C02215FB-1C21-4D45-910A-537EDA0780A1" --Apple-Mail=_C02215FB-1C21-4D45-910A-537EDA0780A1 Content-Transfer-Encoding: quoted-printable Content-Type: text/plain; charset=utf-8 Even if you do not go with Maven it is actually very simple. Edit your build.xml file a little bit (see below). When you ant build = your app one file that gets created is UNIXClasspath.txt (or some such) = that contains header comments that the run script will use. One such = comment is JVMOptions. These are not populated but you can fix this = easily: build.xml: in the init.properties target define a variable: =09 add this >>>> then in the target build.woapp add jvmOptions=3D=E2=80=9C${jvmOptions}=E2=80= =9D as you can see on the next line On 28 Dec 2021, at 07:22, Stavros Panidis > wrote: >=20 > Hugi, >=20 >=20 > You are really very kind, many thanks to you and all community. >=20 > Stavros >=20 >> On 28 Dec 2021, at 1:10 PM, Hugi Thordarson > wrote: >>=20 >> Hi Stavros, >> here's a quick "getting started guide: >>=20 >> https://gist.github.com/hugith/d2ba6da9e4942f4ece95d7a721159cd1 = >>=20 >> =E2=80=A6and here's a guide to converting an existing Fluffy Bunny = application: >>=20 >> https://gist.github.com/hugith/3c269a3196d0c4f2da486f1109c16d42 = >>=20 >> Don't hesitate to ask if you hit any walls or get errors you have no = idea what mean. Those of us that have made this switch have probably hit = all the sharp corners :). >>=20 >> Cheers, >> - hugi >>=20 >>=20 >>> On 28 Dec 2021, at 11:03, Stavros Panidis = wrote: >>>=20 >>> Dear Paul, >>>=20 >>> Thank you very much for the info. >>>=20 >>> 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? >>>=20 >>> Best regards >>>=20 >>> Stavros >>>=20 >>>=20 >>>> 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 >>>=20 >>=20 >>=20 >> ############################################################# >> This message is sent to you because you are subscribed to >> the mailing list . >> To unsubscribe, E-mail to: >> To switch to the DIGEST mode, E-mail to = >> To switch to the INDEX mode, E-mail to = >> Send administrative queries to = >>=20 >=20 >=20 > ############################################################# > This message is sent to you because you are subscribed to > the mailing list >. > To unsubscribe, E-mail to: > > To switch to the DIGEST mode, E-mail to = > > To switch to the INDEX mode, E-mail to = > > Send administrative queries to = > >=20 Markus Ruggiero rucotec GmbH web https://rucotec.ch = Steinenvorstadt 79 email markus.ruggiero@rucotec.ch = 4051 Basel / Switzerland mobile +41 79 508 4701 --Apple-Mail=_C02215FB-1C21-4D45-910A-537EDA0780A1 Content-Transfer-Encoding: quoted-printable Content-Type: text/html; charset=utf-8
Even if you do not go = with Maven it is actually very simple.

Edit your build.xml file a little bit = (see below). When you ant build your app one file that gets created is = UNIXClasspath.txt (or some such) that contains header comments that the = run script will use. One such comment is JVMOptions. These are not = populated but you can fix this easily:

build.xml:

in the init.properties target define a = variable:

= <target name=3D"init.properties"> =
add this >>>> = <property name=3D"jvmOptions" = value=3D"--add-exports = java.base/sun.security.action=3DALL-UNNAMED"/>

then in the target = build.woapp add jvmOptions=3D=E2=80=9C${jvmOptions}=E2=80=9D as you can = see on the next line

<woapplication = name=3D"${build.app.name}" jvmOptions=3D"${jvmOptions}=E2=80= =9D frameworksBas ...........

All done, build your deployment app = with ant and the woapplication builder will happily put the jvmOptions = into the UNIXClasspath.txt file from where the run script will take it = an put into the right place on the command line.

One time setup, all done. Its work, I = have just recently deployed a Wonder app on Ubuntu 20.something running = with JRE 17.

Have fun, IT SIMPLY WORKS! Really, it does. Someone put a lot = of thought into this 15 years ago.

---markus---



On 28 = Dec 2021, at 07:22, Stavros Panidis <stavros.panidis@gmail.com> wrote:

Hugi,


You are = really very kind, many thanks to you and all community.

Stavros

On 28 Dec 2021, at 1:10 PM, Hugi Thordarson <hugi@karlmenn.is> = wrote:

Hi Stavros,
here's a = quick "getting started guide:

https://gist.github.com/hugith/d2ba6da9e4942f4ece95d7a721159cd1=

=E2=80=A6and here's a guide to = converting an existing Fluffy Bunny application:

https://gist.github.com/hugith/3c269a3196d0c4f2da486f1109c16d42=

Don't hesitate to ask if you hit any = walls or get errors you have no idea what mean. Those of us that have = made this switch have probably hit all the sharp corners :).

Cheers,
- hugi


On 28 Dec = 2021, at 11:03, Stavros Panidis <stavros.panidis@gmail.com> wrote:

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.

https://github.com/wocommunity/wolifecycle-maven-plugin/pull/15=


--
Paul = Hoadley
https://logicsquad.net/
https://www.linkedin.com/company/logic-squad/



#############################################################This message is sent to you because you are subscribed = to
the mailing list <webobjects-dev@wocommunity.org>.
To = unsubscribe, E-mail to: <webobjects-dev-off@wocommunity.org>
To = switch to the DIGEST mode, E-mail to <webobjects-dev-digest@wocommunity.org>
To = switch to the INDEX mode, E-mail to <webobjects-dev-index@wocommunity.org>
Send= administrative queries to  <webobjects-dev-request@wocommunity.org>



#############################################################This message is sent to you because you are subscribed = to
 the mailing list <webobjects-dev@wocommunity.org>.
To = unsubscribe, E-mail to: <webobjects-dev-off@wocommunity.org>
To = switch to the DIGEST mode, E-mail to <webobjects-dev-digest@wocommunity.org>
To = switch to the INDEX mode, E-mail to <webobjects-dev-index@wocommunity.org>
Send= administrative queries to  <webobjects-dev-request@wocommunity.org>



Markus = Ruggiero

rucotec GmbH              =           web https://rucotec.ch
Steinenvorstadt 79          =       email markus.ruggiero@rucotec.ch
4051 Basel / = Switzerland         mobile +41 79 508 4701








= --Apple-Mail=_C02215FB-1C21-4D45-910A-537EDA0780A1-- --Apple-Mail=_3D82D824-4B7B-4A3A-AD46-0747D67B1311 Content-Disposition: attachment; filename=smime.p7s Content-Type: application/pkcs7-signature; name=smime.p7s Content-Transfer-Encoding: base64 MIAGCSqGSIb3DQEHAqCAMIACAQExDzANBglghkgBZQMEAgEFADCABgkqhkiG9w0BBwEAAKCCCzkw ggUhMIIECaADAgECAhBDXz2PBS4rcSTMoUCPbeA+MA0GCSqGSIb3DQEBCwUAMIGWMQswCQYDVQQG EwJHQjEbMBkGA1UECBMSR3JlYXRlciBNYW5jaGVzdGVyMRAwDgYDVQQHEwdTYWxmb3JkMRgwFgYD VQQKEw9TZWN0aWdvIExpbWl0ZWQxPjA8BgNVBAMTNVNlY3RpZ28gUlNBIENsaWVudCBBdXRoZW50 aWNhdGlvbiBhbmQgU2VjdXJlIEVtYWlsIENBMB4XDTE5MDUyMjAwMD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