Skip to Main Content

Java and JavaScript in the Database

Announcement

For appeals, questions and feedback about Oracle Forums, please email oracle-forums-moderators_us@oracle.com. Technical questions should be asked in the appropriate category. Thank you!

[probably SOLVED] xerces - DocumentBuilderFactoryImpl not found

TondaOct 3 2007 — edited Feb 20 2008
Hi all,

we are expecting very strange issue on our production environment (Oracle 10g).

In OJVM is loaded application that creates XML document builder using xerces library as follows (the class is intended for loading configuration XML file):
	public ClientConfigurationImplXML(String clientConfigFilename) throws Exception{
		super();

		DocumentBuilderFactory factory = DocumentBuilderFactory.newInstance(); // here exception occurs
		DocumentBuilder builder = factory.newDocumentBuilder();
		Document doc = builder.parse(new InputSource(new FileReader(clientConfigFilename)));
		
		config = new ConfigurationFromXML(doc.getDocumentElement());

	}
Time to time (really not allways, that's why I'm really confused) this code causes exception:

javax.xml.parsers.FactoryConfigurationError: Provider not found
at javax.xml.parsers.DocumentBuilderFactory.newInstance(Unknown Source).

When I check dba_java_classes I can see that 'org.apache.xerces.jaxp.DocumentBuilderFactoryImpl' is there. All objects in appropriate schema are VALID.

Did someone ever met with this behavior?

Thanks a lot
Tonda

Message was edited by:
Tonda
Comments
Locked Post
New comments cannot be posted to this locked post.
Post Details
Locked on Mar 19 2008
Added on Oct 3 2007
7 comments
4,897 views