发布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描述就可以了

访问成功:

转载于:https://www.cnblogs.com/huiy/p/9678880.html

webservice:com.sun.xml.internal.ws.server.ServerRtException: [failed to localize]相关推荐

  1. Exception in thread main com.sun.xml.internal.ws.client.ClientTransportException: HTTP transport e

    摘要:在调用webservice客户端代码的时候报如下错误 Invoking reportLossByRdid... Exception in thread "main" com. ...

  2. java: 程序包com.sun.xml.internal.ws.api.ha不存在

    用maven运行项目的时候,compile不通过,会报一个: Error:(6,38) java: 程序包com.sun.xml.internal.ws.api.ha不存在. 方法一:在配置文件中加入 ...

  3. 解决maven 引用JDK内部类编译错误 程序包:com.sun.xml.internal.bind.marshaller.CharacterEscapeHandler不存在...

    解决maven 引用JDK内部类编译错误 程序包:com.sun.xml.internal.bind.marshaller.CharacterEscapeHandler不存在- 网上很多帖子的解决方案 ...

  4. JDK 9.0.4 报错:程序包 com.sun.xml.internal.fastinfoset.stax.events 不存在/不可见

    IDE:IntelliJ IDEA 构建工具:Maven JDK版本:JDK 9.0.4 在代码中使用下面的工具类: com.sun.xml.internal.fastinfoset.stax.eve ...

  5. Idea 遇到:com.sun.istack.internal不存在和程序包com.sun.image.codec.jpeg不存在

    com.sun.istack.internal不存在: 在maven中的org.apache.maven.plugins下面添加: <plugin><groupId>org.a ...

  6. java javax.xml.ws_调用webservice的问题 – javax.xml.ws.WebServiceE...

    我有一个wsdl文件,很多xsd文件,jxb绑定文件.我使用Apache CXF cxf-codegen-plugin创建了一个Web服务客户端.创建Java类没有任何错误.但是当我尝试调用任何生成的 ...

  7. springBoot 打war包 程序包com.sun.istack.internal不存在的问题

    使用的是 idea - Lifecycle-package 的方式打包(maven) 确认  <packaging>war</packaging> 修改启动类: (原启动类) ...

  8. The required Server component failed to start so Tomcat is unable to start问题解决

    The required Server component failed to start so Tomcat is unable to start问题解决 参考文章: (1)The required ...

  9. maven编译不通过:软件包com.sun.org.apache.xml.internal.security.utils.Base64 不存在

     问题:代码中使用了sun公司的第三方私有库,导致编译不通过 maven打包异常:软件包com.sun.org.apache.xml.internal.security.utils.Base64 不存 ...

最新文章

  1. antd Form.Item 中如何获取到Select的label值
  2. 我的世界java版怎么加整合包_我的世界1.9MOD简单整合下载 功能性懒人包
  3. javascript span ie 与FF
  4. 【button】 按钮组件说明
  5. 理论基础 —— 队列 —— 链队列
  6. idea database 添加字段不更新_如何借助IDEA数据库管理工具可视化使用TDengine?
  7. armgcc交叉编译的文件无法运行_从0开始搭建基于ARM GCC的软件系统02——使用ARM GCC编译SDK
  8. vscode运行C++代码正常,但编辑时有红色波浪线,提示未定义标识符
  9. 流式上传文件到服务器磁盘,在ASP.NET中流式传输大文件上传
  10. 牛客练习赛43F Tachibana Kanade Loves Game
  11. Redis常用数据类型介绍、使用场景及其操作命令
  12. POST 和GET传输的最大容量分别是多少?
  13. 美赛各题用到的方法(2017,2018部分题目)
  14. php+将json转字符串,php实现json转字符串的方法
  15. 有道智云应用ID应用密钥审请
  16. 【深度学习】搭建类似LeNet-5网络识别Fashion-MNIST数据集(衣服,鞋子等)
  17. 远程连接的电脑突然白屏了怎么办?
  18. C++对于文件的操作(4)——更改文件指定位置的数据(在新旧数据长度不一致的情况下)
  19. eclipse安装与配置maven插件
  20. 搞清楚 Python traceback

热门文章

  1. 电脑常用快捷键【按使用场景分类】-Windows
  2. esp8266 nvs应用
  3. HTML 提交表单,JQuery接收内容
  4. python重新安装ssl_python3安装文件遇到ssl未安装问题
  5. 微信公众号提供的服务器故障,微信公众号出现“该公众号提供的服务出现故障”解决办法...
  6. 《月下独酌》赏析-(李白明月姑娘之一)
  7. 将一个数的每一位都正序输出——简单算法
  8. liunx检测上下行带宽及丢包率
  9. 直接在文件夹打开cmd
  10. Word中怎么用MathType编辑公式