Xilai Dai created CXF-8039: ------------------------------ Summary: Dependency javax.xml.ws/jaxws-api should be changed to the jakarta one Key: CXF-8039 URL: https://issues.apache.org/jira/browse/CXF-8039 Project: CXF Issue Type: Bug Components: JAX-WS Runtime Affects Versions: 3.3.1 Environment: Java 11 Reporter: Xilai Dai
{code} <dependency> <groupId>javax.xml.ws</groupId> <artifactId>jaxws-api</artifactId> <version>2.3.0</version> </dependency> {code} This jaxws-api dependency is defined in some of the pom.xm (e.g parent/pom.xml) for JDK 9 and above. But this jaxws-api bundle has wrong package version exported for "javax.xml.ws.*" packages, the expected exported version is 2.3.x, but it exports the version 2.4.0. As consequence there is exception thrown on user bundle for OSGi (karaf) deployment. {code} missing requirement [my-serrvice/1.0.0] osgi.wiring.package; filter:="(&(osg i.wiring.package=javax.xml.ws)(version>=2.4.0)(!(version>=3.0.0)))"]] {code} The javax.xml.ws api from Jakarta is good enough has the right package version exported for OSGi scenaro. {code} <dependency> <groupId>jakarta.xml.ws</groupId> <artifactId>jakarta.xml.ws-api</artifactId> <version>2.3.2</version> </dependency> {code} For JAXB api, the Jakarta one already used for JAVA 9/10/11, so the WS api should be also changed to the Jakarta one. -- This message was sent by Atlassian JIRA (v7.6.3#76005)