Project

Profile

Help

Bug #1944

closed

Illegal configuration-file syntax in META-INF/services/javax.xml.xpath.XPathFactory

Added by Wolfgang Hoschek almost 11 years ago. Updated over 10 years ago.

Status:
Closed
Priority:
Normal
Assignee:
Category:
JAXP Java API
Sprint/Milestone:
-
Start date:
2013-12-03
Due date:
% Done:

100%

Estimated time:
Legacy ID:
Applies to branch:
Fix Committed on Branch:
Fixed in Maintenance Release:
Platforms:

Description

Using Saxon-HE-9.5.1-*.jar, we are running into the same issue that was already reported in http://stackoverflow.com/questions/7914915/syntax-error-in-javax-xml-xpath-xpathfactory-provider-configuration-file-of-saxo , this time on Java8 and IBM J9.

For various reasons our code using JAXP XPathFactory.newInstance() can't be changed to use other patterns requesting a more specific implementation.

It occurs to me that, if Saxon doesn't support Java5 anymore, maybe the invalid newlines in META-INF/services/javax.xml.xpath.XPathFactory can now be fixed without causing negative compat side effects. Java6&7 seemed to tolerate the invalid newlines, but Java8 and IBM J9 are more strict and throw

ServiceConfigurationError: javax.xml.xpath.XPathFactory: jar:file:/tmp/lib/Saxon-HE-9.5.1-3.jar!/META-INF/services/javax.xml.xpath.XPathFactory:2: Illegal configuration-file syntax


Related issues

Related to Saxon - Bug #2239: META-INF/services/javax.xml.xpath.XPathFactory file is missingRejectedO'Neil Delpratt2014-11-26

Actions
Related to Saxon - Bug #2240: JAXP-XPath page in the documentation need updatingClosedDebbie Lockett2014-11-27

Actions

Please register to edit this issue

Also available in: Atom PDF