I am trying to run my web application using IDEA intellij and tomcat server. I downloaded the tomcat server, pasted it into the program files, made CATALINA_HOME and edited the path to% CATALINA_HOME% \ bin ;, My version of the launch:

When I start the tomcat server from bin / startup.bat and try to start the project, I got the error Error when starting the event: localhost: 8080 is already in use.
When I do not start tomcat with the bat file first, I received an error message: the application server was not connected before starting the configuration stop, reason: it is impossible to ping the server on localhost: 1099. When I run this bat script from tomcat and go to localhost: 8080 I see the tomcat launch window.