-
Bug
-
Resolution: Done
-
Critical
-
None
-
None
Using the new EAP 7.2 RHEL 8 JDK 11 base image, I managed to get a clean scratch build [0] from this commit [1] and use it for a custom stack in my OKD (minishift 1.33).
However on startup I get this error:
2019/05/06 21:24:22 Terminal routes: 2019/05/06 21:24:22 - Enabled: true 2019/05/06 21:24:22 ✓ Connect to pty(websocket) ............... GET /pty /bin/sh: line 72: [: 2018-09-25: integer expression expected Certificate File /tmp/che/secret/ca.crt will be used for binaries downloading Workspace Agent will be downloaded from Workspace Master Found a self-signed cert. Workspace Agent Java trust store will be based /usr/lib/jvm/java-11/lib/security/cacerts Trust this certificate? [no]: Certificate was added to keystore NOTE: Picked up JDK_JAVA_OPTIONS: --add-opens=java.base/java.lang=ALL-UNNAMED --add-opens=java.base/java.io=ALL-UNNAMED --add-opens=java.rmi/sun.rmi.transport=ALL-UNNAMED OpenJDK 64-Bit Server VM warning: Option MaxRAMFraction was deprecated in version 10.0 and will likely be removed in a future release. Error occurred during initialization of boot layer java.lang.module.FindException: Module java.xml.bind not found Error: Failed to run the workspace: "Installation 'org.eclipse.che.ws-agent' failed, script exit code is 1"
The reason java.xml.bind is missing is that the default JVM is JDK 11, which removed it [2].
So, while I can probably work around this by installing JDK 1.8 and setting JAVA_HOME to that path, the fact remains that JDK 1.8 is EOL and the Che wsagent can't start a stack when only JDK 11 is present. It should be able to run with JDK 11, too.
[0] https://brewweb.engineering.redhat.com/brew/taskinfo?taskID=21537329
[1] http://pkgs.devel.redhat.com/cgit/containers/codeready-workspaces-stacks-java/tree/Dockerfile?id=2f413f79ee4931b3783c716d4324d19a8456a8b7
[2] https://stackoverflow.com/questions/52502189/java-11-package-javax-xml-bind-does-not-exist
- blocks
-
CRW-259 Debug feature does not work properly in the Java/JBoss stacks
-
- Closed
-
- links to