Skip to content

Commit c3d5c47

Browse files
committed
docs: faq for javax.xml.parsers.FactoryConfigurationError:
1 parent a650c74 commit c3d5c47

File tree

2 files changed

+34
-0
lines changed

2 files changed

+34
-0
lines changed
Lines changed: 33 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,33 @@
1+
2+
[#doc-faq-xml-apis]
3+
=== Exception javax.xml.parsers.FactoryConfigurationError: Provider org.apache.xerces.jaxp.DocumentBuilderFactoryImpl not found
4+
5+
If you are receiving the exception :
6+
7+
[source,txt]
8+
----
9+
javax.xml.parsers.FactoryConfigurationError: Provider org.apache.xerces.jaxp.DocumentBuilderFactoryImpl not found
10+
at javax.xml.parsers.DocumentBuilderFactory.newInstance(Unknown Source)
11+
at org.fugerit.java.core.xml.dom.DOMIO.newSafeDocumentBuilderFactory(DOMIO.java:64)
12+
at org.fugerit.java.core.xml.dom.DOMIO.newSafeDocumentBuilderFactory(DOMIO.java:89)
13+
at org.fugerit.java.core.xml.dom.DOMIO.loadDOMDoc(DOMIO.java:162)
14+
at org.fugerit.java.core.xml.dom.DOMIO.loadDOMDoc(DOMIO.java:199)
15+
at org.fugerit.java.core.cfg.xml.GenericListCatalogConfig.load(GenericListCatalogConfig.java:287)
16+
----
17+
18+
It is usually possible to fix it by adding to your modules the exclusion :
19+
20+
[source,xml]
21+
----
22+
<dependency>
23+
<groupId>org.fugerit.java</groupId>
24+
<artifactId>fj-doc-mod-fop</artifactId>
25+
<exclusions>
26+
<exclusion>
27+
<artifactId>xml-apis</artifactId>
28+
<groupId>xml-apis</groupId>
29+
</exclusion>
30+
</exclusions>
31+
</dependency>
32+
----
33+

fj-doc-guide/src/main/docs/asciidoc/index.adoc

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -55,6 +55,7 @@ include::chapters/07_007_java-runtime-version-dependency-handling.adoc[]
5555
include::chapters/07_008-reducing-fj-doc-mod-fop-pdf-size.adoc[]
5656
include::chapters/07_009-extending-handler-capabilities.adoc[]
5757
include::chapters/07_010-pdf-ua-accessibility.adoc[]
58+
include::chapters/07_011-xml-apis.adoc[]
5859

5960
include::chapters/08_doc-optmization.adoc[]
6061
include::chapters/08_1_eager-startup.adoc[]

0 commit comments

Comments
 (0)