[jbossws-issues] [JBoss JIRA] (JBWS-3927) Remove java.endorsed.dirs requirement for properly setup clients

Alessio Soldano (JIRA) issues at jboss.org
Wed Jul 1 12:00:04 EDT 2015


Alessio Soldano created JBWS-3927:
-------------------------------------

             Summary: Remove java.endorsed.dirs requirement for properly setup clients
                 Key: JBWS-3927
                 URL: https://issues.jboss.org/browse/JBWS-3927
             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 https://docs.oracle.com/javase/8/docs/technotes/guides/standards/ , 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
(v6.3.15#6346)


More information about the jbossws-issues mailing list