java.lang.IllegalStateException

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

Samebug tips0

We couldn't find tips for this exception.

Don't give up yet. Paste your full stack trace to get a solution.

Solutions on the web3

  • via Unknown by harald,
  • Stack trace

    • java.lang.IllegalStateException: Filter org.apache.shiro.web.servlet.ShiroFilter could not be created for application {} at org.ops4j.pax.wicket.internal.injection.FilterFactoryDecorator$DefaultFilterFactory.createFilter(FilterFactoryDecorator.java:112)[3471:org.ops4j.pax.wicket.service:2.1.1] at org.ops4j.pax.wicket.internal.FilterTracker$FilterFactoryReference.getFilter(FilterTracker.java:235)[3471:org.ops4j.pax.wicket.service:2.1.1] at org.ops4j.pax.wicket.internal.FilterTracker.getFiltersSortedWithHighestPriorityAsFirstFilter(FilterTracker.java:126)[3471:org.ops4j.pax.wicket.service:2.1.1] at org.ops4j.pax.wicket.internal.FilterDelegator.doFilter(FilterDelegator.java:60)[3471:org.ops4j.pax.wicket.service:2.1.1] at org.ops4j.pax.wicket.internal.ServletProxy$ServletInvocationHandler.invoke(ServletProxy.java:72)[3471:org.ops4j.pax.wicket.service:2.1.1] at com.sun.proxy.$Proxy75.service(Unknown Source)[3471:org.ops4j.pax.wicket.service:2.1.1] at org.eclipse.jetty.servlet.ServletHolder.handle(ServletHolder.java:547)[114:org.eclipse.jetty.servlet:7.5.4.v20111024] at org.eclipse.jetty.servlet.ServletHandler.doHandle(ServletHandler.java:480)[114:org.eclipse.jetty.servlet:7.5.4.v20111024] at org.ops4j.pax.web.service.jetty.internal.HttpServiceServletHandler.doHandle(HttpServiceServletHandler.java:70)[136:org.ops4j.pax.web.pax-web-jetty:1.0.12.1] at org.eclipse.jetty.server.handler.ScopedHandler.handle(ScopedHandler.java:119)[116:org.eclipse.jetty.server:7.5.4.v20111024] at org.eclipse.jetty.security.SecurityHandler.handle(SecurityHandler.java:483)[113:org.eclipse.jetty.security:7.5.4.v20111024] at org.eclipse.jetty.server.session.SessionHandler.doHandle(SessionHandler.java:227)[116:org.eclipse.jetty.server:7.5.4.v20111024] at org.eclipse.jetty.server.handler.ContextHandler.doHandle(ContextHandler.java:941)[116:org.eclipse.jetty.server:7.5.4.v20111024] at org.ops4j.pax.web.service.jetty.internal.HttpServiceContext.doHandle(HttpServiceContext.java:117)[136:org.ops4j.pax.web.pax-web-jetty:1.0.12.1] at org.eclipse.jetty.servlet.ServletHandler.doScope(ServletHandler.java:409)[114:org.eclipse.jetty.servlet:7.5.4.v20111024] at org.eclipse.jetty.server.session.SessionHandler.doScope(SessionHandler.java:186)[116:org.eclipse.jetty.server:7.5.4.v20111024] at org.eclipse.jetty.server.handler.ContextHandler.doScope(ContextHandler.java:875)[116:org.eclipse.jetty.server:7.5.4.v20111024] at org.eclipse.jetty.server.handler.ScopedHandler.handle(ScopedHandler.java:117)[116:org.eclipse.jetty.server:7.5.4.v20111024] at org.eclipse.jetty.server.handler.HandlerCollection.handle(HandlerCollection.java:149)[116:org.eclipse.jetty.server:7.5.4.v20111024] at org.eclipse.jetty.server.handler.HandlerWrapper.handle(HandlerWrapper.java:110)[116:org.eclipse.jetty.server:7.5.4.v20111024] at org.eclipse.jetty.server.Server.handle(Server.java:349)[116:org.eclipse.jetty.server:7.5.4.v20111024] at org.eclipse.jetty.server.HttpConnection.handleRequest(HttpConnection.java:441)[116:org.eclipse.jetty.server:7.5.4.v20111024] at org.eclipse.jetty.server.HttpConnection$RequestHandler.headerComplete(HttpConnection.java:919)[116:org.eclipse.jetty.server:7.5.4.v20111024] at org.eclipse.jetty.http.HttpParser.parseNext(HttpParser.java:582)[117:org.eclipse.jetty.http:7.5.4.v20111024] at org.eclipse.jetty.http.HttpParser.parseAvailable(HttpParser.java:218)[117:org.eclipse.jetty.http:7.5.4.v20111024] at org.eclipse.jetty.server.BlockingHttpConnection.handle(BlockingHttpConnection.java:50)[116:org.eclipse.jetty.server:7.5.4.v20111024] at org.eclipse.jetty.server.nio.BlockingChannelConnector$BlockingChannelEndPoint.run(BlockingChannelConnector.java:293)[116:org.eclipse.jetty.server:7.5.4.v20111024] at org.eclipse.jetty.util.thread.QueuedThreadPool.runJob(QueuedThreadPool.java:598)[120:org.eclipse.jetty.util:7.5.4.v20111024] at org.eclipse.jetty.util.thread.QueuedThreadPool$3.run(QueuedThreadPool.java:533)[120:org.eclipse.jetty.util:7.5.4.v20111024] at java.lang.Thread.run(Thread.java:745)[:1.7.0_55] Caused by: javax.servlet.ServletException: java.lang.IllegalStateException: No WebEnvironment found: no EnvironmentLoaderListener registered? at org.apache.shiro.web.servlet.AbstractFilter.init(AbstractFilter.java:105)[3514:org.apache.shiro.web:1.2.3] at org.ops4j.pax.wicket.internal.injection.FilterFactoryDecorator$DefaultFilterFactory.createFilter(FilterFactoryDecorator.java:109)[3471:org.ops4j.pax.wicket.service:2.1.1] ... 29 more Caused by: java.lang.IllegalStateException: No WebEnvironment found: no EnvironmentLoaderListener registered? at org.apache.shiro.web.util.WebUtils.getRequiredWebEnvironment(WebUtils.java:276)[3514:org.apache.shiro.web:1.2.3] at org.apache.shiro.web.servlet.ShiroFilter.init(ShiroFilter.java:73)[3514:org.apache.shiro.web:1.2.3] at org.apache.shiro.web.servlet.AbstractShiroFilter.onFilterConfigSet(AbstractShiroFilter.java:152)[3514:org.apache.shiro.web:1.2.3] at org.apache.shiro.web.servlet.AbstractFilter.init(AbstractFilter.java:97)[3514:org.apache.shiro.web:1.2.3] ... 30 more

    Write tip

    You have a different solution? A short tip here would help you and many other users who saw this issue last week.

    Users with the same issue

    Unknown visitor
    Unknown visitorOnce,
    Unknown visitor
    Unknown visitorOnce,