Mailing List webobjects-dev@wocommunity.org Message #338
From: Markus Ruggiero (rucotec) <markus.ruggiero@rucotec.ch>
Subject: Re: [WO-DEV] Installation on osx Monterey
Date: Fri, 24 Dec 2021 10:33:41 -0500
To: WebObjects & WOnder Development <webobjects-dev@wocommunity.org>
Signed Data (Text SHA256)
Add 

--add-exports=java.base/sun.security.action=ALL-UNNAMED

to the “default vm args” 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(NativeConstructorAccessorImpl.java:77)
at java.base/jdk.internal.reflect.DelegatingConstructorAccessorImpl.newInstance(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








Content Unaltered as verified By:
<markus.ruggiero@rucotec.ch>
Subscribe (FEED) Subscribe (DIGEST) Subscribe (INDEX) Unsubscribe Mail to Listmaster