Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Cannot consistently pass arguments to an appclient when using the glassfish/bin/appclient script #25143

Open
starksm64 opened this issue Sep 12, 2024 · 0 comments

Comments

@starksm64
Copy link
Member

Environment Details

  • GlassFish Version (and build number): GF 8.0.0-JDK17-M5
  • JDK version: 17.0.12+7
  • OS: Fedora 31
  • Database: db-derby-10.15.2.0-bin

Problem Description

If I try to pass arguments to the glassfish8/glassfish/bin/appclient script after the "-jar exec_jar", they seem to be treated as additional bootstrap JVM arguments rather than arguments to the appclient main(String[] args) method. For example, trying this command line that is generated by the tests in the glassfish-runner/jsonp-platform-tck runner directory of the https://github.com/jakartaredhat/alwin-ee-tck.git repo:

[starksm@scottryzen jsonp-platform-tck]$ target/glassfish8/glassfish/bin/appclient -jar target/appclient/jsonprovidertests_appclient_vehicle_client.jar -p /tmp/tstest.jte -t jsonProviderTest1 -vehicle appclient
Unrecognized option: -Xt
Error: Could not create the Java Virtual Machine.
Error: A fatal exception has occurred. Program will exit.

Note that other appclient jars do not show this problem. The patchtests_appclient_vehicle_client.jar.zip can be run with the same command line and it will fail with CFE issues, but the bootstrap does not complain about unrecognized options.

Steps to reproduce

Unzip the attached jsonprovidertests_appclient_vehicle_client.jar and try running the given command line.

Impact of Issue

This is blocking the EE 11 TCK work

patchtests_appclient_vehicle_client.jar.zip

jsonprovidertests_appclient_vehicle_client.jar.zip

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant