Page MenuHomePhabricator

Java Runtime on Toollabs - not up to date?
Open, LowPublic


When deploying a new test-version of a war-file to tomcat, I get a java version error.

A servlet, that I compiled last year is executed fine, another servlet, that I compiled recently, displays (both servlets within the same war-file):

Unsupported major.minor version 52.0 (unable to load class

"java -version" displays "OpenJDK Runtime Environment (IcedTea 2.6.7) (7u111-2.6.7-0ubuntu0.14.04.3) OpenJDK 64-Bit Server VM (build 24.111-b01, mixed mode)" on labs

but "Java(TM) SE Runtime Environment (build 1.8.0_91-b14) Java HotSpot(TM) 64-Bit Server VM (build 25.91-b14, mixed mode)" on the computer I compiled the servlet on.

It looks to me as if either JRE/JVM, or Tomcat, or servlet.jar needs to be updated?

Event Timeline

Restricted Application added a project: Cloud-Services. · View Herald TranscriptOct 11 2016, 8:08 AM
Restricted Application added a subscriber: Aklapper. · View Herald Transcript
scfc added a subscriber: scfc.Nov 24 2016, 11:09 AM

I don't have experience with either, but according to, for JDK 8 you have to use the Kubernetes backend. I assume that for Tomcat that can be achieved by webservice --backend=kubernetes jdk8 start. Could you please try if that works?

scfc triaged this task as Low priority.Feb 16 2017, 10:38 PM
scfc moved this task from Triage to Backlog on the Toolforge board.