Uploaded image for project: 'Quarkus'
  1. Quarkus
  2. QUARKUS-1382

Openshift Non-s2i deployment fails with JDK17

XMLWordPrintable

    • False
    • False

      This issue is blocker because has an impact to all users and also blocks `QUARKUS-728`

      When you create an application with JDK17 and then try to deploy to Openshift by non-s2i, the app is failing with the following error:

      Caused by: java.lang.UnsupportedClassVersionError: org/acme/rest/GreetingResource has been compiled by a more recent version of the Java Runtime (class file version 61.0), this version of the Java Runtime only recognizes class file versions up to 55.0Caused by: java.lang.UnsupportedClassVersionError: org/acme/rest/GreetingResource has been compiled by a more recent version of the Java Runtime (class file version 61.0), this version of the Java Runtime only recognizes class file versions up to 55.0 at java.base/java.lang.ClassLoader.defineClass1(Native Method) at java.base/java.lang.ClassLoader.defineClass(ClassLoader.java:1017) at io.quarkus.bootstrap.runner.RunnerClassLoader.loadClass(RunnerClassLoader.java:96) at io.quarkus.bootstrap.runner.RunnerClassLoader.loadClass(RunnerClassLoader.java:56) at java.base/java.lang.Class.forName0(Native Method) at java.base/java.lang.Class.forName(Class.java:398) at org.acme.rest.GreetingResource_Bean.<init>(GreetingResource_Bean.zig:48) at io.quarkus.arc.setup.Default_ComponentsProvider.addBeans1(Default_ComponentsProvider.zig:235) at io.quarkus.arc.setup.Default_ComponentsProvider.getComponents(Default_ComponentsProvider.zig:38) at io.quarkus.arc.impl.ArcContainerImpl.<init>(ArcContainerImpl.java:116) at io.quarkus.arc.Arc.initialize(Arc.java:20) ... 19 more
      

      Seems that the app is compiled with JDK17 but the docker image using JDK11

              gandrian Georgios Andrianakis
              rhn-support-pagonzal Pablo Gonzalez Granados (Inactive)
              Pablo Gonzalez Granados Pablo Gonzalez Granados (Inactive)
              Votes:
              0 Vote for this issue
              Watchers:
              7 Start watching this issue

                Created:
                Updated:
                Resolved: