java.lang.IllegalStateException: No WebApplicationContext found: initializer not registered?

Stack Overflow | terencefung | 2 months ago
  1. 0

    Deploying spring boot web sample, from war, to EAR, to websphere 8 using eclipse

    Stack Overflow | 2 months ago | terencefung
    java.lang.IllegalStateException: No WebApplicationContext found: initializer not registered?
  2. 0

    ContextLoaderListener does not recognise Spring Security

    Stack Overflow | 2 years ago | Renya
    java.lang.IllegalStateException: No WebApplicationContext found: no ContextLoaderListener registered?
  3. 0

    Spring security in memory authentication does not work

    Stack Overflow | 1 year ago | NevyanovL
    java.lang.IllegalStateException: No WebApplicationContext found: no ContextLoaderListener registered?
  4. Speed up your debug routine!

    Automated exception search integrated into your IDE

  5. 0

    Added Spring Security, now I'm getting "No WebApplicationContext found: no ContextLoaderListener registered?"

    Stack Overflow | 3 years ago
    java.lang.IllegalStateException: No WebApplicationContext found: no ContextLoaderListener registered?
  6. 0

    Spring AbstractAnnotationConfigDispatcherServletInitializer No WebApplicationContext found: no ContextLoaderListener registered

    Stack Overflow | 3 years ago | user3089280
    java.lang.IllegalStateException: No WebApplicationContext found: no ContextLoaderListener registered?

    Not finding the right solution?
    Take a tour to get the most out of Samebug.

    Tired of useless tips?

    Automated exception search integrated into your IDE

    Root Cause Analysis

    1. java.lang.IllegalStateException

      No WebApplicationContext found: initializer not registered?

      at org.springframework.web.servlet.FrameworkServlet.findWebApplicationContext()
    2. Spring MVC
      HttpServletBean.init
      1. org.springframework.web.servlet.FrameworkServlet.findWebApplicationContext(FrameworkServlet.java:594)
      2. org.springframework.web.servlet.FrameworkServlet.initWebApplicationContext(FrameworkServlet.java:549)
      3. org.springframework.web.servlet.FrameworkServlet.initServletBean(FrameworkServlet.java:494)
      4. org.springframework.web.servlet.HttpServletBean.init(HttpServletBean.java:136)
      4 frames
    3. JavaServlet
      GenericServlet.init
      1. javax.servlet.GenericServlet.init(GenericServlet.java:161)
      1 frame
    4. WebSphere
      ContextManagerImpl.runAsSystem
      1. com.ibm.ws.webcontainer.servlet.ServletWrapper.init(ServletWrapper.java:342)
      2. com.ibm.ws.webcontainer.servlet.ServletWrapperImpl.init(ServletWrapperImpl.java:168)
      3. com.ibm.ws.webcontainer.servlet.ServletWrapper.loadOnStartupCheck(ServletWrapper.java:1366)
      4. com.ibm.ws.webcontainer.webapp.WebApp.doLoadOnStartupActions(WebApp.java:618)
      5. com.ibm.ws.webcontainer.webapp.WebApp.commonInitializationFinally(WebApp.java:587)
      6. com.ibm.ws.webcontainer.webapp.WebAppImpl.initialize(WebAppImpl.java:421)
      7. com.ibm.ws.webcontainer.webapp.WebGroupImpl.addWebApplication(WebGroupImpl.java:88)
      8. com.ibm.ws.webcontainer.VirtualHostImpl.addWebApplication(VirtualHostImpl.java:169)
      9. com.ibm.ws.webcontainer.WSWebContainer.addWebApp(WSWebContainer.java:746)
      10. com.ibm.ws.webcontainer.WSWebContainer.addWebApplication(WSWebContainer.java:634)
      11. com.ibm.ws.webcontainer.component.WebContainerImpl.install(WebContainerImpl.java:422)
      12. com.ibm.ws.webcontainer.component.WebContainerImpl.start(WebContainerImpl.java:714)
      13. com.ibm.ws.runtime.component.ApplicationMgrImpl.start(ApplicationMgrImpl.java:1165)
      14. com.ibm.ws.runtime.component.DeployedApplicationImpl.fireDeployedObjectStart(DeployedApplicationImpl.java:1369)
      15. com.ibm.ws.runtime.component.DeployedModuleImpl.start(DeployedModuleImpl.java:639)
      16. com.ibm.ws.runtime.component.DeployedApplicationImpl.start(DeployedApplicationImpl.java:967)
      17. com.ibm.ws.runtime.component.ApplicationMgrImpl.startApplication(ApplicationMgrImpl.java:771)
      18. com.ibm.ws.runtime.component.ApplicationMgrImpl.startApplicationDynamically(ApplicationMgrImpl.java:1362)
      19. com.ibm.ws.runtime.component.ApplicationMgrImpl.start(ApplicationMgrImpl.java:2163)
      20. com.ibm.ws.runtime.component.CompositionUnitMgrImpl.start(CompositionUnitMgrImpl.java:389)
      21. com.ibm.ws.runtime.component.CompositionUnitImpl.start(CompositionUnitImpl.java:123)
      22. com.ibm.ws.runtime.component.CompositionUnitMgrImpl.start(CompositionUnitMgrImpl.java:332)
      23. com.ibm.ws.runtime.component.CompositionUnitMgrImpl.access$500(CompositionUnitMgrImpl.java:119)
      24. com.ibm.ws.runtime.component.CompositionUnitMgrImpl$1.run(CompositionUnitMgrImpl.java:607)
      25. com.ibm.ws.security.auth.ContextManagerImpl.runAs(ContextManagerImpl.java:5468)
      26. com.ibm.ws.security.auth.ContextManagerImpl.runAsSystem(ContextManagerImpl.java:5594)
      26 frames
    5. com.ibm.ws
      SecurityContext.runAsSystem
      1. com.ibm.ws.security.core.SecurityContext.runAsSystem(SecurityContext.java:255)
      1 frame
    6. WebSphere
      ApplicationMgrImpl.startApplication
      1. com.ibm.ws.runtime.component.CompositionUnitMgrImpl.startCompositionUnit(CompositionUnitMgrImpl.java:621)
      2. com.ibm.ws.runtime.component.CompositionUnitMgrImpl.startCompositionUnit(CompositionUnitMgrImpl.java:565)
      3. com.ibm.ws.runtime.component.ApplicationMgrImpl.startApplication(ApplicationMgrImpl.java:1252)
      3 frames
    7. Java RT
      AccessController.doPrivileged
      1. sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
      2. sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:60)
      3. sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:37)
      4. java.lang.reflect.Method.invoke(Method.java:611)
      5. sun.reflect.misc.Trampoline.invoke(MethodUtil.java:69)
      6. sun.reflect.GeneratedMethodAccessor13.invoke(Unknown Source)
      7. sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:37)
      8. java.lang.reflect.Method.invoke(Method.java:611)
      9. sun.reflect.misc.MethodUtil.invoke(MethodUtil.java:272)
      10. javax.management.modelmbean.RequiredModelMBean$4.run(RequiredModelMBean.java:1152)
      11. java.security.AccessController.doPrivileged(AccessController.java:298)
      11 frames
    8. com.ibm.oti
      CheckedAccessControlContext.securityCheck
      1. com.ibm.oti.security.CheckedAccessControlContext.securityCheck(CheckedAccessControlContext.java:30)
      1 frame
    9. Java RT
      JmxMBeanServer.invoke
      1. sun.misc.JavaSecurityAccessWrapper.doIntersectionPrivilege(JavaSecurityAccessWrapper.java:41)
      2. javax.management.modelmbean.RequiredModelMBean.invokeMethod(RequiredModelMBean.java:1146)
      3. javax.management.modelmbean.RequiredModelMBean.invoke(RequiredModelMBean.java:999)
      4. com.sun.jmx.interceptor.DefaultMBeanServerInterceptor.invoke(DefaultMBeanServerInterceptor.java:847)
      5. com.sun.jmx.mbeanserver.JmxMBeanServer.invoke(JmxMBeanServer.java:783)
      5 frames
    10. WebSphere
      AdminServiceImpl.invoke
      1. com.ibm.ws.management.AdminServiceImpl$1.run(AdminServiceImpl.java:1335)
      2. com.ibm.ws.security.util.AccessController.doPrivileged(AccessController.java:118)
      3. com.ibm.ws.management.AdminServiceImpl.invoke(AdminServiceImpl.java:1228)
      3 frames
    11. com.ibm.ws
      SSLReadServiceContext$SSLReadCompletedCallback.complete
      1. com.ibm.ws.management.connector.AdminServiceDelegator.invoke(AdminServiceDelegator.java:181)
      2. com.ibm.ws.management.connector.ipc.CallRouter.route(CallRouter.java:247)
      3. com.ibm.ws.management.connector.ipc.IPCConnectorInboundLink.doWork(IPCConnectorInboundLink.java:360)
      4. com.ibm.ws.management.connector.ipc.IPCConnectorInboundLink$IPCConnectorReadCallback.complete(IPCConnectorInboundLink.java:602)
      5. com.ibm.ws.ssl.channel.impl.SSLReadServiceContext$SSLReadCompletedCallback.complete(SSLReadServiceContext.java:1818)
      5 frames
    12. WebSphere
      AioReadCompletionListener.futureCompleted
      1. com.ibm.ws.tcp.channel.impl.AioReadCompletionListener.futureCompleted(AioReadCompletionListener.java:175)
      1 frame
    13. com.ibm.io
      ResultHandler$2.run
      1. com.ibm.io.async.AbstractAsyncFuture.invokeCallback(AbstractAsyncFuture.java:217)
      2. com.ibm.io.async.AsyncChannelFuture.fireCompletionActions(AsyncChannelFuture.java:161)
      3. com.ibm.io.async.AsyncFuture.completed(AsyncFuture.java:138)
      4. com.ibm.io.async.ResultHandler.complete(ResultHandler.java:204)
      5. com.ibm.io.async.ResultHandler.runEventProcessingLoop(ResultHandler.java:775)
      6. com.ibm.io.async.ResultHandler$2.run(ResultHandler.java:905)
      6 frames
    14. com.ibm.ws
      ThreadPool$Worker.run
      1. com.ibm.ws.util.ThreadPool$Worker.run(ThreadPool.java:1702)
      1 frame