2 qq 29878685 qq_29878685 于 2017.09.19 10:59 提问

webservice,URL发布的问题,报错

我写本地的就不报错,但是也我们自己网站就报这个错,

 Exception in thread "main" com.sun.xml.internal.ws.server.ServerRtException: 服务器运行时错误: java.net.BindException: Cannot assign requested address: bind
    at com.sun.xml.internal.ws.transport.http.server.ServerMgr.createContext(ServerMgr.java:117)
    at com.sun.xml.internal.ws.transport.http.server.HttpEndpoint.publish(HttpEndpoint.java:64)
    at com.sun.xml.internal.ws.transport.http.server.EndpointImpl.publish(EndpointImpl.java:232)
    at com.sun.xml.internal.ws.spi.ProviderImpl.createAndPublishEndpoint(ProviderImpl.java:126)
    at javax.xml.ws.Endpoint.publish(Endpoint.java:240)
    at com.bjhnd.Service.DatacenterMiddle.DatacenterMiddle.main(DatacenterMiddle.java:65)
Caused by: java.net.BindException: Cannot assign requested address: bind
    at sun.nio.ch.Net.bind0(Native Method)
    at sun.nio.ch.Net.bind(Net.java:433)
    at sun.nio.ch.Net.bind(Net.java:425)
    at sun.nio.ch.ServerSocketChannelImpl.bind(ServerSocketChannelImpl.java:223)
    at sun.nio.ch.ServerSocketAdaptor.bind(ServerSocketAdaptor.java:74)
    at sun.net.httpserver.ServerImpl.<init>(ServerImpl.java:100)
    at sun.net.httpserver.HttpServerImpl.<init>(HttpServerImpl.java:50)
    at sun.net.httpserver.DefaultHttpServerProvider.createHttpServer(DefaultHttpServerProvider.java:35)
    at com.sun.net.httpserver.HttpServer.create(HttpServer.java:130)
    at com.sun.xml.internal.ws.transport.http.server.ServerMgr.createContext(ServerMgr.java:86)
    ... 5 more

2个回答

song8870
song8870   2017.09.20 16:42
已采纳

host配置有误啊,查看本机器名和对应的ip地址是否有问题

desen778
desen778   2017.09.19 11:08

地址绑定错误,看下你地址是否有重复吧

song8870
song8870 回复橙稚: 端口前面得有冒号
2 个月之前 回复
qq_29878685
qq_29878685 "http://www.tzjkglpt.com8080/GDPhysicalFitnessTestSystem/Service/save?wsdl";我这么写的,有什么问题吗
2 个月之前 回复
Csdn user default icon
上传中...
上传图片
插入图片