Alessio Soldano created JBWS-3927:
Summary: Remove java.endorsed.dirs requirement for properly setup clients
Project: JBoss Web Services
Issue Type: Task
Components: jbossws-cxf, jbossws-integration
Reporter: Alessio Soldano
Assignee: Alessio Soldano
Fix For: jbossws-cxf-5.1
Starting from JDK 1.8_40, the Java Endorsed Standards Override Mechanism is deprecated
, basically because with
the Jigsaw changes coming in JDK 9 that will not be supported / usable anymore.
JBossWS currently relies on the afore mentioned endorsing mechanism for:
* ensuring the JBossWS implementation of JAX-WS SPI Provider is used (instead of the
Apache CXF or JDK JAXWS RI ones), regardless of how the classpath is defined;
* ensuring the JBossWS implementation of Apache CXF BusFactory is used (instead of the
vanilla Apache CXF one), regardless of how the classpath is defined.
So, we need to get rid of the endorsing mechanism, at least for properly configured client
classpaths in which the jbossws-cxf-factories jar is always included and comes before any
Apache CXF jar.
This implies carefully defining the jbossws-cxf poms.
The changes here do not ensure users will always automatically use the correct integration
when not setting endorsing, basically because it will be up to them to e.g. avoid
declaring Apache CXF dependencies before the JBossWS ones. We might put in place some
runtime checks on the classpath or additional alternative mechanims as part of a different
and future effort (when JDK9 will be supported).
This message was sent by Atlassian JIRA