Bug 155693 - [OO][gcj]Provider for javax.xml.parsers.SAXParserFactory cannot be found
[OO][gcj]Provider for javax.xml.parsers.SAXParserFactory cannot be found
Product: Fedora
Classification: Fedora
Component: xml-commons (Show other bugs)
All Linux
medium Severity medium
: ---
: ---
Assigned To: Gary Benson
Depends On:
  Show dependency treegraph
Reported: 2005-04-22 08:10 EDT by Caolan McNamara
Modified: 2007-11-30 17:11 EST (History)
5 users (show)

See Also:
Fixed In Version:
Doc Type: Bug Fix
Doc Text:
Story Points: ---
Clone Of:
Last Closed: 2005-04-25 05:51:50 EDT
Type: ---
Regression: ---
Mount Type: ---
Documentation: ---
Verified Versions:
Category: ---
oVirt Team: ---
RHEL 7.3 requirements from Atomic Host:
Cloudforms Team: ---

Attachments (Terms of Use)
Eclipse log with failure. (7.73 KB, application/octet-stream)
2005-04-23 19:44 EDT, Andrew Overholt
no flags Details

  None (edit)
Description Caolan McNamara 2005-04-22 08:10:54 EDT
From Bugzilla Helper:
User-Agent: Mozilla/5.0 (X11; U; Linux i686; en-US; rv:1.7.6) Gecko/20050330

Description of problem:
> rpm -q xml-commons-apis
> gij mytest
> rpm --upgrade xml-commons-1.0-0.b2.6jpp_6fc.noarch.rpm
> gij mytest
Exception in thread "main" javax.xml.parsers.FactoryConfigurationError: Provider for javax.xml.parsers.SAXParserFactory cannot be found
   at javax.xml.parsers.SAXParserFactory.newInstance() (Unknown Source)
   at mytest.main(java.lang.String[]) (Unknown Source)
   at gnu.java.lang.MainThread.call_main() (/usr/lib/libgcj.so.6.0.0)
   at gnu.java.lang.MainThread.run() (/usr/lib/libgcj.so.6.0.0)

Version-Release number of selected component (if applicable):
xml-commons 1.0-0.b2.6jpp_6fc

How reproducible:

Steps to Reproduce:
> cat mytest.java
import javax.xml.parsers.*;

public class mytest
    static public void main(String[] args)
        SAXParserFactory spf = SAXParserFactory.newInstance();

Expected Results:  regression ? between 5fc and 6fc

Additional info:

Blocks building OOo2
Comment 1 Caolan McNamara 2005-04-22 08:27:46 EDT
FWIW: manually removing /usr/share/java/gcj-endorsed-xml-commons-apis-1.0.jar
gets rid of the error
Comment 2 Gary Benson 2005-04-22 08:46:44 EDT
Yeah, I see this on my box too...
Comment 3 Gary Benson 2005-04-22 08:52:11 EDT
Ah, it's because you have not specified a parser.  Previously you were using
libgcj's implementation of javax.xml.parsers.SAXParserFactory which provided a
default if none was set, whereas now you're using the xml-commons one which has
no default.
Comment 4 Gary Benson 2005-04-22 09:22:33 EDT
Fixed in xml-commons-1.0-0.b2_6jpp_7fc
Comment 5 Andrew Overholt 2005-04-23 19:43:54 EDT
I'm getting similar behaviour now trying to run Eclipse, but with:

Caused by: javax.xml.parsers.FactoryConfigurationError: Provider for
javax.xml.parsers.DocumentBuilderFactory cannot be found

I'll attach my Eclipse log.
Comment 6 Andrew Overholt 2005-04-23 19:44:40 EDT
Created attachment 113588 [details]
Eclipse log with failure.
Comment 7 Andrew Overholt 2005-04-23 19:46:20 EDT
I forgot the versions:

Comment 8 Gary Benson 2005-04-25 05:51:50 EDT
Fixed in xml-commons-1.0-0.b2_6jpp_8fc
Comment 9 Phil Muldoon 2005-04-25 18:53:34 EDT
I installed the xml-commons rpms from beehive, and it still fails:

rpm -q xml-commons

rpm -q xml-commons-apis

I'll leave it closed until it propogates to rawhide tommorrow, to be sure that I
have not missed any other dependencies (I'll have yum do all the updating).
Comment 10 Gary Benson 2005-04-26 11:43:20 EDT
I've backed out the changes that caused these problems for

Note You need to log in before you can comment on or make changes to this bug.