<html><head><meta http-equiv="Content-Type" content="text/html charset=us-ascii"></head><body style="word-wrap: break-word; -webkit-nbsp-mode: space; -webkit-line-break: after-white-space;" class=""><div class="">Hi,</div><div class="">after setting jaxp debug to true,&nbsp;</div><div class="">I see the following error:</div><div class=""><br class=""></div><div class=""><div style="margin: 0px; line-height: normal; font-family: Menlo; color: rgb(195, 55, 32);" class="">JAXP: using thread context class loader (ModuleClassLoader for Module "deployment.keycloak-server.war:main" from Service Module Loader) for search</div><div style="margin: 0px; line-height: normal; font-family: Menlo; color: rgb(195, 55, 32);" class="">11:03:40,517 ERROR [stderr] (default task-2) JAXP: Looking up system property 'javax.xml.xpath.XPathFactory:http://<a href="http://java.sun.com/jaxp/xpath/dom'" class="">java.sun.com/jaxp/xpath/dom'</a></div><div style="margin: 0px; line-height: normal; font-family: Menlo; color: rgb(195, 55, 32);" class="">11:03:40,517 ERROR [stderr] (default task-2) JAXP: The value is '__redirected.__XPathFactory'</div><div style="margin: 0px; line-height: normal; font-family: Menlo; color: rgb(195, 55, 32);" class="">11:03:40,517 ERROR [stderr] (default task-2) JAXP: createInstance(__redirected.__XPathFactory)</div><div style="margin: 0px; line-height: normal; font-family: Menlo; color: rgb(195, 55, 32);" class="">11:03:40,518 ERROR [stderr] (default task-2) JAXP: loaded __redirected.__XPathFactory from jar:file:/Users/Carmen/software/keycloak-demo-1.5.0.Final/keycloak/jboss-modules.jar!/__redirected/__XPathFactory.class</div><div style="margin: 0px; line-height: normal; font-family: Menlo; color: rgb(195, 55, 32);" class="">11:03:40,518 ERROR [stderr] (default task-2) JAXP: could not instantiate __redirected.__XPathFactory</div><div style="margin: 0px; line-height: normal; font-family: Menlo; color: rgb(195, 55, 32);" class="">11:03:40,519 ERROR [stderr] (default task-2) java.lang.ClassCastException: __redirected.__XPathFactory cannot be cast to javax.xml.xpath.XPathFactory</div><div style="margin: 0px; line-height: normal; font-family: Menlo; color: rgb(195, 55, 32);" class="">11:03:40,519 ERROR [stderr] (default task-2) <span class="Apple-tab-span" style="white-space:pre">        </span>at javax.xml.xpath.XPathFactoryFinder.createInstance(XPathFactoryFinder.java:306)</div><div style="margin: 0px; line-height: normal; font-family: Menlo; color: rgb(195, 55, 32);" class="">11:03:40,519 ERROR [stderr] (default task-2) <span class="Apple-tab-span" style="white-space:pre">        </span>at javax.xml.xpath.XPathFactoryFinder._newFactory(XPathFactoryFinder.java:184)</div><div style="margin: 0px; line-height: normal; font-family: Menlo; color: rgb(195, 55, 32);" class="">11:03:40,519 ERROR [stderr] (default task-2) <span class="Apple-tab-span" style="white-space:pre">        </span>at javax.xml.xpath.XPathFactoryFinder.newFactory(XPathFactoryFinder.java:157)</div></div><div class=""><br class=""></div><div class=""><br class=""></div><div class="">The dependencies in module.xml for my federation provider is as follows:</div><div class=""><br class=""></div><div class=""><div class="">&nbsp; &nbsp; &lt;dependencies&gt;</div><div class="">&nbsp; &nbsp; &nbsp; &nbsp; &lt;module name="org.keycloak.keycloak-core"/&gt;</div><div class="">&nbsp; &nbsp; &nbsp; &nbsp; &lt;module name="org.keycloak.keycloak-model-api"/&gt;</div><div class="">&nbsp; &nbsp; &nbsp; &nbsp; &lt;module name="javax.api"/&gt;</div><div class="">&nbsp; &nbsp; &lt;/dependencies&gt;</div><div class=""><br class=""></div></div><div class="">Thanks again,</div><div class=""><br class=""></div><div class="">Maria</div><div class=""><br class=""></div><br class=""><div><blockquote type="cite" class=""><div class="">On Oct 14, 2015, at 9:42 AM, carmen &lt;<a href="mailto:carmen.checa@masergy.com" class="">carmen.checa@masergy.com</a>&gt; wrote:</div><br class="Apple-interchange-newline"><div class=""><meta http-equiv="Content-Type" content="text/html charset=us-ascii" class=""><div style="word-wrap: break-word; -webkit-nbsp-mode: space; -webkit-line-break: after-white-space;" class="">Hi all,<div class=""><br class=""></div><div class="">I am writing a federation provider that accesses Oracle using MyBatis.</div><div class="">I get the following error when MyBatis is trying to read its xml configuration:</div><div class=""><br class=""></div><div class=""><br class=""></div><div class=""><div class="" style="margin: 0px; line-height: normal; font-family: Menlo; color: rgb(195, 55, 32);">### Cause: java.lang.RuntimeException: XPathFactory#newInstance() failed to create an XPathFactory for the default object model:&nbsp;<a href="http://java.sun.com/jaxp/xpath/dom" class="">http://java.sun.com/jaxp/xpath/dom</a>&nbsp;with the XPathFactoryConfigurationException: javax.xml.xpath.XPathFactoryConfigurationException: No XPathFactory implementation found for the object model:&nbsp;<a href="http://java.sun.com/jaxp/xpath/dom" class="">http://java.sun.com/jaxp/xpath/dom</a></div><div class="" style="margin: 0px; line-height: normal; font-family: Menlo; color: rgb(195, 55, 32);"><span class="Apple-tab-span" style="white-space: pre;">        </span>at org.apache.ibatis.exceptions.ExceptionFactory.wrapException(ExceptionFactory.java:26)</div><div class="" style="margin: 0px; line-height: normal; font-family: Menlo; color: rgb(195, 55, 32);"><span class="Apple-tab-span" style="white-space: pre;">        </span>at org.apache.ibatis.session.SqlSessionFactoryBuilder.build(SqlSessionFactoryBuilder.java:54)</div></div><div class=""><br class=""></div><div class=""><br class=""></div><div class="">The federation provider jar is a big fat jar that includes all its dependencies.</div><div class=""><br class=""></div><div class="">Any ideas?</div><div class=""><br class=""></div><div class="">Thank you</div><div class="">Maria</div></div></div></blockquote></div><br class=""></body></html>