Details
-
Bug
-
Status: Closed
-
Major
-
Resolution: Done
-
1.0-beta-3
-
None
Description
For WF deployment I changed the used adapter (using WF instead of AS7 adapter):
https://github.com/matzew/keycloak/commit/c3f5d687fdb02f164bb87b9459332063c60b78e5
But now, on WF, when I am deploying the app.war file, I am getting a NPE inside of the BootstrapListener:
Caused by: java.lang.NullPointerException at org.keycloak.example.BootstrapListener.contextInitialized(BootstrapListener.java:24) at io.undertow.servlet.core.ApplicationListeners.contextInitialized(ApplicationListeners.java:173) at io.undertow.servlet.core.DeploymentManagerImpl.deploy(DeploymentManagerImpl.java:190) ... 7 more
Looking at the sources, I see that the Undertow/WildFly adapters do behave a bit different than the AS7 one:
- The AS7 adapter is not 'failing' if the getConfigInputStream() returns null:
https://github.com/keycloak/keycloak/blob/master/integration/as7-eap6/adapter/src/main/java/org/keycloak/adapters/as7/KeycloakAuthenticatorValve.java#L114-L119
- The AS7 apdater also stashes the AdapterDeploymentContext on the servletContext:
https://github.com/keycloak/keycloak/blob/master/integration/as7-eap6/adapter/src/main/java/org/keycloak/adapters/as7/KeycloakAuthenticatorValve.java#L121
Since the stashing is not done by the WildFly/Undertow Adapter we get the NPE when trying to deploy on WildFly
Attachments
Issue Links
- blocks
-
AEROGEAR-7045 Deployment fails on WildFly 8.0.0.Final
-
- Resolved
-