WebService异常(一)__javax.xml.ws.Endpoint.publish()

Exception in thread "main" com.sun.xml.ws.model.RuntimeModelerException: runtime modeler error: Wrapper class com.ws.publish.jaxws.SelectMaxAgeStudent is not found. Have you run APT to generate them?

友情的最大尽力并不是向一个伴侣显现我们的缺点,而是使他看到本身的缺点。at com.sun.xml.ws.model.RuntimeModeler.getClass(RuntimeModeler.java:285

at com.sun.xml.ws.model.RuntimeModeler.processDocWrappedMethod(RuntimeModeler.java:596

at com.sun.xml.ws.model.RuntimeModeler.processMethod(RuntimeModeler.java:543

at com.sun.xml.ws.model.RuntimeModeler.processClass(RuntimeModeler.java:370

at com.sun.xml.ws.model.RuntimeModeler.buildRuntimeModel(RuntimeModeler.java:256

at com.sun.xml.ws.server.EndpointFactory.createSEIModel(EndpointFactory.java:322

at com.sun.xml.ws.server.EndpointFactory.createEndpoint(EndpointFactory.java:188

at com.sun.xml.ws.api.server.WSEndpoint.create(WSEndpoint.java:467

at com.sun.xml.ws.api.server.WSEndpoint.create(WSEndpoint.java:486

at com.sun.xml.ws.transport.http.server.EndpointImpl.createEndpoint(EndpointImpl.java:222

at com.sun.xml.ws.transport.http.server.EndpointImpl.publish(EndpointImpl.java:152

at com.sun.xml.ws.spi.ProviderImpl.createAndPublishEndpoint(ProviderImpl.java:113

at javax.xml.ws.Endpoint.publish(Endpoint.java:170

at com.ws.publish.EndpointPublish.main(EndpointPublish.java:8

 

完全贴出Eclipse中错误,

jaxws.SelectMaxAgeStudent is not found jaxws在之前进修过手动dos号令下生成Webservice想到我少了JAX-WS2.1.2,jar包;Build Path参加所有jar后还是报错;原因就是我的jdk1.6版本不是最新,须要在实现类前参加@SOAPBinding(style = SOAPBinding.Style.RPC),运行!一切正常

  • 1
    点赞
  • 1
    收藏
    觉得还不错? 一键收藏
  • 0
    评论

“相关推荐”对你有帮助么?

  • 非常没帮助
  • 没帮助
  • 一般
  • 有帮助
  • 非常有帮助
提交
评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值