Skip to content

Tomcat still not working (JAVA_HOME not set) #673

@hohwille

Description

@hohwille

Expected behavior

As a IDEasy user, I want to be able to install and run tomcat so that I can use it for my legacy WAR app.

Actual behavior

$ ide tomcat run
Tomcat is running at localhost on HTTP port 8080:
http://localhost:8080
Successfully completed ide (tomcat,run)
Neither the JAVA_HOME nor the JRE_HOME environment variable is defined
At least one of these environment variable is needed to run this program

Even though IDEasy said the launch was successful, it actually failed (as it was started in the background).
The actual bug is that JAVA_HOME does not seem to be set for the process context.

Steps to reproduce (bug) / Use Case of feature request (enhancement)

  1. ide tomcat run

Related/Dependent Issues

#36
#659

Comments/Hints:

Do we need to export it in the tomcat wrapper script?
Or is the problem that I introduced this tomcat wrapper script and we need to call catalina.bat or catalina.sh directly?

Affected version:

  • OS: Windows
  • IDEasy: 2024.09.002-beta

Metadata

Metadata

Assignees

Labels

environmentEnvironmentCommandlet, env variables, path, etc.tomcatapache tomcat integration

Type

Projects

Status

✅ Done

Relationships

None yet

Development

No branches or pull requests

Issue actions