java.lang.IllegalStateException: No WebApplicationContext found: no ContextLoaderListener or DispatcherServlet registered?

Stack Overflow | peppe71-19 | 1 month ago
tip
Do you find the tips below useful? Click on the to mark them and say thanks to rafael and iferca . Or join the community to write better ones.
  1. 0
    samebug tip
    This exception is thrown to indicate that a method has been passed an illegal or inappropriate argument.
  2. 0
    samebug tip
    Install Java Cryptopraphic Extention for your JDK version
  3. 0
    samebug tip
    If you are using maven you'd like to exclude your binaries from filtering process.
  4. Speed up your debug routine!

    Automated exception search integrated into your IDE

  5. 0
    samebug tip
    Check if you added Multipart filter to your web.xml file. Also, take a look here https://goo.gl/ntbxrA for common mistakes related to MultiPart File Upload and how to solve them.
  6. 0
    samebug tip
    This happens when you read the input as binary stream getInputStream() and character stream getReader, you can only use one way, or you can try this workaround https://goo.gl/IspUjB

    2 unregistered visitors
    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: no ContextLoaderListener or DispatcherServlet registered?

      at org.springframework.web.filter.DelegatingFilterProxy.doFilter()
    2. Spring
      DelegatingFilterProxy.doFilter
      1. org.springframework.web.filter.DelegatingFilterProxy.doFilter(DelegatingFilterProxy.java:252)
      1 frame
    3. Glassfish Core
      ApplicationFilterChain.doFilter
      1. org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:192)
      2. org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:165)
      2 frames
    4. Spring
      OncePerRequestFilter.doFilter
      1. org.springframework.web.filter.OncePerRequestFilter.doFilter(OncePerRequestFilter.java:101)
      1 frame
    5. Glassfish Core
      ApplicationFilterChain.doFilter
      1. org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:192)
      2. org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:165)
      2 frames
    6. Spring
      OncePerRequestFilter.doFilter
      1. org.springframework.web.filter.OncePerRequestFilter.doFilter(OncePerRequestFilter.java:101)
      1 frame
    7. Glassfish Core
      ApplicationFilterChain.doFilter
      1. org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:192)
      2. org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:165)
      2 frames
    8. Spring
      OncePerRequestFilter.doFilter
      1. org.springframework.web.filter.OncePerRequestFilter.doFilter(OncePerRequestFilter.java:101)
      1 frame
    9. Glassfish Core
      ApplicationFilterChain.doFilter
      1. org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:192)
      2. org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:165)
      2 frames
    10. net.yadaframework.security
      CheckSessionFilter.doFilter
      1. net.yadaframework.security.CheckSessionFilter.doFilter(CheckSessionFilter.java:50)
      1 frame
    11. Glassfish Core
      CoyoteAdapter.service
      1. org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:192)
      2. org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:165)
      3. org.apache.catalina.core.ApplicationDispatcher.invoke(ApplicationDispatcher.java:726)
      4. org.apache.catalina.core.ApplicationDispatcher.processRequest(ApplicationDispatcher.java:471)
      5. org.apache.catalina.core.ApplicationDispatcher.doForward(ApplicationDispatcher.java:394)
      6. org.apache.catalina.core.ApplicationDispatcher.forward(ApplicationDispatcher.java:311)
      7. org.apache.catalina.core.StandardHostValve.custom(StandardHostValve.java:395)
      8. org.apache.catalina.core.StandardHostValve.status(StandardHostValve.java:254)
      9. org.apache.catalina.core.StandardHostValve.throwable(StandardHostValve.java:349)
      10. org.apache.catalina.core.StandardHostValve.invoke(StandardHostValve.java:175)
      11. org.apache.catalina.valves.ErrorReportValve.invoke(ErrorReportValve.java:79)
      12. org.apache.catalina.valves.AbstractAccessLogValve.invoke(AbstractAccessLogValve.java:620)
      13. org.apache.catalina.core.StandardEngineValve.invoke(StandardEngineValve.java:87)
      14. org.apache.catalina.connector.CoyoteAdapter.service(CoyoteAdapter.java:349)
      14 frames
    12. Grizzly HTTP
      SocketProcessorBase.run
      1. org.apache.coyote.http11.Http11Processor.service(Http11Processor.java:784)
      2. org.apache.coyote.AbstractProcessorLight.process(AbstractProcessorLight.java:66)
      3. org.apache.coyote.AbstractProtocol$ConnectionHandler.process(AbstractProtocol.java:802)
      4. org.apache.tomcat.util.net.NioEndpoint$SocketProcessor.doRun(NioEndpoint.java:1410)
      5. org.apache.tomcat.util.net.SocketProcessorBase.run(SocketProcessorBase.java:49)
      5 frames
    13. Java RT
      ThreadPoolExecutor$Worker.run
      1. java.util.concurrent.ThreadPoolExecutor.runWorker(Unknown Source)
      2. java.util.concurrent.ThreadPoolExecutor$Worker.run(Unknown Source)
      2 frames
    14. Tomcat Util
      TaskThread$WrappingRunnable.run
      1. org.apache.tomcat.util.threads.TaskThread$WrappingRunnable.run(TaskThread.java:61)
      1 frame
    15. Java RT
      Thread.run
      1. java.lang.Thread.run(Unknown Source)
      1 frame