There is a simple java web service error
•
Java
I encountered these errors when trying to run my first Java Web Services tutorial in eclipse What does this mean:(
SayHello Web Service started. Exception in thread "main" com.sun.xml.internal.ws.server.ServerRtException: Server Runtime Error: java.net.BindException: Address already in use: bind at com.sun.xml.internal.ws.transport.http.server.ServerMgr.createContext(UnkNown Source) at com.sun.xml.internal.ws.transport.http.server.HttpEndpoint.publish(UnkNown Source) at com.sun.xml.internal.ws.transport.http.server.EndpointImpl.publish(UnkNown Source) at com.sun.xml.internal.ws.spi.ProviderImpl.createAndPublishEndpoint(UnkNown Source) at javax.xml.ws.Endpoint.publish(UnkNown Source) at com.myfirst.wsServer.RunService.main(RunService.java:14) Caused by: java.net.BindException: Address already in use: bind at sun.nio.ch.Net.bind(Native Method) at sun.nio.ch.ServerSocketChannelImpl.bind(UnkNown Source) at sun.nio.ch.ServerSocketAdaptor.bind(UnkNown Source) at sun.net.httpserver.ServerImpl.<init>(UnkNown Source) at sun.net.httpserver.HttpServerImpl.<init>(UnkNown Source) at sun.net.httpserver.DefaultHttpServerProvider.createHttpServer(UnkNown Source) at com.sun.net.httpserver.HttpServer.create(UnkNown Source) ... 6 more
Solution
This means that you already have a process bound to the port number Stop any process that is listening to the port and you can start It may have started the server, and you should be able to see its output as a console in eclipse If you see it, click the big red square to stop it If you start the server outside eclipse, use netstat | to find it grep 'port number' and kill it
The content of this article comes from the network collection of netizens. It is used as a learning reference. The copyright belongs to the original author.
THE END
二维码