加入收藏 | 设为首页 | 会员中心 | 我要投稿 李大同 (https://www.lidatong.com.cn/)- 科技、建站、经验、云计算、5G、大数据,站长网!
当前位置: 首页 > 综合聚焦 > 服务器 > 安全 > 正文

解决: is not found. Have you run APT to generate&n

发布时间:2020-12-17 00:33:46 所属栏目:安全 来源:网络整理
导读:Exception in thread "main" com.sun.xml.internal.ws.model.RuntimeModelerException: runtime modeler error: Wrapper class org.zttc.service.jaxws.Minus is not found. Have you run APT to generate them? at com.sun.xml.internal.ws.model.RuntimeMo
Exception in thread "main" com.sun.xml.internal.ws.model.RuntimeModelerException: runtime modeler error: Wrapper class org.zttc.service.jaxws.Minus is not found. Have you run APT to generate them? at com.sun.xml.internal.ws.model.RuntimeModeler.getClass(Unknown Source) at com.sun.xml.internal.ws.model.RuntimeModeler.processDocWrappedMethod(Unknown Source) at com.sun.xml.internal.ws.model.RuntimeModeler.processMethod(Unknown Source) at com.sun.xml.internal.ws.model.RuntimeModeler.processClass(Unknown Source) at com.sun.xml.internal.ws.model.RuntimeModeler.buildRuntimeModel(Unknown Source) at com.sun.xml.internal.ws.server.EndpointFactory.createSEIModel(Unknown Source) at com.sun.xml.internal.ws.server.EndpointFactory.createEndpoint(Unknown Source) at com.sun.xml.internal.ws.api.server.WSEndpoint.create(Unknown Source) at com.sun.xml.internal.ws.api.server.WSEndpoint.create(Unknown Source) at com.sun.xml.internal.ws.transport.http.server.EndpointImpl.createEndpoint(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 org.zttc.service.MyServer.main(MyServer.java:9) 原因:cxf需要jaxws-api-2.1.jar及jaxb-api-2.1.jar的支持 解决方案 1、将cxf所需的2.1的jar复制一份到jdk目录下的jrelibendorsed文件夹中。如果endorsed文件不存在,可新建。如果不行,可能还需要在public class XXX上方加入@SOAPBinding(style = SOAPBinding.Style.RPC)。 2、jdk升级到1.6.0_22版本以上。

(编辑:李大同)

【声明】本站内容均来自网络,其相关言论仅代表作者个人观点,不代表本站立场。若无意侵犯到您的权利,请及时与联系站长删除相关内容!

    推荐文章
      热点阅读