Mailing List webobjects-dev@wocommunity.org Message #341
จาก: Paul Hoadley <paulh@logicsquad.net>
หัวเรื่อง: Re: [WO-DEV] Installation on osx Monterey - deployment
วันที่: Tue, 28 Dec 2021 16:59:15 +1030
ถึง: WebObjects & WOnder Development <webobjects-dev@wocommunity.org>
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=java.base/sun.security.action=ALL-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.



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

สมัครสมาชิก (ป้อนข้อมูล) สมัครสมาชิก (ไดเจสท์) สมัครสมาชิก (ดัชนี) ยกเลิกสมาชิก ส่งเมล์ถึงลิสต์มาสเตอร์