java.lang.IllegalStateException: Filter org.apache.shiro.web.servlet.ShiroFilter could not be created for application {}

shiro-user | harald | 2 years ago
tip
Your exception is missing from the Samebug knowledge base.
Here are the best solutions we found on the Internet.
Click on the to mark the helpful solution and get rewards for you help.
  1. 0

    Re: Shiro with Wicket on OSGi (ServiceMix)

    shiro-user | 2 years ago | harald
    java.lang.IllegalStateException: Filter org.apache.shiro.web.servlet.ShiroFilter could not be created for application {}
  2. 0

    Embedded Jetty + ShiroFilter problems

    Stack Overflow | 2 years ago | Injinero
    javax.servlet.ServletException: java.lang.IllegalStateException: No WebEnvironment found: no EnvironmentLoaderListener registered?
  3. 0

    Apache Shiro Unable to start Filter - org.apache.shiro.web.servlet.AbstractFilter

    Stack Overflow | 2 years ago | Mode
    javax.servlet.ServletException: java.lang.IllegalArgumentException: Line argument must contain a key and a value. Only one string token was found.
  4. Speed up your debug routine!

    Automated exception search integrated into your IDE

  5. 0

    How can I cope with "IllegalStateException: BeanFactory not initialized or already closed"?

    Stack Overflow | 6 years ago | user569825
    java.lang.IllegalStateException: BeanFactory not initialized or already closed - call 'refresh' before accessing beans via the ApplicationContext
  6. 0

    issues in spring petclinic applicaiton

    Stack Overflow | 4 years ago | user2216702
    java.lang.IllegalStateException: ApplicationEventMulticaster not initialized - c all 'refresh' before multicasting events via the context: Root WebApplicationCon text: startup date [Wed Mar 27 11:31:56 CDT 2013]; root of context hierarchy at org.springframework.context.support.AbstractApplic ationContext.getApp licationEventMulticaster(AbstractApplicationContex t.java:347) [spring-context-3. 2.2.RELEASE.jar:3.2.2.RELEASE] at org.springframework.context.support.AbstractApplic ationContext.publis hEvent(AbstractApplicationContext.java:334) [spring-context-3.2.2.RELEASE.jar:3. 2.2.RELEASE] at org.springframework.context.support.AbstractApplic ationContext.doClos e(AbstractApplicationContext.java:1049) [spring-context-3.2.2.RELEASE.jar:3.2.2. RELEASE] at org.springframework.context.support.AbstractApplic ationContext.close( AbstractApplicationContext.java:1010) [spring-context-3.2.2.RELEASE.jar:3.2.2.RE LEASE] at org.springframework.web.context.ContextLoader.clos eWebApplicationCont ext(ContextLoader.java:558) [spring-web-3.2.2.RELEASE.jar:3.2.2.RELEASE] at org.springframework.web.context.ContextLoaderListe ner.contextDestroye d(ContextLoaderListener.java:143) [spring-web-3.2.2.RELEASE.jar:3.2.2.RELEASE] at org.apache.catalina.core.StandardContext.listenerS top(StandardContext .java:4831) [tomcat-embed-core-7.0.30.jar:7.0.30] at org.apache.catalina.core.StandardContext.stopInter nal(StandardContext .java:5478) [tomcat-embed-core-7.0.30.jar:7.0.30] at org.apache.catalina.util.LifecycleBase.stop(Lifecy cleBase.java:232) [ tomcat-embed-core-7.0.30.jar:7.0.30] at org.apache.catalina.util.LifecycleBase.start(Lifec ycleBase.java:160) [tomcat-embed-core-7.0.30.jar:7.0.30] at org.apache.catalina.core.ContainerBase$StartChild. call(ContainerBase. java:1559) [tomcat-embed-core-7.0.30.jar:7.0.30] at org.apache.catalina.core.ContainerBase$StartChild. call(ContainerBase. java:1549) [tomcat-embed-core-7.0.30.jar:7.0.30] at java.util.concurrent.FutureTask$Sync.innerRun(Futu reTask.java:303) [n a:1.6.0_20] at java.util.concurrent.FutureTask.run(FutureTask.jav a:138) [na:1.6.0_20 ] at java.util.concurrent.ThreadPoolExecutor$Worker.run Task(ThreadPoolExec utor.java:886) [na:1.6.0_20] at java.util.concurrent.ThreadPoolExecutor$Worker.run (ThreadPoolExecutor .java:908) [na:1.6.0_20]

    3 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 WebEnvironment found: no EnvironmentLoaderListener registered?

      at org.apache.shiro.web.util.WebUtils.getRequiredWebEnvironment()
    2. Shiro
      AbstractFilter.init
      1. org.apache.shiro.web.util.WebUtils.getRequiredWebEnvironment(WebUtils.java:276)[3514:org.apache.shiro.web:1.2.3]
      2. org.apache.shiro.web.servlet.ShiroFilter.init(ShiroFilter.java:73)[3514:org.apache.shiro.web:1.2.3]
      3. org.apache.shiro.web.servlet.AbstractShiroFilter.onFilterConfigSet(AbstractShiroFilter.java:152)[3514:org.apache.shiro.web:1.2.3]
      4. org.apache.shiro.web.servlet.AbstractFilter.init(AbstractFilter.java:97)[3514:org.apache.shiro.web:1.2.3]
      4 frames
    3. org.ops4j.pax
      ServletProxy$ServletInvocationHandler.invoke
      1. org.ops4j.pax.wicket.internal.injection.FilterFactoryDecorator$DefaultFilterFactory.createFilter(FilterFactoryDecorator.java:109)[3471:org.ops4j.pax.wicket.service:2.1.1]
      2. org.ops4j.pax.wicket.internal.FilterTracker$FilterFactoryReference.getFilter(FilterTracker.java:235)[3471:org.ops4j.pax.wicket.service:2.1.1]
      3. org.ops4j.pax.wicket.internal.FilterTracker.getFiltersSortedWithHighestPriorityAsFirstFilter(FilterTracker.java:126)[3471:org.ops4j.pax.wicket.service:2.1.1]
      4. org.ops4j.pax.wicket.internal.FilterDelegator.doFilter(FilterDelegator.java:60)[3471:org.ops4j.pax.wicket.service:2.1.1]
      5. org.ops4j.pax.wicket.internal.ServletProxy$ServletInvocationHandler.invoke(ServletProxy.java:72)[3471:org.ops4j.pax.wicket.service:2.1.1]
      5 frames
    4. com.sun.proxy
      $Proxy75.service
      1. com.sun.proxy.$Proxy75.service(Unknown Source)[3471:org.ops4j.pax.wicket.service:2.1.1]
      1 frame
    5. Jetty
      ServletHandler.doHandle
      1. org.eclipse.jetty.servlet.ServletHolder.handle(ServletHolder.java:547)[114:org.eclipse.jetty.servlet:7.5.4.v20111024]
      2. org.eclipse.jetty.servlet.ServletHandler.doHandle(ServletHandler.java:480)[114:org.eclipse.jetty.servlet:7.5.4.v20111024]
      2 frames
    6. OPS4J Pax Web - Jetty
      HttpServiceServletHandler.doHandle
      1. org.ops4j.pax.web.service.jetty.internal.HttpServiceServletHandler.doHandle(HttpServiceServletHandler.java:70)[136:org.ops4j.pax.web.pax-web-jetty:1.0.12.1]
      1 frame
    7. Jetty
      ContextHandler.doHandle
      1. org.eclipse.jetty.server.handler.ScopedHandler.handle(ScopedHandler.java:119)[116:org.eclipse.jetty.server:7.5.4.v20111024]
      2. org.eclipse.jetty.security.SecurityHandler.handle(SecurityHandler.java:483)[113:org.eclipse.jetty.security:7.5.4.v20111024]
      3. org.eclipse.jetty.server.session.SessionHandler.doHandle(SessionHandler.java:227)[116:org.eclipse.jetty.server:7.5.4.v20111024]
      4. org.eclipse.jetty.server.handler.ContextHandler.doHandle(ContextHandler.java:941)[116:org.eclipse.jetty.server:7.5.4.v20111024]
      4 frames
    8. OPS4J Pax Web - Jetty
      HttpServiceContext.doHandle
      1. org.ops4j.pax.web.service.jetty.internal.HttpServiceContext.doHandle(HttpServiceContext.java:117)[136:org.ops4j.pax.web.pax-web-jetty:1.0.12.1]
      1 frame
    9. Jetty
      QueuedThreadPool$3.run
      1. org.eclipse.jetty.servlet.ServletHandler.doScope(ServletHandler.java:409)[114:org.eclipse.jetty.servlet:7.5.4.v20111024]
      2. org.eclipse.jetty.server.session.SessionHandler.doScope(SessionHandler.java:186)[116:org.eclipse.jetty.server:7.5.4.v20111024]
      3. org.eclipse.jetty.server.handler.ContextHandler.doScope(ContextHandler.java:875)[116:org.eclipse.jetty.server:7.5.4.v20111024]
      4. org.eclipse.jetty.server.handler.ScopedHandler.handle(ScopedHandler.java:117)[116:org.eclipse.jetty.server:7.5.4.v20111024]
      5. org.eclipse.jetty.server.handler.HandlerCollection.handle(HandlerCollection.java:149)[116:org.eclipse.jetty.server:7.5.4.v20111024]
      6. org.eclipse.jetty.server.handler.HandlerWrapper.handle(HandlerWrapper.java:110)[116:org.eclipse.jetty.server:7.5.4.v20111024]
      7. org.eclipse.jetty.server.Server.handle(Server.java:349)[116:org.eclipse.jetty.server:7.5.4.v20111024]
      8. org.eclipse.jetty.server.HttpConnection.handleRequest(HttpConnection.java:441)[116:org.eclipse.jetty.server:7.5.4.v20111024]
      9. org.eclipse.jetty.server.HttpConnection$RequestHandler.headerComplete(HttpConnection.java:919)[116:org.eclipse.jetty.server:7.5.4.v20111024]
      10. org.eclipse.jetty.http.HttpParser.parseNext(HttpParser.java:582)[117:org.eclipse.jetty.http:7.5.4.v20111024]
      11. org.eclipse.jetty.http.HttpParser.parseAvailable(HttpParser.java:218)[117:org.eclipse.jetty.http:7.5.4.v20111024]
      12. org.eclipse.jetty.server.BlockingHttpConnection.handle(BlockingHttpConnection.java:50)[116:org.eclipse.jetty.server:7.5.4.v20111024]
      13. org.eclipse.jetty.server.nio.BlockingChannelConnector$BlockingChannelEndPoint.run(BlockingChannelConnector.java:293)[116:org.eclipse.jetty.server:7.5.4.v20111024]
      14. org.eclipse.jetty.util.thread.QueuedThreadPool.runJob(QueuedThreadPool.java:598)[120:org.eclipse.jetty.util:7.5.4.v20111024]
      15. org.eclipse.jetty.util.thread.QueuedThreadPool$3.run(QueuedThreadPool.java:533)[120:org.eclipse.jetty.util:7.5.4.v20111024]
      15 frames
    10. Java RT
      Thread.run
      1. java.lang.Thread.run(Thread.java:745)[:1.7.0_55]
      1 frame