[Eclipse的碼頭]無法在端口9091啓動Jetty服務器:我使用的碼頭HTTP服務器發佈REST Web服務無法分配請求地址碼頭HTTP服務器的IP和端口綁定錯誤:ServiceConstructionException
。
配置: 服務器-IP:20.121.21.22 端口:8081
對於上述結構,拋出異常的下方。
org.apache.cxf.service.factory.ServiceConstructionException
Caused by: org.apache.cxf.interceptor.Fault: Could not start Jetty server on port 8,081: Cannot assign requested address at org.apache.cxf.transport.http_jetty.JettyHTTPServerEngine.addServant(JettyHTTPServerEngine.java:386) at org.apache.cxf.transport.http_jetty.JettyHTTPDestination.activate(JettyHTTPDestination.java:178) at org.apache.cxf.transport.AbstractObservable.setMessageObserver(AbstractObservable.java:48) at org.apache.cxf.binding.AbstractBaseBindingFactory.addListener(AbstractBaseBindingFactory.java:95) at org.apache.cxf.endpoint.ServerImpl.start(ServerImpl.java:131) at org.apache.cxf.jaxrs.JAXRSServerFactoryBean.create(JAXRSServerFactoryBean.java:192) ... 3 more Caused by: java.net.BindException: Cannot assign requested address at sun.nio.ch.Net.bind(Native Method) at sun.nio.ch.ServerSocketChannelImpl.bind(ServerSocketChannelImpl.java:124) at sun.nio.ch.ServerSocketAdaptor.bind(ServerSocketAdaptor.java:59) at org.eclipse.jetty.server.nio.SelectChannelConnector.open(SelectChannelConnector.java:209) at org.eclipse.jetty.server.nio.SelectChannelConnector.doStart(SelectChannelConnector.java:289) at org.eclipse.jetty.util.component.AbstractLifeCycle.start(AbstractLifeCycle.java:55) at org.eclipse.jetty.server.Server.doStart(Server.java:253) at org.eclipse.jetty.util.component.AbstractLifeCycle.start(AbstractLifeCycle.java:55) at org.apache.cxf.transport.http_jetty.JettyHTTPServerEngine.addServant(JettyHTTPServerEngine.java:375) ... 8 more
在錯誤信息端口顯示是8081,但我已經配置爲8081
任何人都可以在這方面幫助?