메일링 리스트 webobjects-dev@wocommunity.org 메시지 #547
보낸 사람: Theodore Petrosky <tedpet5@yahoo.com>
제목: Calendar issues
일자: Thu, 22 Jan 2026 10:10:54 -0500
받는 사람: <webobjects-dev@lists.wocommunity.org>



I have added to the Default VM Arguments in eclipse:

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

and my app compile and run fine in development. I moved my app to AWS and it is failing with:

[2026-1-21 18:39:46 UTC] <main> java.lang.IllegalAccessError: class com.webobjects.foundation.NSTimeZone (in unnamed module @0x6b09fb41) cannot access class sun.security.action.GetPropertyAction (in module java.base) because module java.base does not export sun.security.action to unnamed module @0x6b09fb41
        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)


It looks like the same issue, so I added to Additional Arguments in my deployment:

-Duser.name=ec2 --add-exports java.base/sun.security.action=ALL-UNNAMED --add-exports java.base/sun.util.calendar=ALL-UNNAMED

I still get the error. What am I missing? Or is this something else.

Ted

가입 (FEED) 가입 (DIGEST) 가입 (INDEX) 탈퇴 Listmaster에게 메일 보내기