# Keycloak springboot not working when deploy as war again in Wildfly 24.0.1.Final

**URL:** <https://forum.keycloak.org/t/keycloak-springboot-not-working-when-deploy-as-war-again-in-wildfly-24-0-1-final/11726>\
**Category:** Miscellanaeous\
**Created:** [October 26, 2021, 11:44am UTC](https://forum.keycloak.org/t/keycloak-springboot-not-working-when-deploy-as-war-again-in-wildfly-24-0-1-final/11726 "2021-10-26T11:44:24Z")\
**Posts on this page:** 1\
**Page:** 1

<div class="post-metadata">

**Author:** ![tom2011](https://avatars.discourse-cdn.com/v4/letter/t/8797f3/32.png) [@tom2011](https://forum.keycloak.org/u/tom2011)\
**Post date:** [October 26, 2021, 11:44am UTC](https://forum.keycloak.org/t/keycloak-springboot-not-working-when-deploy-as-war-again-in-wildfly-24-0-1-final/11726/1 "2021-10-26T11:44:25Z")

</div>

I followed [spring-security-oauth/oauth-jwt/jwt-auth-server at master · Baeldung/spring-security-oauth (github.com)](https://github.com/Baeldung/spring-security-oauth/tree/master/oauth-jwt/jwt-auth-server) and was able to start Keycloak in SpringBoot app. If I deployed it as a war file in Wildfly 24, it throws the following error

07:42:15,961 ERROR [org.keycloak.services.error.KeycloakErrorHandler] (default task-1) Uncaught server error: java.lang.NullPointerException  
at org.keycloak.services.resources.WelcomeResource.getWelcomePage(WelcomeResource.java:89)  
at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)  
at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:62)  
at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)  
at java.lang.reflect.Method.invoke(Method.java:497)  
at org.jboss.resteasy.core.MethodInjectorImpl.invoke(MethodInjectorImpl.java:138)  
at org.jboss.resteasy.core.ResourceMethodInvoker.internalInvokeOnTarget(ResourceMethodInvoker.java:546)  
at org.jboss.resteasy.core.ResourceMethodInvoker.invokeOnTargetAfterFilter(ResourceMethodInvoker.java:435)  
at org.jboss.resteasy.core.ResourceMethodInvoker.lambda$invokeOnTarget$0(ResourceMethodInvoker.java:396)  
at org.jboss.resteasy.core.ResourceMethodInvoker$$Lambda$2154/398502571.get(Unknown Source)  
at org.jboss.resteasy.core.interception.PreMatchContainerRequestContext.filter(PreMatchContainerRequestContext.java:358)  
at org.jboss.resteasy.core.ResourceMethodInvoker.invokeOnTarget(ResourceMethodInvoker.java:398)  
at org.jboss.resteasy.core.ResourceMethodInvoker.invoke(ResourceMethodInvoker.java:365)  
at org.jboss.resteasy.core.ResourceMethodInvoker.invoke(ResourceMethodInvoker.java:338)  
at org.jboss.resteasy.core.SynchronousDispatcher.invoke(SynchronousDispatcher.java:440)  
at org.jboss.resteasy.core.SynchronousDispatcher.lambda$invoke$4(SynchronousDispatcher.java:229)  
at org.jboss.resteasy.core.SynchronousDispatcher$$Lambda$2152/640818263.run(Unknown Source)  
at org.jboss.resteasy.core.SynchronousDispatcher.lambda$preprocess$0(SynchronousDispatcher.java:135)  
at org.jboss.resteasy.core.SynchronousDispatcher$$Lambda$2153/479024681.get(Unknown Source)  
at org.jboss.resteasy.core.interception.PreMatchContainerRequestContext.filter(PreMatchContainerRequestContext.java:358)  
at org.jboss.resteasy.core.SynchronousDispatcher.preprocess(SynchronousDispatcher.java:138)  
at org.jboss.resteasy.core.SynchronousDispatcher.invoke(SynchronousDispatcher.java:215)  
at org.jboss.resteasy.plugins.server.servlet.ServletContainerDispatcher.service(ServletContainerDispatcher.java:245)  
at org.jboss.resteasy.plugins.server.servlet.HttpServletDispatcher.service(HttpServletDispatcher.java:61)  
at org.jboss.resteasy.plugins.server.servlet.HttpServletDispatcher.service(HttpServletDispatcher.java:56)  
at javax.servlet.http.HttpServlet.service(HttpServlet.java:590)  
at io.undertow.servlet.handlers.ServletHandler.handleRequest(ServletHandler.java:74)  
at io.undertow.servlet.handlers.FilterHandler$FilterChainImpl.doFilter(FilterHandler.java:129)  
at io.opentracing.contrib.jaxrs2.server.SpanFinishingFilter.doFilter(SpanFinishingFilter.java:52)  
at io.undertow.servlet.core.ManagedFilter.doFilter(ManagedFilter.java:61)  
at io.undertow.servlet.handlers.FilterHandler$FilterChainImpl.doFilter(FilterHandler.java:131)

The reason that I need it as a war is client is providing Wildfly and so try to avoid to create another standalone Wildfly instance
