How to use WebServices on Java 11? package javax.jws does not exist [duplicate]

帅比萌擦擦* 提交于 2020-01-03 15:19:11

问题


I imigrate my aplication to AdoptOpenJDK11, I have found some problems, like "package javax.jws does not exist", I already configure build path with jar "jsr181-api.jar", it's a webApplication, how I fix it ? Have something new about webservices on AdoptOpenJDK 11?

@WebService
@SOAPBinding(style = Style.RPC) // this tags doenst work

output:
error: package javax.jws does not exist
error: package javax.jws.soap does not exist

Someone know how I fix it?


回答1:


Per Replacements for deprecated JPMS modules with Java EE APIs

Use the reference implementation of JAX-WS instead.

<dependency>
  <groupId>com.sun.xml.ws</groupId>
  <artifactId>jaxws-ri</artifactId>
  <version>2.3.0</version>
  <type>pom</type>
</dependency>


来源:https://stackoverflow.com/questions/54516361/how-to-use-webservices-on-java-11-package-javax-jws-does-not-exist

标签
易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!