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描述就可以了
访问成功:
转载于:https://www.cnblogs.com/huiy/p/9678880.html
webservice:com.sun.xml.internal.ws.server.ServerRtException: [failed to localize]相关推荐
- Exception in thread main com.sun.xml.internal.ws.client.ClientTransportException: HTTP transport e
摘要:在调用webservice客户端代码的时候报如下错误 Invoking reportLossByRdid... Exception in thread "main" com. ...
- java: 程序包com.sun.xml.internal.ws.api.ha不存在
用maven运行项目的时候,compile不通过,会报一个: Error:(6,38) java: 程序包com.sun.xml.internal.ws.api.ha不存在. 方法一:在配置文件中加入 ...
- 解决maven 引用JDK内部类编译错误 程序包:com.sun.xml.internal.bind.marshaller.CharacterEscapeHandler不存在...
解决maven 引用JDK内部类编译错误 程序包:com.sun.xml.internal.bind.marshaller.CharacterEscapeHandler不存在- 网上很多帖子的解决方案 ...
- 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 ...
- Idea 遇到:com.sun.istack.internal不存在和程序包com.sun.image.codec.jpeg不存在
com.sun.istack.internal不存在: 在maven中的org.apache.maven.plugins下面添加: <plugin><groupId>org.a ...
- java javax.xml.ws_调用webservice的问题 – javax.xml.ws.WebServiceE...
我有一个wsdl文件,很多xsd文件,jxb绑定文件.我使用Apache CXF cxf-codegen-plugin创建了一个Web服务客户端.创建Java类没有任何错误.但是当我尝试调用任何生成的 ...
- springBoot 打war包 程序包com.sun.istack.internal不存在的问题
使用的是 idea - Lifecycle-package 的方式打包(maven) 确认 <packaging>war</packaging> 修改启动类: (原启动类) ...
- 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 ...
- maven编译不通过:软件包com.sun.org.apache.xml.internal.security.utils.Base64 不存在
问题:代码中使用了sun公司的第三方私有库,导致编译不通过 maven打包异常:软件包com.sun.org.apache.xml.internal.security.utils.Base64 不存 ...
最新文章
- antd Form.Item 中如何获取到Select的label值
- 我的世界java版怎么加整合包_我的世界1.9MOD简单整合下载 功能性懒人包
- javascript span ie 与FF
- 【button】 按钮组件说明
- 理论基础 —— 队列 —— 链队列
- idea database 添加字段不更新_如何借助IDEA数据库管理工具可视化使用TDengine?
- armgcc交叉编译的文件无法运行_从0开始搭建基于ARM GCC的软件系统02——使用ARM GCC编译SDK
- vscode运行C++代码正常,但编辑时有红色波浪线,提示未定义标识符
- 流式上传文件到服务器磁盘,在ASP.NET中流式传输大文件上传
- 牛客练习赛43F Tachibana Kanade Loves Game
- Redis常用数据类型介绍、使用场景及其操作命令
- POST 和GET传输的最大容量分别是多少?
- 美赛各题用到的方法(2017,2018部分题目)
- php+将json转字符串,php实现json转字符串的方法
- 有道智云应用ID应用密钥审请
- 【深度学习】搭建类似LeNet-5网络识别Fashion-MNIST数据集(衣服,鞋子等)
- 远程连接的电脑突然白屏了怎么办?
- C++对于文件的操作(4)——更改文件指定位置的数据(在新旧数据长度不一致的情况下)
- eclipse安装与配置maven插件
- 搞清楚 Python traceback