zoukankan      html  css  js  c++  java
  • webservice:com.sun.xml.internal.ws.server.ServerRtException: [failed to localize]

    发布webservice发生了错误,一直没有能够解决,错误如下:

    Exception in thread "main" com.sun.xml.internal.ws.server.ServerRtException: [failed to localize] cannot.load.wsdl(file:/D:/test/TmriOutAccess.wsdl)
        at com.sun.xml.internal.ws.transport.http.server.EndpointImpl.getPrimaryWsdl(EndpointImpl.java:375)
        at com.sun.xml.internal.ws.transport.http.server.EndpointImpl.createEndpoint(EndpointImpl.java:315)
        at com.sun.xml.internal.ws.transport.http.server.EndpointImpl.publish(EndpointImpl.java:231)
        at com.sun.xml.internal.ws.spi.ProviderImpl.createAndPublishEndpoint(ProviderImpl.java:126)
        at javax.xml.ws.Endpoint.publish(Endpoint.java:240)
        at com.test.webservice.server.ISuperviseForStandardService_SuperviseForStandardServiceImplPort_Server.<init>(ISuperviseForStandardService_SuperviseForStandardServiceImplPort_Server.java:19)
        at com.test.webservice.server.ISuperviseForStandardService_SuperviseForStandardServiceImplPort_Server.main(ISuperviseForStandardService_SuperviseForStandardServiceImplPort_Server.java:23)

    其实解决这个问题很简单:

    只要删除类中的wsdlLocation描述就可以了

    image

    访问成功:

    image

  • 相关阅读:
    一个WPF程序UnitTest发生错误的解决办法
    静态代码分析工具
    编程的苦恼
    error: access denied for user to path
    SortableObservableCollection<T>
    OBIEE Reporting Guidelines
    WPF 刷新画面
    编程为什么有趣?
    MultiMediaTimer
    php 序列化 与 反序列化
  • 原文地址:https://www.cnblogs.com/huiy/p/9678880.html
Copyright © 2011-2022 走看看