Hi all,
I am trying to get a JSF based application to deploy on Karaf 4 via a
custom distribution. I keep running into the following exception:
2015-10-27 12:48:53,146 | ERROR | ool-167-thread-1 | WebAppPublisher
| 262 - org.ops4j.pax.web.pax-web-extender-war - 4.2.2 | Error deploying
web application
java.lang.RuntimeException: javax.xml.parsers.FactoryConfigurationError:
Provider for class javax.xml.parsers.DocumentBuilderFactory cannot be created
at
com.sun.faces.config.ConfigureListener.contextInitialized(ConfigureListener.java:280)[275:org.glassfish.javax.faces:2.2.8]
at
org.ops4j.pax.web.service.jetty.internal.HttpServiceContext$3.call(HttpServiceContext.java:338)[264:org.ops4j.pax.web.pax-web-jetty:4.2.2]
Caused by: javax.xml.parsers.FactoryConfigurationError: Provider for class
javax.xml.parsers.DocumentBuilderFactory cannot be created
at
javax.xml.parsers.FactoryFinder.findServiceProvider(FactoryFinder.java:311)[:1.8.0_45]
at javax.xml.parsers.FactoryFinder.find(FactoryFinder.java:267)[:1.8.0_45]
Caused by: java.lang.RuntimeException: Provider for class
javax.xml.parsers.DocumentBuilderFactory cannot be created
at
javax.xml.parsers.FactoryFinder.findServiceProvider(FactoryFinder.java:308)[:1.8.0_45]
Caused by: java.util.ServiceConfigurationError:
javax.xml.parsers.DocumentBuilderFactory: Provider
org.apache.xerces.jaxp.DocumentBuilderFactoryImpl not found
at java.util.ServiceLoader.fail(ServiceLoader.java:239)[:1.8.0_45]
at java.util.ServiceLoader.access$300(ServiceLoader.java:185)[:1.8.0_45]
I have tried adding "javax.xml.parsers" as an import. Doing so produces
another exception....something to the effect of NoClassDefFoundException
for org.w3c.dom.ElementTraversal.
I have tried using pax-jsf-support (MyFaces) which produced a similar
exception.
Thanks for the help,
Jason