Project

Profile

Help

Discovered an incompatibility with Eclipse Birt

Added by David Pérez almost 11 years ago

Dear Saxoners,

When I place Saxon-HE-9.5.0.2.jar in the classpath, Eclipse Birt charts stop working silently. It only happens in CentOS 6.x environments but not in Ubuntu ones.

Cause: The existence of these files in META-INF/services/: javax.xml.xpath.XPathFactory javax.xml.transform.TransformerFactory

If I remove these files, Eclipse Birt works ok again.

Can it be harmful to remove these files?.

Saxon is a great product and I'm not going to stop using it by this small problem. It has been hard for me to discover it.

David


Replies (2)

RE: Discovered an incompatibility with Eclipse Birt - Added by Michael Kay almost 11 years ago

It's unfortunately quite common for applications to use the JAXP factory mechanism to search for an XPath or XSLT implementation, and then rely on behaviour that isn't guaranteed to be common across implementations. There's not much we can do about this other than abandoning support for JAXP, which would hurt more users than it helps.

Rather than removing these files from the services metadata, a better approach is to set the relevant system properties (such as javax.xml.transform.TransformerFactory) to force loading of a JAXP implementation that the application is known to work with, e.g. the one that comes with the JDK.

RE: Discovered an incompatibility with Eclipse Birt - Added by David Pérez almost 11 years ago

Thanks Michael. Your solution is clearly cleaner.

    (1-2/2)

    Please register to reply