Springboot Project org.springframework.boot.context.embedded.EmbeddedServletContainerException:Unable to start embedded Jetty servlet Container Error

Source: Internet
Author: User

Springboot Project Start Error
ERROR 2172--- [main] o.s.boot.springapplication:application startup Failedorg.springframework.boot.context.embedded.EmbeddedServletContainerException:Unable to start embedded Jetty servlet container
At Org.springframework.boot.context.embedded.jetty.JettyEmbeddedServletContainer.start ( Jettyembeddedservletcontainer.java:124) ~[spring-boot-1.3.1. Release.jar:1.3.1. Release]at Org.springframework.boot.context.embedded.EmbeddedWebApplicationContext.startEmbeddedServletContainer ( Embeddedwebapplicationcontext.java:293) ~[spring-boot-1.3.1. Release.jar:1.3.1. Release]at Org.springframework.boot.context.embedded.EmbeddedWebApplicationContext.finishRefresh ( Embeddedwebapplicationcontext.java:141) ~[spring-boot-1.3.1. Release.jar:1.3.1. Release]at Org.springframework.context.support.AbstractApplicationContext.refresh ( Abstractapplicationcontext.java:541) ~[spring-context-4.2.4. Release.jar:4.2.4. Release]at Org.springframework.boot.context.embedded.EmbeddedWebApplicationContext.refresh ( Embeddedwebapplicationcontext.java:118) ~[spring-boot-1.3.1. Release.jar:1.3.1. Release]at Org.springframework.boot.SpringApplication.refresh (Springapplication.java:764) [spring-boot-1.3.1. Release.jar:1.3.1. Release]at Org.springframework.boot.SpringApplication.doRun (Springapplication.java:357) [spring-boot-1.3.1. Release.jar:1.3.1. Release]at Org.springframework.boot.SpringApplication.run (Springapplication.java:305) [spring-boot-1.3.1. Release.jar:1.3.1. Release]at Org.springframework.boot.SpringApplication.run (Springapplication.java:1124) [spring-boot-1.3.1. Release.jar:1.3.1. Release]at Org.springframework.boot.SpringApplication.run (Springapplication.java:1113) [spring-boot-1.3.1. Release.jar:1.3.1. Release]at Com.easemob.weichat.gateway.im.IMRoutewayServerStarter.main (Imroutewayserverstarter.java: -) [classes/: NA] caused by:java.net.BindException:Address alreadyinchuseat sun.nio.ch.Net.bind0 (Native Method)~[na:1.8. 0_112]at sun.nio.ch.Net.bind (Net.java:433) ~[na:1.8. 0_112]at sun.nio.ch.Net.bind (Net.java:425) ~[na:1.8. 0_112]at sun.nio.ch.ServerSocketChannelImpl.bind (Serversocketchannelimpl.java:223) ~[na:1.8. 0_112]at sun.nio.ch.ServerSocketAdaptor.bind (Serversocketadaptor.java: About) ~[na:1.8. 0_112]at Org.eclipse.jetty.server.ServerConnector.open (Serverconnector.java:321) ~[jetty-server-9.2. -. V20151106.jar:9.2. -. V20151106]at Org.eclipse.jetty.server.AbstractNetworkConnector.doStart (Abstractnetworkconnector.java:  the) ~[jetty-server-9.2. -. V20151106.jar:9.2. -. V20151106]at Org.eclipse.jetty.server.ServerConnector.doStart (Serverconnector.java:236) ~[jetty-server-9.2. -. V20151106.jar:9.2. -. V20151106]at Org.eclipse.jetty.util.component.AbstractLifeCycle.start (Abstractlifecycle.java: the) ~[jetty-util-9.2. -. V20151106.jar:9.2. -. V20151106]at Org.springframework.boot.context.embedded.jetty.JettyEmbeddedServletContainer.start ( Jettyembeddedservletcontainer.java:118) ~[spring-boot-1.3.1. Release.jar:1.3.1. RELEASE] ...TenCommon frames omitted

Workaround:

1. If you have previously started another Springboot project, change the port number directly.

2. If it is a new project, add related dependencies, see https://bbs.csdn.net/topics/391039574

Springboot Project org.springframework.boot.context.embedded.EmbeddedServletContainerException:Unable to start embedded Jetty servlet Container Error

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.