How to use WebServices on Java 11? package javax.j

2019-07-13 05:59发布

This question already has an answer here:

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?

标签: java java-11
1条回答
再贱就再见
2楼-- · 2019-07-13 06:12

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>
查看更多
登录 后发表回答