JDK 1.6 寫Webservice時,runtime modeler error: Wrapper class com.ws.jaxws.DoSomething is not found問題的解決辦法

來源:互聯網
上載者:User

標籤:

轉自: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問題的解決辦法

相關文章

聯繫我們

該頁面正文內容均來源於網絡整理,並不代表阿里雲官方的觀點,該頁面所提到的產品和服務也與阿里云無關,如果該頁面內容對您造成了困擾,歡迎寫郵件給我們,收到郵件我們將在5個工作日內處理。

如果您發現本社區中有涉嫌抄襲的內容,歡迎發送郵件至: info-contact@alibabacloud.com 進行舉報並提供相關證據,工作人員會在 5 個工作天內聯絡您,一經查實,本站將立刻刪除涉嫌侵權內容。

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.