[jbossws-dev] Deprecated of java.endorsed.dirs in JDK8

Rostislav Svoboda rsvoboda at redhat.com
Thu Jul 2 05:14:33 EDT 2015


ccing jbossws-dev list so we have it tracked

> On 01/07/15 13:35, Rostislav Svoboda wrote:
> >> In terms of action items, we should probably consider having a look at
> >> JDK9 in the next future and start getting an idea of what to do...
> >>
> > I think we need to have solution for EAP 7.0.0 as java.endorsed.dirs is
> > deprecated now and will be removed in JDK 9 ...
> > I'm almost sure PM will ask us to re-certify EAP 7.0.0 GA on JDK 9 as it
> > should be GA on 2016-09-22.
> > Another option would be to target JDK 9 support for EAP 7.1.0 GA.
> >
> > Rostislav
> 
> See https://issues.jboss.org/browse/JBWS-3927

+1 for this task

comment to " ... and possibly restricting the supported JDKs from now on ..."
  This may won't be so easy from product perspective ... in EAP 6 we support 3 major JDK versions
  For EAP 7 it may be the same number, at least JDK 8 + 9.

> Besides for what's in the jira description, the idea is that what we can
> do now is ensuring that the JBossWS testsuite as well as any other
> properly configured client can work fine without having to endorse
> anything. By properly configured I mean either using JBoss Modules or

Seems safer, something like java -jar $JBOSS_HOME/jboss-modules.jar -mp $JBOSS_HOME/modules/ -cp target/classes/ -dep org.jboss.ws.cxf.jbossws-cxf-client org.jboss.MyClient is possible now
Not sure how this would work for TS

> with a flat classpath in which the jbossws jars come before the cxf
> ones. Note, the latter condition equals to a maven project in which the
> jbossws dependencies come before cxf dependencies and/or any other
> dependency that transitively pulls the cxf ones.

Nasty problems can come up from this, we need to be careful, checks are good idea for this approach

> Further efforts might be spent in the future when JDK 9 support will be
> worked, to either enforce modular classloading (perhaps through Jigsaw

we need solution for both JDK 8 and 9 - so I would prefer JBoss Modules
Understand that Jigsaw would be in JDK by default + would be widely used

> stuff) or to add checks on the classpath at runtime (with the goal of

+100

Rostislav

> warning the user if he's not properly using jbossws... this needs better
> thinking though).
> 
> Cheers
> Alessio
> 
> 
> --
> Alessio Soldano
> Web Service Lead, JBoss
> 
> 


More information about the jbossws-dev mailing list