Skip to content

Tomcat not working on Windows #659

@hohwille

Description

@hohwille

Expected behavior

As a IDEasy user, I want to run tomcat easily so that I can test my app in tomcat.

Actual behavior

$ ide tomcat run
Configured version is 8u412b08 but does not match version to install [11,22) - need to use different version from software repository.
Using CATALINA_HOME:   D:\projects\_ide\software\default\tomcat\tomcat\10.1.30
Unable to start as CATALINA_HOME contains a colon (:) character
Step 'ide (tomcat,run)' failed: com.devonfw.tools.ide.cli.CliProcessException: Running command 'D:\projects\demo9\software\tomcat\bin\catalina.sh' using bash with arguments 'run' failed with exit code 1!
1 step(s) failed out of 2 steps.
Running command 'D:\projects\demo9\software\tomcat\bin\catalina.sh' using bash with arguments 'run' failed with exit code 1!

Error: IDEasy failed with exit code 1

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

  1. ide tomcat run

Related/Dependent Issues

Comments/Hints:

This worked once. Was that because before we were using catalina.bat on Windows? I assume so.
That was my fault since I suggested for simplification that we always return catalina.sh instead of adding OS detection and complicated stuff. Or we did not add CATALINA_HOME environment variable before.

Anyhow, if we define CATALINA_HOME and use the bash script catalina.sh it seems we need to transform the PATH to MINGW syntax.

Affected version:

  • 2024.09.002-beta (will not be fixed before release we create today)

Metadata

Metadata

Assignees

No one assigned

    Labels

    bugSomething isn't workingenvironmentEnvironmentCommandlet, env variables, path, etc.tomcatwindowsspecific for Microsoft Windows OS

    Type

    Projects

    Status

    ✅ Done

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions