Bug 796739

Summary: Missing service provider configuration files in the woodstox jar files
Product: [Fedora] Fedora Reporter: Juan Hernández <juan.hernandez>
Component: woodstox-coreAssignee: Jaromír Cápík <jcapik>
Status: CLOSED WONTFIX QA Contact: Fedora Extras Quality Assurance <extras-qa>
Severity: medium Docs Contact:
Priority: unspecified    
Version: 19CC: jcapik, ovasik
Target Milestone: ---   
Target Release: ---   
Hardware: Unspecified   
OS: Linux   
Fixed In Version: Doc Type: Bug Fix
Doc Text:
Story Points: ---
Clone Of: Environment:
Last Closed: 2015-01-19 09:59:40 UTC Type: ---
Regression: --- Mount Type: ---
Documentation: --- CRM:
Verified Versions: Category: ---
oVirt Team: --- RHEL 7.3 requirements from Atomic Host:
Cloudforms Team: --- Target Upstream Version:

Description Juan Hernández 2012-02-23 15:22:35 UTC
Description of problem:

The jar files provided in the woodstox-jar package don't contain the service provider configuration files needed to use the 

Version-Release number of selected component (if applicable):


How reproducible:


Steps to Reproduce:

1. Write and compile the following java program:

import javax.xml.stream.XMLInputFactory;

public class Test {
  public static void main(String[] args) throws Exception {

2. Run it with the version of the "woodstox-core-asj.jar" provided by the RPM:

$ java -cp $(build-classpath woodstox-core stax2-api):. Test
Actual results:


It is using the internal implementation provided by the JDK.

Expected results:


It should use the implementation provided by the woodstox-core package.

Additional info:

I believe that the problem is that the service provider configuration files that are available in the source of the package in the "src/resources" directory are not copied to the "META-INF/services" directory of the generated jar files.

This can be fixed with the following patch for the spec:

--- a/woodstox-core.spec
+++ b/woodstox-core.spec
@@ -64,7 +64,6 @@ sed -i "s/@REQ_STAX2_VERSION@/%{stax2_ver}/g" pom.xml pom-lgpl.xml
 # removing bundled stuff
 rm -rf lib
 rm -rf src/maven
-rm -rf src/resources
 rm -rf src/samples
 rm -rf src/java/org
 rm -rf src/test/org
@@ -76,6 +75,11 @@ mv -f src/java src/main/
 mkdir src/test/java
 mv -f src/test/wstxtest src/test/java/
+# Make sure that the service provider configuration files end up
+# in the META-INF/services directory of the resulting jar files:
+mkdir -p src/main/resources/META-INF/services
+cp src/resources/* src/main/resources/META-INF/services/.
 # stax2 missing -> cannot compile tests -> tests skipped
 mvn-rpmbuild -Dmaven.test.skip=true \

Comment 1 Fedora End Of Life 2013-04-03 15:10:00 UTC
This bug appears to have been reported against 'rawhide' during the Fedora 19 development cycle.
Changing version to '19'.

(As we did not run this process for some time, it could affect also pre-Fedora 19 development
cycle bugs. We are very sorry. It will help us with cleanup during Fedora 19 End Of Life. Thank you.)

More information and reason for this action is here:

Comment 2 Fedora End Of Life 2015-01-09 17:01:50 UTC
This message is a notice that Fedora 19 is now at end of life. Fedora 
has stopped maintaining and issuing updates for Fedora 19. It is 
Fedora's policy to close all bug reports from releases that are no 
longer maintained. Approximately 4 (four) weeks from now this bug will
be closed as EOL if it remains open with a Fedora 'version' of '19'.

Package Maintainer: If you wish for this bug to remain open because you
plan to fix it in a currently maintained version, simply change the 'version' 
to a later Fedora version.

Thank you for reporting this issue and we are sorry that we were not 
able to fix it before Fedora 19 is end of life. If you would still like 
to see this bug fixed and are able to reproduce it against a later version 
of Fedora, you are encouraged  change the 'version' to a later Fedora 
version prior this bug is closed as described in the policy above.

Although we aim to fix as many bugs as possible during every release's 
lifetime, sometimes those efforts are overtaken by events. Often a 
more recent Fedora release includes newer upstream software that fixes 
bugs or makes them obsolete.