Search code examples
intellij-ideatomcat

IntelliJ Ultimate cannot open open Tomcat Web Application


Only ultimate has web application support so that's out of the way.

I am trying to start open up my web app via tomcat something which I do successfully on the same machine on netbeans with next to no configuration.

What is the step by step guide to getting this to work here are several of my attempts: both tomcat and tomcat EE added both are added for good measureall possible combinations

all possible combinations with EE and non EE remote and local.

none of which work.

I've done this: Cannot run/debug jsp page from within IntelliJ using Tomcat server

checked this: Intellij IDEA Tomcat Application Server was not connected before run configuration stop, reason: Unable to ping server at localhost:1099

done this: IntelliJ, can't start simple web application: Unable to ping server at localhost:1099

but nothing gives way.

Running tomcat local (first thing I tried and what I would have bet on. Chrome actually opens but the page cannot be found.)

chrome

Which is more promising because tomcat is actually found if I manually navigate to index.jsp:

tomcatworking

but no other URL works. not the project path, not its path plus index.jsp:

enter image description here

Running tomcat remote:

running tomcat remote

same for TomEE local runs but fails to find webpage. remote fails to run with same error message. though unless the terminology is seriously *** up (I've seen app makers go this far before) what I want is local.

Please help


Solution

  • THe only possible way to have a functioning Tomcat and webapp project under intellij is to first create a new project via the wizard and select web app.

    the guide here is to be followed exactly : https://www.jetbrains.com/help/idea/2017.1/enabling-web-application-support.html

    any deveation and trying to convert an existing project into a web app is not supported.

    (I'm sorry for anyone who feels differently but just try you'll see)