반응형
Notice
Recent Posts
Recent Comments
Link
일 | 월 | 화 | 수 | 목 | 금 | 토 |
---|---|---|---|---|---|---|
1 | 2 | 3 | 4 | 5 | 6 | 7 |
8 | 9 | 10 | 11 | 12 | 13 | 14 |
15 | 16 | 17 | 18 | 19 | 20 | 21 |
22 | 23 | 24 | 25 | 26 | 27 | 28 |
29 | 30 | 31 |
Tags
- 통영여행
- 돈암동맛집
- 통영
- 공무원
- 성신여대맛집
- react
- 한성대맛집
- 서울숲누룽지통닭구이
- ubuntu자바설치
- ELK
- 퇴사후공무원
- gradle
- 자바스크립트에러처리
- springboot
- 뚝섬역맛집
- 국가직
- 파이썬
- 성북구맛집
- 꼴뚜기회
- 통영예쁜카페
- 성신여대편백집
- npm
- 방이편백육분삼십
- 통영에어비앤비
- JavaScript
- tomcat7
- 방이편백육분삼십성신여대
- 한남동맛집
- 영화추천
- 스페인여행
Archives
- Today
- Total
코린이의 기록
[SpringBoot] spring boot failed to start : The port may already be in use or the connector may be misconfigured. 본문
Framework/Spring
[SpringBoot] spring boot failed to start : The port may already be in use or the connector may be misconfigured.
코린이예요 2018. 10. 31. 11:55반응형
spring boot Run 을 클릭하면 아래와 같이 Application Failed To start 에러가 발생한다.
소스 수정해서 웹에 반영하고 싶은데 해당 port가 listening 이라니..
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 | *************************** APPLICATION FAILED TO START *************************** Description: The Tomcat connector configured to listen on port 8080 failed to start. The port may already be in use or the connector may be misconfigured. Action: Verify the connector's configuration, identify and stop any process that's listening on port 8080, or configure this application to listen on another port. 2018-10-31 11:21:06.701 INFO 888496 --- [ main] ConfigServletWebServerApplicationContext : Closing org.springframework.boot.web.servlet.context.AnnotationConfigServletWebServerApplicationContext@3745e5c6: startup date [Wed Oct 31 11:20:58 KST 2018]; root of context hierarchy 2018-10-31 11:21:06.712 INFO 888496 --- [ main] o.s.j.e.a.AnnotationMBeanExporter : Unregistering JMX-exposed beans on shutdown > Task :bootRun FAILED FAILURE: Build failed with an exception. * What went wrong: Execution failed for task ':bootRun'. > Process 'command 'C:\Program Files\Java\jdk1.8.0_91\bin\java.exe'' finished with non-zero exit value 1 | cs |
IntelliJ terminal에서 netstat 으로 listening인 port를 검색해보니, server.port로 설정했던 port가 검색되었다.
> netstat -ao |find /i "listening"
1 2 3 4 5 6 7 8 9 10 11 | netstat -ao |find /i "listening" TCP 0.0.0.0:8080 LAPTOP-I5UEB5UM:0 LISTENING 136432 TCP 0.0.0.0:8090 LAPTOP-I5UEB5UM:0 LISTENING 848480 TCP 0.0.0.0:8099 LAPTOP-I5UEB5UM:0 LISTENING 853020 TCP [::]:8080 LAPTOP-I5UEB5UM:0 LISTENING 136432 TCP [::]:8090 LAPTOP-I5UEB5UM:0 LISTENING 848480 TCP [::]:8099 LAPTOP-I5UEB5UM:0 LISTENING 853020 | cs |
일단 위 port를 kill 해보겠다.
> Taskkill /F /IM [PID]
1 2 3 4 5 6 7 8 | C:\Users\sy.yoon.CONIN\Downloads\demo (1)\demo>Taskkill /F /IM 136432 성공: 프로세스(PID 136432)가 종료되었습니다. C:\Users\sy.yoon.CONIN\Downloads\demo (1)\demo>Taskkill /F /IM 848480 성공: 프로세스(PID 848480)가 종료되었습니다. C:\Users\sy.yoon.CONIN\Downloads\demo (1)\demo>Taskkill /F /IM 853020 성공: 프로세스(PID 853020)가 종료되었습니다. | cs |
그리고 나서 다시 bootRun
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 | 오전 11:31:59: Executing task 'bootRun'... > Task :compileJava UP-TO-DATE > Task :processResources UP-TO-DATE > Task :classes UP-TO-DATE > Task :bootRun . ____ _ __ _ _ /\\ / ___'_ __ _ _(_)_ __ __ _ \ \ \ \ ( ( )\___ | '_ | '_| | '_ \/ _` | \ \ \ \ \\/ ___)| |_)| | | | | || (_| | ) ) ) ) ' |____| .__|_| |_|_| |_\__, | / / / / =========|_|==============|___/=/_/_/_/ :: Spring Boot :: (v2.0.6.RELEASE) 2018-10-31 11:32:04.189 INFO 893800 --- [ main] com.example.demo.DemoApplication : Starting DemoApplication on LAPTOP-I5UEB5UM with PID 893800 (started by sy.yoon in C:\Users\sy.yoon.CONIN\Downloads\demo (1)\demo) 2018-10-31 11:32:04.221 INFO 893800 --- [ main] com.example.demo.DemoApplication : No active profile set, falling back to default profiles: default 2018-10-31 11:32:04.349 INFO 893800 --- [ main] ConfigServletWebServerApplicationContext : Refreshing org.springframework.boot.web.servlet.context.AnnotationConfigServletWebServerApplicationContext@75c072cb: startup date [Wed Oct 31 11:32:04 KST 2018]; root of context hierarchy 2018-10-31 11:32:09.182 ERROR 893800 --- [ main] o.a.catalina.core.AprLifecycleListener : An incompatible version [1.1.3] of the APR based Apache Tomcat Native library is installed, while Tomcat requires version [1.2.14] 2018-10-31 11:32:09.867 INFO 893800 --- [ main] o.s.b.w.embedded.tomcat.TomcatWebServer : Tomcat initialized with port(s): 8080 (http) 2018-10-31 11:32:09.901 ERROR 893800 --- [ main] o.a.catalina.core.AprLifecycleListener : An incompatible version [1.1.3] of the APR based Apache Tomcat Native library is installed, while Tomcat requires version [1.2.14] 2018-10-31 11:32:09.924 INFO 893800 --- [ main] o.apache.catalina.core.StandardService : Starting service [Tomcat] 2018-10-31 11:32:09.925 INFO 893800 --- [ main] org.apache.catalina.core.StandardEngine : Starting Servlet Engine: Apache Tomcat/8.5.34 2018-10-31 11:32:09.944 ERROR 893800 --- [ost-startStop-1] o.a.catalina.core.AprLifecycleListener : An incompatible version [1.1.3] of the APR based Apache Tomcat Native library is installed, while Tomcat requires version [1.2.14] 2018-10-31 11:32:10.538 INFO 893800 --- [ost-startStop-1] org.apache.jasper.servlet.TldScanner : At least one JAR was scanned for TLDs yet contained no TLDs. Enable debug logging for this logger for a complete list of JARs that were scanned but no TLDs were found in them. Skipping unneeded JARs during scanning can improve startup time and JSP compilation time. 2018-10-31 11:32:10.550 INFO 893800 --- [ost-startStop-1] o.a.c.c.C.[Tomcat].[localhost].[/] : Initializing Spring embedded WebApplicationContext 2018-10-31 11:32:10.551 INFO 893800 --- [ost-startStop-1] o.s.web.context.ContextLoader : Root WebApplicationContext: initialization completed in 6206 ms 2018-10-31 11:32:10.719 INFO 893800 --- [ost-startStop-1] o.s.b.w.servlet.ServletRegistrationBean : Servlet dispatcherServlet mapped to [/] 2018-10-31 11:32:10.725 INFO 893800 --- [ost-startStop-1] o.s.b.w.servlet.FilterRegistrationBean : Mapping filter: 'characterEncodingFilter' to: [/*] 2018-10-31 11:32:10.725 INFO 893800 --- [ost-startStop-1] o.s.b.w.servlet.FilterRegistrationBean : Mapping filter: 'hiddenHttpMethodFilter' to: [/*] 2018-10-31 11:32:10.725 INFO 893800 --- [ost-startStop-1] o.s.b.w.servlet.FilterRegistrationBean : Mapping filter: 'httpPutFormContentFilter' to: [/*] 2018-10-31 11:32:10.725 INFO 893800 --- [ost-startStop-1] o.s.b.w.servlet.FilterRegistrationBean : Mapping filter: 'requestContextFilter' to: [/*] 2018-10-31 11:32:10.983 INFO 893800 --- [ main] o.s.w.s.handler.SimpleUrlHandlerMapping : Mapped URL path [/**/favicon.ico] onto handler of type [class org.springframework.web.servlet.resource.ResourceHttpRequestHandler] 2018-10-31 11:32:11.255 INFO 893800 --- [ main] s.w.s.m.m.a.RequestMappingHandlerAdapter : Looking for @ControllerAdvice: org.springframework.boot.web.servlet.context.AnnotationConfigServletWebServerApplicationContext@75c072cb: startup date [Wed Oct 31 11:32:04 KST 2018]; root of context hierarchy 2018-10-31 11:32:11.389 INFO 893800 --- [ main] s.w.s.m.m.a.RequestMappingHandlerMapping : Mapped "{[/posts/new],methods=[GET]}" onto public java.lang.String com.example.demo.controller.DemoController.newPost(org.springframework.ui.Model) 2018-10-31 11:32:11.393 INFO 893800 --- [ main] s.w.s.m.m.a.RequestMappingHandlerMapping : Mapped "{[/error]}" onto public org.springframework.http.ResponseEntity<java.util.Map<java.lang.String, java.lang.Object>> org.springframework.boot.autoconfigure.web.servlet.error.BasicErrorController.error(javax.servlet.http.HttpServletRequest) 2018-10-31 11:32:11.394 INFO 893800 --- [ main] s.w.s.m.m.a.RequestMappingHandlerMapping : Mapped "{[/error],produces=[text/html]}" onto public org.springframework.web.servlet.ModelAndView org.springframework.boot.autoconfigure.web.servlet.error.BasicErrorController.errorHtml(javax.servlet.http.HttpServletRequest,javax.servlet.http.HttpServletResponse) 2018-10-31 11:32:11.426 INFO 893800 --- [ main] o.s.w.s.handler.SimpleUrlHandlerMapping : Mapped URL path [/webjars/**] onto handler of type [class org.springframework.web.servlet.resource.ResourceHttpRequestHandler] 2018-10-31 11:32:11.427 INFO 893800 --- [ main] o.s.w.s.handler.SimpleUrlHandlerMapping : Mapped URL path [/**] onto handler of type [class org.springframework.web.servlet.resource.ResourceHttpRequestHandler] 2018-10-31 11:32:11.730 INFO 893800 --- [ main] o.s.j.e.a.AnnotationMBeanExporter : Registering beans for JMX exposure on startup 2018-10-31 11:32:13.456 INFO 893800 --- [ main] o.s.b.w.embedded.tomcat.TomcatWebServer : Tomcat started on port(s): 8080 (http) with context path '' 2018-10-31 11:32:13.476 INFO 893800 --- [ main] com.example.demo.DemoApplication : Started DemoApplication in 9.984 seconds (JVM running for 10.787) | cs |
다시 정상적으로 작동된다.
반응형
'Framework > Spring' 카테고리의 다른 글
[Spring Boot] Could not create service of type ScriptPluginFactory... (0) | 2020.06.02 |
---|---|
[SpringBoot] SpringBoot + Thymeleaf + Maven Project 생성 및 실습/ 프로젝트 구조 (0) | 2019.04.24 |
[Springboot] Eclipse + Gradle Project 생성하기 및 프로젝트 구조 (0) | 2018.10.24 |
[Springboot] Spring boot 설치하기 + Eclipse에서 Gradle 환경 구성하기 (0) | 2018.10.24 |
[Spring] Spring 4 - 스프링 AOP(Aspect Oriented Programming) 구현 (0) | 2018.05.03 |
Comments