Cannot start application on tomcat using intellij

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:

enter image description here

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.

+4
2
  • , JDK 8 Tomcat 9
  • "Run Configuration", "" , . URL- " " ""
  • , "", , " " . ? , Build Build 'simpleServlet:war' artifact. , +
  • , - IntelliJ, , Tomcat : URL http://localhost:8080. " " . , Tomcat.
  • IntelliJ enter image description here

enter image description here

+3

, , - . IntelliJ - 2017.1.4. Tomcat 9.0.0

  • → → Java → "-" → , . [.idea + src + web/WEB-INF] index.jsp - web.xml WEB-INF. . 2 3 .

  • "" → "" → "" , - ( - ). , , : + → Web → .

  • → → , , "ProjectName: war exploded". , , : + → -: → → .

  • "Run" "Edit Configurations". → → + → Tomcat → . "" "" Tomcat (: Tomcat 9.0.0.M22). "" : + → → " : ".

  • - index.jsp, . index.jsp.

web.xml , , , index.html/index.jsp - . , .jsp -, web.xml.

0

Source: https://habr.com/ru/post/1665651/


All Articles