오류 리포트
Java.net.BindException: Address already in use: bind
봉봉이네
2019. 2. 21. 11:06
문제상황
Java.net.BindException: Address already in use: bind
스프링 부터 웹 시작시 오류 발생하였다.
2016-05-17 15:05:07.917 ERROR 11048 --- [ main] o.a.coyote.http11.Http11NioProtocol : Failed to start end point associated with ProtocolHandler ["http-nio-8080"] java.net.BindException: Address already in use: bind at sun.nio.ch.Net.bind0(Native Method) ~[na:1.8.0_77] at sun.nio.ch.Net.bind(Unknown Source) ~[na:1.8.0_77] at sun.nio.ch.Net.bind(Unknown Source) ~[na:1.8.0_77] at sun.nio.ch.ServerSocketChannelImpl.bind(Unknown Source) ~[na:1.8.0_77] at sun.nio.ch.ServerSocketAdaptor.bind(Unknown Source) ~[na:1.8.0_77] at org.apache.tomcat.util.net.NioEndpoint.bind(NioEndpoint.java:340) ~[tomcat-embed-core-8.0.33.jar:8.0.33] ... (생략)
->다른 프로그램 8080 포트 를 사용중
해결방안
- 해당 스프링 부터 애플리케이션이 이미 실행중이면 중지
- 다른 프로그램을 끄거나, 포트변경 또는 스프링부트의 포트를 변경