I agree, but this needs to be addressed in a Java 9 way, and that's not
through endorsed libraries which are not supported anymore.  We'll need a
jigsaw module for xerces.
Btw, is there an issue raised on OpenJDK ? They could maybe cache the value
in a static variable ?

2017-10-11 16:06 GMT+02:00 Daniel Kulp <dk...@apache.org>:

>
> The PROBLEM with the in-JDK version of the DOM is that just creating a new
> empty document involved a call to System.getProperty(…) which is a
> synchronized call.   The Apache xerces version does not have that problem.
>  Thus, by removing the xerces jar, performance of certain uses cases will
> drop with high concurrency.  Unfortunately, CXF is one of those use cases.
>
>
> Dan
>
>
> > On Oct 11, 2017, at 2:00 PM, Guillaume Nodet <gno...@apache.org> wrote:
> >
> > The point that makes me raise this problem is that the karaf default
> > distribution uses the Apache versions of xerces and xalan.  Fwiw, the
> > latest xerces release is from 2011 and the latest xalan from 2014, so
> > they're not the most active.  In particular, xalan latest release does
> not
> > implement jaxp 1.4.
> >
> > One additional point is that those libraries stuff is broken on Java 9,
> so
> > one option would be to remove it alltogether which bring us much closer
> to
> > Java 9 support ;-)  Seriously, I'm not sure I want to spend too much time
> > allowing pluggability for specs/implementations while the only real
> > implementation provider is the JDK itself.  That's really a lot of work
> for
> > no real benefit.
> >
> > In addition, the default distribution still install some "legacy"
> features
> > such as aries-blueprint, shell-compat, etc...
> >
> > So here's a list of propositions for 4.2:
> >  * remove all libraries for specs / impls from apache-karaf distro
> >  * remove support for endorsed / ext libraries in the <library> element
> > and wherever used
> >  * remove aries-blueprint and shell-compat from default distro
> >  * remove a few features from the karaf-minimal distro. I'm not sure
> which
> > one exactly, but I think we should get the zip under 10 Mb.  Maybe only
> > keeping jaas, shell, feature, ssh, bundle, config, deployer and log, also
> > removing equinox / logback bundles...
> >
> > Thoughts ?
> >
> > --
> > ------------------------
> > Guillaume Nodet
>
> --
> Daniel Kulp
> dk...@apache.org - http://dankulp.com/blog
> Talend Community Coder - http://coders.talend.com
>
>


-- 
------------------------
Guillaume Nodet

Reply via email to