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

Failed when running GF 6.0.0.M1 with JDK 11 #23102

Closed
hantsy opened this issue Jun 24, 2020 · 5 comments
Closed

Failed when running GF 6.0.0.M1 with JDK 11 #23102

hantsy opened this issue Jun 24, 2020 · 5 comments
Milestone

Comments

@hantsy
Copy link

hantsy commented Jun 24, 2020

Environment Details

  • GlassFish Version (and build number): 6.0.0.M1
  • JDK version: 11
  • OS: Windows 10 64bit
  • Database: No

java -version
openjdk version "11.0.7" 2020-04-14
OpenJDK Runtime Environment AdoptOpenJDK (build 11.0.7+10)
OpenJDK 64-Bit Server VM AdoptOpenJDK (build 11.0.7+10, mixed mode)


Problem Description

n>asadmin start-domain
Waiting for domain1 to start .Error starting domain domain1.
The server exited prematurely with exit code 1.
Before it died, it produced the following output:

-Djava.endorsed.dirs=D:\appsvr\glassfish6\glassfish/modules/endorsed;D:\appsvr\glassfish6\glassfish/lib/endorsed is not supported. Endorsed standards and standalone APIs
in modular form will be supported via the concept of upgradeable modules.
OpenJDK 64-Bit Client VM warning: Ignoring option MaxPermSize; support was removed in 8.0
Error: Could not create the Java Virtual Machine.
Error: A fatal exception has occurred. Program will exit.

Command start-domain failed.

@hs536
Copy link
Contributor

hs536 commented Jun 24, 2020

6.0.0".M1" release still work on JDK 8 (not JDK 11).

@scottmarlow
Copy link
Member

I believe that the -Djava.endorsed.dirs options must be removed for running on JDK11 (glassfish6\glassfish/lib/endorsed jars could be added to the classpath if they are needed).

Are there other changes needed for running on JDK11?

@arjantijms
Copy link
Contributor

@scottmarlow There are quite some changes needed indeed. Many concern replacing classes that have been removed and opening up modules to allow illegal access (actually, it would be even better to find replacements for illegal access, but for JDK 11 that will suffice).

See here for some idea of what the JDK 11 work entails: #23019

@scottmarlow
Copy link
Member

thanks @arjantijms that gives me a better idea of what the work entails.

@smillidge smillidge added this to the 6.1.0 milestone Jul 23, 2020
@smillidge
Copy link
Contributor

Latest nightly builds all run with JDK 11.

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

5 participants