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 [] From: "Ray Kiddy" Received: from p3plsmtpa12-01.prod.phx3.secureserver.net ([68.178.252.230] verified) by post.selbstdenker.com (CommuniGate Pro SMTP 6.3.3) with ESMTPS id 26350105 for webobjects-dev@wocommunity.org; Tue, 24 Aug 2021 18:41:43 +0200 Received-SPF: pass receiver=post.selbstdenker.com; client-ip=68.178.252.230; envelope-from=ray@ganymede.org Received: from rrk.local ([73.189.157.212]) by :SMTPAUTH: with ESMTPSA id IZUCms9xUQ6BCIZUFmV8GP; Tue, 24 Aug 2021 09:41:19 -0700 X-CMAE-Analysis: v=2.4 cv=AJcVyQO3 c=1 sm=1 tr=0 ts=61252130 a=0CXL/RnSyQIzAg9GrPy4sg==:117 a=0CXL/RnSyQIzAg9GrPy4sg==:17 a=IkcTkHD0fZMA:10 a=frYFmLs-AAAA:20 a=NEAV23lmAAAA:8 a=DSLKI1hMAAAA:8 a=mjre5NyJ8ItJ47XFVZAA:9 a=QEXdDO2ut3YA:10 a=k7llvGLhnDwA:10 a=U2F8sbubvJgA:10 a=dMURlm_LoVYA:10 a=IPcZcscSuAkA:10 a=n3vzDv7lIDZ8GvaX0y2W:22 X-SECURESERVER-ACCT: ray@ganymede.org Subject: Re: [WO-DEV] Re: java.lang.IllegalAccessError: class com.webobjects.foundation.NSTimeZone (in unnamed module @0x6c2c1385) cannot access class sun.security.action.GetPropertyAction To: WebObjects & WOnder Development References: Message-ID: <12db265c-3e54-2c05-b1e9-c2426b3b7064@ganymede.org> Date: Tue, 24 Aug 2021 09:41:16 -0700 User-Agent: Mozilla/5.0 (Macintosh; Intel Mac OS X 10.15; rv:78.0) Gecko/20100101 Thunderbird/78.13.0 MIME-Version: 1.0 In-Reply-To: Content-Type: text/plain; charset=utf-8; format=flowed Content-Transfer-Encoding: 8bit Content-Language: en-GB X-CMAE-Envelope: MS4xfF/wnEmOt0ih9Su1i0sS3iDbxNo4g6PENPt0t0544g2q3KoR8csFn6v7PEsG6NmjrrCEJISxvPO1nI8w6pQaW2WRHLfUdXHqQmdcuslsVJEbws8wlbZQ f+DR0yg6hakFfoWPWtl55IN7/gjg30BXnSgzk+7XTZdFJ457IdOKxZZYUy18W8YaiKjiTQ1x4qYK/w== Hey there - So, I ran the instructions below, starting with the cloning of the wodocker project. I am on OSX 11.3.1 and usually run java11. I had to launch my Docker app to get the daemon working. I had to install java16. And everything worked? The app launched successfully? WTF, man! How _did_ this happen? :--) Ramsey. Your share of this is much appreciated. cheers - ray On 8/23/21 3:48 PM, Ramsey Gurley wrote: > Hey Markus, > > Yeah, you need to do a > > --add-exports java.base/sun.security.action=ALL-UNNAMED > > for that on compile as well as run. You can add it to the compile with the maven-compiler-plugin and to run in eclipse, add it under VM args in the run config for your woapp. I have a maven build of a WO app in a docker container that works on Java 16 I've been working on in my spare time. > > https://github.com/nullterminated/wodocker/blob/master/pom.xml > > I need to add a readme, but if interested in building in a container, just > > git clone git@github.com:nullterminated/wodocker.git > cd wodocker > mvn clean verify -Pdocker > > to run it is, > > docker run --rm -it -p 8080:8080 your.app/wodocker:latest > > And then visit http://localhost:8080/ > > This assumes you have java 16, maven, and docker installed with docker configured such that you don't need sudo. > > I was setting up a maven archetype for it, but the archetype:create-from-project goal doesn't seem to like the fluffy bunny layout and I end up with no java source files in the archetype. > > Ramsey > >> On Aug 23, 2021, at 11:56 PM, Markus Ruggiero (rucotec) wrote: >> >> I am setting up a new virgin test environment >> >> latest BigSur 11.5.2 >> latest JDK from Oracle (16.0.2) >> latest ant (1.10.11) >> latest Eclipse for Java Developer (4.20.0) >> WOlips from https://jenkins.wocommunity.org/job/WOLips_master/lastSuccessfulBuild/artifact/temp/dist/ >> >> Installed WO through WOInstaller.jar >> - had to run it several times. Each time it failed with unpacking after some more percentage has been processed. Eventually it made it to 100% >> >> Created WOLips.properties >> Downloaded Wonder-Master (7.3-snapshot) >> >> ant frameworks >> - chokes on Profiling, just removed this framework -> success >> ant frameworks.install >> - ok >> >> In Eclipse create my first WonderApplication, Eclipse workspace is set to Java Compiler 1.8 compliance, no other changes or configs. >> >> Run as WOApplication >> CRASH! >> >> Aug 23 16:37:28 BasicConcepts[49665] WARN NSLog - Application project found: Will locate resources in '/Users/ruggiero/Programming/eclipseWorkspace/BasicConcepts' rather than '/Users/ruggiero/Programming/eclipseWorkspace/BasicConcepts/' . >> Aug 23 16:37:28 BasicConcepts[49665] WARN er.extensions.appserver.ERXResourceManager - Application project found: Will locate resources in '/Users/ruggiero/Programming/eclipseWorkspace/BasicConcepts' rather than '/Users/ruggiero/Programming/eclipseWorkspace/BasicConcepts/'. >> Aug 23 16:37:28 BasicConcepts[49665] WARN NSLog - A fatal exception occurred: class com.webobjects.foundation.NSTimeZone (in unnamed module @0x6c2c1385) cannot access class sun.security.action.GetPropertyAction (in module java.base) because module java.base does not export sun.security.action to unnamed module @0x6c2c1385 >> [2021-8-23 16:37:28 CEST]
java.lang.IllegalAccessError: class com.webobjects.foundation.NSTimeZone (in unnamed module @0x6c2c1385) cannot access class sun.security.action.GetPropertyAction (in module java.base) because module java.base does not export sun.security.action to unnamed module @0x6c2c1385 >> 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.(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 your.app.Application.(Application.java:10) >> at java.base/jdk.internal.reflect.NativeConstructorAccessorImpl.newInstance0(Native Method) >> at java.base/jdk.internal.reflect.NativeConstructorAccessorImpl.newInstance(NativeConstructorAccessorImpl.java:78) >> 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:350) >> at java.base/java.lang.Class.newInstance(Class.java:642) >> at com.webobjects.appserver.WOApplication.main(WOApplication.java:547) >> at er.extensions.appserver.ERXApplication.main(ERXApplication.java:890) >> at your.app.Application.main(Application.java:7) >> >> APPLICATION SHUTDOWN SEQUENCE COMPLETE >> >> Anyone’s got an idea what’s wrong here? What am I missing? Is this related to Java16? >> Thanks a lot >> ---markus--- >> >> > ________________________________ > Confidentiality Notice: This email, including all attachments and replies thereto, are covered by the Electronic Communications Privacy Act, 18 U.S.C. Sections 2510-2521 and are legally privileged. This information is confidential, and intended only for the use of the individuals or entities named above. If you are not the intended recipient, you are hereby notified that any disclosure, copying, distribution or the taking of any action in reliance on the contents of this transmitted information is strictly prohibited. Please notify us if you have received this transmission in error. Thank you. > > ############################################################# > 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 >