java.lang.IllegalStateException: No WebEnvironment found: no EnvironmentLoaderListener registered?

Searched on Google with the first line of a JAVA stack trace?

We can recommend more relevant solutions and speed up debugging when you paste your entire stack trace with the exception message. Try a sample exception.

Recommended solutions based on your search

Solutions on the web

via shiro-user by harald, 1 year ago
No WebEnvironment found: no EnvironmentLoaderListener registered?
via Stack Overflow by Pete
, 1 year ago
No WebEnvironment found: no EnvironmentLoaderListener registered?
via nabble.com by Unknown author, 1 year ago
No WebEnvironment found: no EnvironmentLoaderListener registered?
java.lang.IllegalStateException: No WebEnvironment found: no EnvironmentLoaderListener registered?
at org.apache.shiro.web.util.WebUtils.getRequiredWebEnvironment(WebUtils.java:276)
at org.apache.shiro.web.servlet.ShiroFilter.init(ShiroFilter.java:73)
at org.apache.shiro.web.servlet.AbstractShiroFilter.onFilterConfigSet(AbstractShiroFilter.java:152)
at org.ops4j.pax.wicket.internal.injection.FilterFactoryDecorator$DefaultFilterFactory.createFilter(FilterFactoryDecorator.java:109)
at org.ops4j.pax.wicket.internal.FilterTracker$FilterFactoryReference.getFilter(FilterTracker.java:235)
at org.ops4j.pax.wicket.internal.FilterTracker.getFiltersSortedWithHighestPriorityAsFirstFilter(FilterTracker.java:126)
at org.ops4j.pax.wicket.internal.FilterDelegator.doFilter(FilterDelegator.java:60)
at org.ops4j.pax.wicket.internal.ServletProxy$ServletInvocationHandler.invoke(ServletProxy.java:72)
at com.sun.proxy.$Proxy75.service(Unknown Source)
at org.eclipse.jetty.servlet.ServletHolder.handle(ServletHolder.java:547)
at org.eclipse.jetty.server.handler.ScopedHandler.handle(ScopedHandler.java:119)
at org.eclipse.jetty.security.SecurityHandler.handle(SecurityHandler.java:483)
at org.eclipse.jetty.server.session.SessionHandler.doHandle(SessionHandler.java:227)
at org.eclipse.jetty.servlet.ServletHandler.doScope(ServletHandler.java:409)
at org.eclipse.jetty.server.session.SessionHandler.doScope(SessionHandler.java:186)
at org.eclipse.jetty.server.handler.ContextHandler.doScope(ContextHandler.java:875)
at org.eclipse.jetty.server.handler.ScopedHandler.handle(ScopedHandler.java:117)
at org.eclipse.jetty.server.handler.HandlerCollection.handle(HandlerCollection.java:149)
at org.eclipse.jetty.server.handler.HandlerWrapper.handle(HandlerWrapper.java:110)
at org.eclipse.jetty.server.Server.handle(Server.java:349)
at org.eclipse.jetty.server.HttpConnection.handleRequest(HttpConnection.java:441)
at org.eclipse.jetty.server.HttpConnection$RequestHandler.headerComplete(HttpConnection.java:919)
at org.eclipse.jetty.http.HttpParser.parseNext(HttpParser.java:582)
at org.eclipse.jetty.http.HttpParser.parseAvailable(HttpParser.java:218)
at org.eclipse.jetty.server.BlockingHttpConnection.handle(BlockingHttpConnection.java:50)
at org.eclipse.jetty.server.nio.BlockingChannelConnector$BlockingChannelEndPoint.run(BlockingChannelConnector.java:293)
at org.eclipse.jetty.util.thread.QueuedThreadPool.runJob(QueuedThreadPool.java:598)
at java.lang.Thread.run(Thread.java:745)

Users with the same issue

Samebug visitor profile picture
Unknown user
Once, 1 year ago
Samebug visitor profile picture
Unknown user
Once, 1 year ago

Write tip

Know the solutions? Share your knowledge to help other developers to debug faster.