/lucee/lib/xmlparserv2.jar and /lucee/lib/apache-xml-xerces.jar classLoader problem

Hi,

it seems above version 4.5, these two jars are problematic, because they are both declared for handling XML documents.
The following code has problem with it, because sometimes it uses xmlparsev2.jar instead of xerces.jar, which results in different objects.

f.dbf = this.signerLoader.create(“javax.xml.parsers.DocumentBuilderFactory”);
f.dbf = f.dbf.newInstance();

The soulution is removing the file /META-INF/services/javax.xml.parsers.DocumentBuilderFactory from xmlparsev2.jar.

Can you please fix this ?

https://luceeserver.atlassian.net/browse/LDEV-1117?page=com.atlassian.jira.plugin.system.issuetabpanels%3Aall-tabpanel

This has already been posted in the link above but I’m not sure, if the xerces jar is the same, but solution worked.

Thank you,
Bostjan