I have implemented support and an example of a self-bootstrapping
bundled application with Keycloak Server. It is one war with an
application and keycloak server all in one with the application secured
by Keycloak too. Its very hacked because of Resteasy 2.3.7 limitations.
See this URL for more details:
Also, Keycloak Server now is Resteasy 2.3.7 compatible and runs within
EAP 6.2's Resteasy implementation!
JBoss, a division of Red Hat