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

Server creation fails when the JRE name differs from the oomph default #16

Open
Zuplyx opened this issue Nov 30, 2023 · 0 comments
Open

Comments

@Zuplyx
Copy link

Zuplyx commented Nov 30, 2023

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:

<setupTask
        xsi:type="jdt:JRETask"
        id="jre11"
        version="JavaSE-11"
        location="${jre.location-11}"
        name="JDK11"/>
        
<setupTask
          xsi: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
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

1 participant