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-f42.google.com ([209.85.208.42] verified) by selbstdenker.ag (CommuniGate Pro SMTP 6.3.7) with ESMTPS id 27027877 for webobjects-dev@wocommunity.org; Tue, 28 Dec 2021 05:35:16 +0100 Received-SPF: pass receiver=post.selbstdenker.com; client-ip=209.85.208.42; envelope-from=stavros.panidis@gmail.com Received: by mail-ed1-f42.google.com with SMTP id b13so69022798edd.8 for ; Mon, 27 Dec 2021 20:35:16 -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=balbtdvTrGWg4bOqq/mt+WraRywMlqVp0ClOyp5zgGM=; b=MQf29iyKjVB9SyxhCyTusciL+QKFKcuk+GGk27QobM544ASaIsPcutGhfAYUNiaVRu uz48Son0Q4FyaWh8VL7yPuFg8OBTQAtC9r9RkWVRbfakap+bmrH60yzMdMKHodNTrw58 zMYtpHHpNGxUB1uxwPpKT0Pn7OzOoRGOK9utV33YoAenzHeN8T31mOYim3SLkBcxjU++ eqat9zbZW5AtFMqfhmA1RO6BIHLkdwIcQboY6gxXI0Bs8f1mRQ2GWDBVRhzbmXXcwnwo O/Dj9B5g6EWOOPK9cMr7aUnasvVy9imoFAgZyy9Hc+UdwSvDVEkU0YYknEZLdX1RRUyn HPyA== 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=balbtdvTrGWg4bOqq/mt+WraRywMlqVp0ClOyp5zgGM=; b=WjaOll74xcSLEcUW6FNVdhaNXhUqFDiwAvzr+b5MAGYMMuV7suYmx4sPSGLi4WCyfF RjC3uGIy59lbFx4WnATpDaPuQBNPasuDagXbpNitUw2HFkrO8/C5L/gc3LmA1clLjn4K 1DgXR+byEVNHazaACgLsQCu2di+TWsyRCBC8G4j2Y0RKE8bif0lzrf4tYY8qH/vJPfFL HZs9hN4x280d4+0x61kOKwuIwHoYhL4mFAx+O1Uzj/4svt1KOJaHNCCj3yyQTrt5h3Pl e1tXGSlXCPF6jKnIwkGr+OeU/LGhX/oeZpD3dZoEiih/TUjoyLIB+ug2vDew3xDVXYts ws2Q== X-Gm-Message-State: AOAM533MdU8XTamoZAWEU12IU8EM7N8ukOlr+gjsKO4Kzsdp0DLJ+p7k zXBiVbEXymwbq+n0aXdDBj7PytHSTSteUw== X-Google-Smtp-Source: ABdhPJx618WOWAdCBdgxp2U/NPxPIRU549clkf4+YQwAmaKYGaz9Xovk9hIoxAt3LUHVag8VXm6xsw== X-Received: by 2002:a05:6402:518a:: with SMTP id q10mr16565730edd.29.1640666095517; Mon, 27 Dec 2021 20:34:55 -0800 (PST) Return-Path: Received: from smtpclient.apple (oou0mj.static.otenet.gr. [79.129.3.166]) by smtp.gmail.com with ESMTPSA id 1sm1662408ejw.175.2021.12.27.20.34.52 (version=TLS1_2 cipher=ECDHE-ECDSA-AES128-GCM-SHA256 bits=128/128); Mon, 27 Dec 2021 20:34:55 -0800 (PST) From: Stavros Panidis Message-Id: Content-Type: multipart/alternative; boundary="Apple-Mail=_19EE3CC5-217E-4614-A8AE-98624477FC61" 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 06:34:51 +0200 In-Reply-To: Cc: markus.ruggiero@rucotec.ch To: WebObjects & WOnder Development References: X-Mailer: Apple Mail (2.3693.40.0.1.81) --Apple-Mail=_19EE3CC5-217E-4614-A8AE-98624477FC61 Content-Transfer-Encoding: quoted-printable Content-Type: text/plain; charset=utf-8 Dear Marcus, I need help for one more time. Now the problem goes to the deployment. Deployment environment is Ubuntu 20.04, java version openjdk 11.0.13 = 2021-10-19 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).=20 Is that correct? Do you think that a solution to update Java to version = 17 on the server? Best regards Stavros > On 24 Dec 2021, at 5:33 PM, Markus Ruggiero (rucotec) = wrote: >=20 > Add=20 >=20 > --add-exports=3Djava.base/sun.security.action=3DALL-UNNAMED >=20 > to the =E2=80=9Cdefault vm args=E2=80=9D for your selected installed = JRE (Eclipse preferences -> Java -> Installed JREs, select the one you = use, click the Edit button and add it there). This is a one time setup. >=20 > You also want to add the same to your deployed app when running with a = JRE version > 8 (e.g in JavaMonitor for the config of the app you run = from it) >=20 > Merry Christmas to all of you! Christian or non-Christian, no matter, = just have a peaceful and great time - anytime, that is! >=20 > ---markus--- >=20 >=20 >> On 23 Dec 2021, at 23:41, Stavros Panidis > wrote: >>=20 >> Dear, >>=20 >> I recently upgraded to Mac OsX Monterey. My configuration is as = follows >>=20 >> -MacBook Pro, 2016, running Mac Monterey 12.1 >>=20 >> -Eclispe 2021-12 >>=20 >> -Java version as follows >>=20 >> openjdk 17.0.1 2021-10-19 >> OpenJDK Runtime Environment Temurin-17.0.1+12 (build 17.0.1+12) >> OpenJDK 64-Bit Server VM Temurin-17.0.1+12 (build 17.0.1+12, mixed = mode, sharing) >>=20 >> Everything seems to be OK, but when I try to run application I get = the following error >>=20 >> NSLog - A fatal exception occurred: class = com.webobjects.foundation.NSTimeZone (in unnamed module @0x647c3190) = cannot access class sun.security.action.GetPropertyAction (in module = java.base) because module java.base does not export sun.security.action = to unnamed module @0x647c3190 >> [2021-12-23 11:52:15 EET]
java.lang.IllegalAccessError: class = com.webobjects.foundation.NSTimeZone (in unnamed module @0x647c3190) = cannot access class sun.security.action.GetPropertyAction (in module = java.base) because module java.base does not export sun.security.action = to unnamed module @0x647c3190 >> at = com.webobjects.foundation.NSTimeZone.systemTimeZone(NSTimeZone.java:971) >> at = com.webobjects.foundation.NSTimeZone.defaultTimeZone(NSTimeZone.java:818) >> at = com.webobjects.foundation.NSTimestampFormatter.defaultFormatTimeZone(NSTim= estampFormatter.java:734) >> at = com.webobjects.appserver.WOStatisticsStore.(WOStatisticsStore.java= :249) >> at = com.webobjects.appserver.WOApplication.(WOApplication.java:853) >> at = er.extensions.appserver.ajax.ERXAjaxApplication.(ERXAjaxApplication.= java:30) >> at = er.extensions.appserver.ERXApplication.(ERXApplication.java:1129) >> at WebInvoice.app.Application.(Application.java:11) >> at = java.base/jdk.internal.reflect.NativeConstructorAccessorImpl.newInstance0(= Native Method) >> at = java.base/jdk.internal.reflect.NativeConstructorAccessorImpl.newInstance(N= ativeConstructorAccessorImpl.java:77) >> at = java.base/jdk.internal.reflect.DelegatingConstructorAccessorImpl.newInstan= ce(DelegatingConstructorAccessorImpl.java:45) >> at = java.base/java.lang.reflect.Constructor.newInstanceWithCaller(Constructor.= java:499) >> at = java.base/java.lang.reflect.ReflectAccess.newInstance(ReflectAccess.java:1= 28) >> at = java.base/jdk.internal.reflect.ReflectionFactory.newInstance(ReflectionFac= tory.java:347) >> at java.base/java.lang.Class.newInstance(Class.java:645) >> at = com.webobjects.appserver.WOApplication.main(WOApplication.java:547) >> at = er.extensions.appserver.ERXApplication.main(ERXApplication.java:890) >> at WebInvoice.app.Application.main(Application.java:8) >>=20 >> APPLICATION SHUTDOWN SEQUENCE COMPLETE >>=20 >> Any advise? >>=20 >> Many thanks in advance >>=20 >> Stavros >=20 >=20 >=20 >=20 > Markus Ruggiero >=20 > rucotec GmbH web https://rucotec.ch = > Steinenvorstadt 79 email markus.ruggiero@rucotec.ch = > 4051 Basel / Switzerland mobile +41 79 508 4701 >=20 >=20 >=20 >=20 >=20 >=20 >=20 >=20 --Apple-Mail=_19EE3CC5-217E-4614-A8AE-98624477FC61 Content-Transfer-Encoding: quoted-printable Content-Type: text/html; charset=utf-8 Dear = Marcus,

I need help = for one more time.

Now the problem goes to the deployment.

Deployment environment = is Ubuntu 20.04, java version openjdk 11.0.13 2021-10-19


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). 

Is = that correct? Do you think that a solution to update Java to version 17 = on the server?

Best = regards


Stavros

On 24 Dec 2021, at 5:33 PM, Markus Ruggiero (rucotec) <markus.ruggiero@rucotec.ch> wrote:

Add 

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

to the =E2=80=9Cdefault vm args=E2=80=9D for your selected = installed JRE  (Eclipse preferences -> Java -> Installed = JREs, select the one you use, click the Edit button and add it there). = This is a one time setup.

You also want to add the same to your deployed app when = running with a JRE version > 8 (e.g in JavaMonitor for the config of = the app you run from it)

Merry Christmas to all of you! Christian or non-Christian, no = matter, just have a peaceful and great time - anytime, that = is!

---markus---


On 23 Dec 2021, at 23:41, Stavros Panidis <stavros.panidis@gmail.com> wrote:

Dear,

I recently upgraded to = Mac OsX Monterey. My configuration is as follows

-MacBook Pro, 2016, running Mac = Monterey 12.1

-Eclispe 2021-12

-Java version as = follows

openjdk 17.0.1 = 2021-10-19
OpenJDK Runtime Environment Temurin-17.0.1+12 = (build 17.0.1+12)
OpenJDK 64-Bit Server VM Temurin-17.0.1+12 (build = 17.0.1+12, mixed mode, sharing)

Everything seems to be OK, but = when I try to run application I get the following error

NSLog  - A fatal exception occurred: class = com.webobjects.foundation.NSTimeZone (in unnamed module @0x647c3190) = cannot access class sun.security.action.GetPropertyAction (in module = java.base) because module java.base does not export sun.security.action = to unnamed module @0x647c3190
[2021-12-23 11:52:15 EET] = <main> java.lang.IllegalAccessError: class = com.webobjects.foundation.NSTimeZone (in unnamed module @0x647c3190) = cannot access class sun.security.action.GetPropertyAction (in module = java.base) because module java.base does not export sun.security.action = to unnamed module @0x647c3190
at = com.webobjects.foundation.NSTimeZone.systemTimeZone(NSTimeZone.java:971)
at = com.webobjects.foundation.NSTimeZone.defaultTimeZone(NSTimeZone.java:818)
at = com.webobjects.foundation.NSTimestampFormatter.defaultFormatTimeZone(NSTimestampFormatter.java:734)
at = com.webobjects.appserver.WOStatisticsStore.<clinit>(WOStatisticsStore.java:249)
at = com.webobjects.appserver.WOApplication.<init>(WOApplication.java:853)
at = er.extensions.appserver.ajax.ERXAjaxApplication.<init>(ERXAjaxApplication.java:30)
at = er.extensions.appserver.ERXApplication.<init>(ERXApplication.java:1129)
at = WebInvoice.app.Application.<init>(Application.java:11)
at = java.base/jdk.internal.reflect.NativeConstructorAccessorImpl.newInstance0(= Native Method)
at = java.base/jdk.internal.reflect.NativeConstructorAccessorImpl.newInstance(<= span class=3D"" style=3D"text-decoration: underline; color: rgb(0, 104, = 218);">NativeConstructorAccessorImpl.java:77)
at = java.base/jdk.internal.reflect.DelegatingConstructorAccessorImpl.newInstan= ce(DelegatingConstructorAccessorImpl.java:45)
= at = java.base/java.lang.reflect.Constructor.newInstanceWithCaller(Constructor.java:499)
at = java.base/java.lang.reflect.ReflectAccess.newInstance(ReflectAccess.java:128)
at = java.base/jdk.internal.reflect.ReflectionFactory.newInstance(ReflectionFactory.java:347)
at = java.base/java.lang.Class.newInstance(Class.java:645)
at = com.webobjects.appserver.WOApplication.main(WOApplication.java:547)
at = er.extensions.appserver.ERXApplication.main(ERXApplication.java:890)
at = WebInvoice.app.Application.main(Application.java:8)

APPLICATION SHUTDOWN SEQUENCE = COMPLETE

Any = advise?

Many thanks in = advance

Stavros




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=_19EE3CC5-217E-4614-A8AE-98624477FC61--