<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=us-ascii">
<meta name="Generator" content="Microsoft Exchange Server">
<!-- converted from rtf -->
<style><!-- .EmailQuote { margin-left: 1pt; padding-left: 4pt; border-left: #800000 2px solid; } --></style>
</head>
<body>
<font face="Calibri" size="2"><span style="font-size:11pt;">
<div>Dear all,</div>
<div> </div>
<div>first of all - thanks for your effort for Keycloak – great product!</div>
<div> </div>
<div>I’m trying to do a POC for the authorization API in Keycloak and therefore I downloaded from the project’s website the Demo distribution and tried to follow the readme instructions on the “photoz” example.</div>
<div>The import of the realm was successful, but when I tried to load the resource server configuration JSON I received the following exception in the log file:</div>
<div> </div>
<div><font face="Courier New">Caused by: java.lang.ClassNotFoundException: org.apache.commons.codec.binary.Base64 from </font></div>
<div><font face="Courier New">[Module "org.drools:main" from local module loader @1476ceae (finder: local module finder @1b4febf3 ( </font></div>
<div><font face="Courier New">roots: D:\dev\software\keycloak\keycloak-demo-2.1.0.Final\keycloak\modules, </font></div>
<div><font face="Courier New">D:\dev\software\keycloak\keycloak-demo-2.1.0.Final\keycloak\modules\system\layers\keycloak, </font></div>
<div><font face="Courier New">D:\dev\software\keycloak\keycloak-demo-2.1.0.Final\keycloak\modules\system\layers\base </font></div>
<div><font face="Courier New">))] </font></div>
<div> </div>
<div>I was able to fix this issue by providing the following dependency entry in the drools module description for the commons-codec module at <font face="Courier New"><KEYCLOAK_ROOT></font><font face="Courier New">\keycloak\modules\system\add-ons\keycloak\org\drools\main\module.xml</font></div>
<div>After this I could successfully import the “photoz-restful-api-authz-service.json” finally.</div>
<div> </div>
<div>Could it be that this entry is also missing in the source code at <a href="https://github.com/keycloak/keycloak/tree/master/distribution/feature-packs/server-feature-pack/src/main/resources/modules/system/layers/keycloak/org/drools/main/module.xml"><font color="blue"><u>https://github.com/keycloak/keycloak/tree/master/distribution/feature-packs/server-feature-pack/src/main/resources/modules/system/layers/keycloak/org/drools/main/</u></font><font color="blue"><u>module.xml</u></font></a>
?</div>
<div> </div>
<div> </div>
<div><font face="Courier New"><dependencies></font></div>
<div> <font face="Courier New"><module name="javax.api"/></font></div>
<div> <font face="Courier New"><module name="javax.inject.api"/></font></div>
<div> <font face="Courier New"><module name="javax.enterprise.api"/></font></div>
<div> <font face="Courier New"><module name="org.slf4j"/></font></div>
<div> <font face="Courier New" color="#00B050"><b><module name="org.apache.commons.codec"/></b></font><font face="Courier New"><!-- this one is missing --></font></div>
<div> <font face="Courier New"><module name="org.apache.commons.logging"/></font></div>
<div> <font face="Courier New"><module name="org.keycloak.keycloak-core"/></font></div>
<div> <font face="Courier New"><module name="org.keycloak.keycloak-common"/></font></div>
<div> <font face="Courier New"><module name="org.keycloak.keycloak-server-spi"/></font></div>
<div><font face="Courier New"></dependencies></font></div>
<div> </div>
<div> </div>
<div>I also found a related JIRA “<a href="https://issues.jboss.org/browse/KEYCLOAK-3279"><font color="blue"><u>KEYCLOAK-3279</u></font></a> Possible error with Drools policies when running on Windows” entry but this was closed without code fix, I think.</div>
<div> </div>
<div>Can you verify this finding?</div>
<div> </div>
<div>Thanks,</div>
<div>Christian</div>
<div> </div>
</span></font>
</body>
</html>