You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
When the name of a JDK differs from the oomph default of "JRE for JavaSE-$version" the server installation fails.
This is reproducible by the following snippet which creates a JDK named "JDK11" and uses it for Tomcat creation:
<setupTaskxsi:type="jdt:JRETask"id="jre11"version="JavaSE-11"location="${jre.location-11}"name="JDK11"/>
<setupTaskxsi:type="server:TomcatServerTask"id="tomcat9"serverName="Tomcat v9.0 Server at localhost"location="${installation.location}/apache-tomcat-9.0.37"runtimeName="Apache Tomcat v9.0"startTimeout="45"stopTimeout="15"jreVersion="${jre11.version}"serverVersion="Tomcat 9.0">
<description>Tomcat 9.0 server configuration</description>
</setupTask>
This leads to the following exception:
com.gratex.oomph.task.server.exception.ServerTaskException: Error during server setup
at com.gratex.oomph.task.server.creator.ServerCreator.createServerInstance(ServerCreator.java:65)
at com.gratex.oomph.task.server.impl.TomcatServerTaskImpl.perform(TomcatServerTaskImpl.java:490)
at org.eclipse.oomph.setup.internal.core.SetupTaskPerformer.doPerformNeededSetupTasks(SetupTaskPerformer.java:3864)
at org.eclipse.oomph.setup.internal.core.SetupTaskPerformer$WorkspaceUtil$1.run(SetupTaskPerformer.java:5200)
at org.eclipse.core.internal.resources.Workspace.run(Workspace.java:2453)
at org.eclipse.core.internal.resources.Workspace.run(Workspace.java:2478)
at org.eclipse.oomph.setup.internal.core.SetupTaskPerformer$WorkspaceUtil.performNeededSetupTasks(SetupTaskPerformer.java:5193)
at org.eclipse.oomph.setup.internal.core.SetupTaskPerformer.performNeededSetupTasks(SetupTaskPerformer.java:3798)
at org.eclipse.oomph.setup.internal.core.SetupTaskPerformer.performTriggeredSetupTasks(SetupTaskPerformer.java:3773)
at org.eclipse.oomph.setup.internal.core.SetupTaskPerformer.perform(SetupTaskPerformer.java:3651)
at org.eclipse.oomph.setup.ui.wizards.ProgressPage$9.run(ProgressPage.java:592)
at org.eclipse.oomph.setup.ui.wizards.ProgressPage$11$1.run(ProgressPage.java:721)
at org.eclipse.core.internal.jobs.Worker.run(Worker.java:63)
Caused by: com.gratex.oomph.task.server.exception.ServerTaskException: Unable to locate JRE at JRE for JavaSE-11
at com.gratex.oomph.task.server.creator.ServerCreator.getVMInstall(ServerCreator.java:99)
at com.gratex.oomph.task.server.creator.impl.TomcatServerCreator.createServerInstanceInternal(TomcatServerCreator.java:130)
at com.gratex.oomph.task.server.creator.ServerCreator.createServerInstance(ServerCreator.java:61)
at com.gratex.oomph.task.server.impl.TomcatServerTaskImpl.perform(TomcatServerTaskImpl.java:490)
at org.eclipse.oomph.setup.internal.core.SetupTaskPerformer.doPerformNeededSetupTasks(SetupTaskPerformer.java:3864)
at org.eclipse.oomph.setup.internal.core.SetupTaskPerformer$WorkspaceUtil$1.run(SetupTaskPerformer.java:5200)
at org.eclipse.core.internal.resources.Workspace.run(Workspace.java:2453)
at org.eclipse.core.internal.resources.Workspace.run(Workspace.java:2478)
at org.eclipse.oomph.setup.internal.core.SetupTaskPerformer$WorkspaceUtil.performNeededSetupTasks(SetupTaskPerformer.java:5193)
at org.eclipse.oomph.setup.internal.core.SetupTaskPerformer.performNeededSetupTasks(SetupTaskPerformer.java:3798)
at org.eclipse.oomph.setup.internal.core.SetupTaskPerformer.performTriggeredSetupTasks(SetupTaskPerformer.java:3773)
at org.eclipse.oomph.setup.internal.core.SetupTaskPerformer.perform(SetupTaskPerformer.java:3651)
at org.eclipse.oomph.setup.ui.wizards.ProgressPage$9.run(ProgressPage.java:592)
at org.eclipse.oomph.setup.ui.wizards.ProgressPage$11$1.run(ProgressPage.java:721)
... 1 more
The text was updated successfully, but these errors were encountered:
When the name of a JDK differs from the oomph default of "JRE for JavaSE-$version" the server installation fails.
This is reproducible by the following snippet which creates a JDK named "JDK11" and uses it for Tomcat creation:
This leads to the following exception:
The text was updated successfully, but these errors were encountered: