-
Notifications
You must be signed in to change notification settings - Fork 306
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
The domain.xml java-home is not honored in version-specific jvm-options PAYARA-3911 #4025
Labels
Status: Accepted
Confirmed defect or accepted improvement to implement, issue has been escalated to Platform Dev
Type: Bug
Label issue as a bug defect
Milestone
Comments
vlumi
added a commit
to vlumi/Payara
that referenced
this issue
Jun 11, 2019
…etermining the JVM optins.
vlumi
added a commit
to vlumi/Payara
that referenced
this issue
Jun 11, 2019
…etermining the JVM options.
OndroMih
added
0:Triaged
Type: Bug
Label issue as a bug defect
and removed
0:Triaged
labels
Jun 11, 2019
I confirm the behavior with a fresh domain1 domain on v5.192:
|
@vlumi, can you create a pull request with your changes in vlumi@b1b21c5? |
OndroMih
changed the title
The domain.xml java-home is not honored in version-specific jvm-options
The domain.xml java-home is not honored in version-specific jvm-options PAYARA-3911
Jun 11, 2019
OndroMih
added
Status: Accepted
Confirmed defect or accepted improvement to implement, issue has been escalated to Platform Dev
and removed
1:Investigating
labels
Jun 11, 2019
#4034 is the PR? |
Yes, I created the pull request #4034 for this already. |
arjantijms
added a commit
that referenced
this issue
Jul 4, 2019
PAYARA-3911 Fix domain.xml java-home is not honored in version-specific jvm-options (#4025)
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Labels
Status: Accepted
Confirmed defect or accepted improvement to implement, issue has been escalated to Platform Dev
Type: Bug
Label issue as a bug defect
Description
On domain.xml, all the jvm-options are filtered according to the JDK used to run asadmin -- not the one configured to be used with the domain. This will result in errors if the arguments are not valid for the JDK set for the domain, especially using JDK before and after 9.
Expected Outcome
Using JDK 1.8 to run asadmin, and JDK 11 configured in domains.xml, the domain should start normally, running on JDK 11.
Current Outcome
The execution will fail with the following output:
Steps to reproduce (Only for bug reports)
Update the domain.xml, pointing the java-home to a JDK 11 installation, e.g.
Make sure to use JDK 1.8 for asadmin
$ java -version
java version "1.8.0_211"
Java(TM) SE Runtime Environment (build 1.8.0_211-b12)
Java HotSpot(TM) 64-Bit Server VM (build 25.211-b12, mixed mode)
Leave the AS_JAVA unset (default value on glassfish/config/asenv.conf)
Use JDK 1.8 to start the domain
./asadmin start-domain domain1
Context (Optional)
This issue came up when trying to start Payara 5.192 with JDK 11 from IntelliJ IDEA, with the system default JDK still being 1.8 (set on .bash_properties).
Environment
The text was updated successfully, but these errors were encountered: