Hello, I have Tomcat 10 installed separately from Netbeans. Using Netbeans 19 I have Tomcat added as a "Server" under the "Services" tab. I then have this Server added to my project in "Project Properties > Run". I can select my configured Tomcat as the Server and when I run the project it all works as expected.
I recently installed Netbeans 20 and did not inherit the settings from Netbeans 19 on first launch. I added Tomcat as a Server again but when I open "Project Properties > Run" in my Gradle project the drop down to select the server is empty. My Gradle build file has not changed and uses the war plugin and specifies the servlet-api as a compileOnly dependency: ``` compileOnly 'jakarta.servlet:jakarta.servlet-api:6.0.0' ``` I have worked out that I can get it to work if I add this additional dependency: ``` compileOnly 'jakarta.platform:jakarta.jakartaee-web-api:10.0.0' ``` The "Project Properties > Run" now lets me choose the Tomcat server and I can run the project as before. Is this expected behaviour when it worked in previous versions of Netbeans without the additional dependency? ---- Netbeans 20 Gradle 7.6.1 OpenJDK 17.0.8.1 macOS 14.2 M1 Arm ---- Thanks, Bob