I am trying practice Java servlet where I need Tomcat server. I choose IntelliJ as my IDE which is throwing me popup message:

Screensot of the pop error message by Intellji.

I used this configuration: Screenshot image of IntelliJ Tomcat Local server configuration.

And this is what's inside Tomcat's server.xml file, where u can see the port number also matches with the one within IntelliJ. But the port numbers of JMX, HTTPS & AJP is not mentioned in this server file by default.

Now the main question is why IntelliJ is responding like this when everything 'looks' fine? Help me if u delt with this issue.

  • In the Tomcat Server Settings in your screenshot there are two ports that are not assigned any value. What happens if you give them a port number? Aug 5, 2019 at 17:46
  • @TomášPospíšek no changing port number in Intellij won't do anything.
    – Pranav
    Aug 8, 2019 at 6:11

1 Answer 1


Inside your Tomcat installation folder, go to
"server.xml" (probably under /usr/share/tomcat{x}/conf/) file and change:

<Server port="-1" shutdown="SHUTDOWN">


<Server port="8005" shutdown="SHUTDOWN">

As mentioned by of in this Jetbrains issue tacker page.

Another important thing is: In the Deployment section, make sure to add Artifact like this: Screenshot of Tomcat Config page

And again if u miss something, follow this page. And if u are in deeper other problem then follow this link where I discussed to solve Tomcat9 & IntelliJ 2019.1.3 integration in Ubuntu 19.04. It took me 5 days to resolve this issue.

  • @user889789 I don't what u did, but you will be missed. :-D
    – Pranav
    Jan 16, 2020 at 9:07

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

Not the answer you're looking for? Browse other questions tagged or ask your own question.