码迷,mamicode.com
首页 > 移动开发 > 详细

JDK 1.6 写Webservice时,runtime modeler error: Wrapper class com.ws.jaxws.DoSomething is not found问题的解决办法

时间:2015-08-18 16:05:06      阅读:175      评论:0      收藏:0      [点我收藏+]

标签:

转自:http://blog.csdn.net/forandever/article/details/5276038

1、问题如下:

Exception in thread "main" com.sun.xml.internal.ws.model.RuntimeModelerException: runtime modeler error: Wrapper class com.ws.jaxws.DoSomething is not found. Have you run APT to generate them?
     at com.sun.xml.internal.ws.model.RuntimeModeler.getClass(RuntimeModeler.java:256)
     at com.sun.xml.internal.ws.model.RuntimeModeler.processDocWrappedMethod(RuntimeModeler.java:567)
     at com.sun.xml.internal.ws.model.RuntimeModeler.processMethod(RuntimeModeler.java:514)
     at com.sun.xml.internal.ws.model.RuntimeModeler.processClass(RuntimeModeler.java:341)
     at com.sun.xml.internal.ws.model.RuntimeModeler.buildRuntimeModel(RuntimeModeler.java:227)
     at com.sun.xml.internal.ws.server.EndpointFactory.createSEIModel(EndpointFactory.java:308)
     at com.sun.xml.internal.ws.server.EndpointFactory.createEndpoint(EndpointFactory.java:174)
     at com.sun.xml.internal.ws.api.server.WSEndpoint.create(WSEndpoint.java:420)
     at com.sun.xml.internal.ws.api.server.WSEndpoint.create(WSEndpoint.java:439)
     at com.sun.xml.internal.ws.transport.http.server.EndpointImpl.createEndpoint(EndpointImpl.java:208)
     at com.sun.xml.internal.ws.transport.http.server.EndpointImpl.publish(EndpointImpl.java:138)
     at com.sun.xml.internal.ws.spi.ProviderImpl.createAndPublishEndpoint(ProviderImpl.java:90)
     at javax.xml.ws.Endpoint.publish(Endpoint.java:170)
     at com.ws.Java6WebService.main(Java6WebService.java:25)


2、解决办法(2选一,推荐办法2):
1> 先用apt命令将主程序进行编译,然后生成一些java文件
2> 升级JDK到版本jdk1.6u17或以后

JDK 1.6 写Webservice时,runtime modeler error: Wrapper class com.ws.jaxws.DoSomething is not found问题的解决办法

标签:

原文地址:http://www.cnblogs.com/wangpei/p/4739270.html

(0)
(0)
   
举报
评论 一句话评论(0
登录后才能评论!
© 2014 mamicode.com 版权所有  联系我们:gaon5@hotmail.com
迷上了代码!