title: ClassNotFoundException: org.apache.shiro.web.env.EnvironmentLoaderListener
body: <p>I have simple RESTful service based on Jersey and Shiro security.<br>
  But all crashed when I tried to deploy.</p>
  
  <p>web.xml</p>
  
  <pre><code>&lt;servlet&gt;
      &lt;servlet-name&gt;Application&lt;/servlet-name&gt;
      &lt;servlet-class&gt;org.glassfish.jersey.servlet.ServletContainer&lt;/servlet-class&gt;
      &lt;init-param&gt;
          &lt;param-name&gt;jersey.config.server.provider.packages&lt;/param-name&gt;
          &lt;param-value&gt;alexiuscrow.ws&lt;/param-value&gt;
      &lt;/init-param&gt;
      &lt;load-on-startup&gt;1&lt;/load-on-startup&gt;
  &lt;/servlet&gt;
  
  &lt;servlet-mapping&gt;
      &lt;servlet-name&gt;Application&lt;/servlet-name&gt;
      &lt;url-pattern&gt;/*&lt;/url-pattern&gt;
  &lt;/servlet-mapping&gt;
  
  &lt;filter&gt;
      &lt;filter-name&gt;ShiroFilter&lt;/filter-name&gt;
      &lt;filter-class&gt;org.apache.shiro.web.servlet.ShiroFilter&lt;/filter-class&gt;
  &lt;/filter&gt;
  
  &lt;filter-mapping&gt;
      &lt;filter-name&gt;ShiroFilter&lt;/filter-name&gt;
      &lt;url-pattern&gt;/*&lt;/url-pattern&gt;
      &lt;dispatcher&gt;REQUEST&lt;/dispatcher&gt;
      &lt;dispatcher&gt;FORWARD&lt;/dispatcher&gt;
      &lt;dispatcher&gt;INCLUDE&lt;/dispatcher&gt;
      &lt;dispatcher&gt;ERROR&lt;/dispatcher&gt;
  &lt;/filter-mapping&gt;
  </code></pre>
  
  <p>Gradle dependencies:</p>
  
  <pre><code>dependencies {
      compile 'org.glassfish.jersey.core:jersey-server:2.19'
      compile 'org.glassfish.jersey.containers:jersey-container-servlet:2.19'
      compile 'org.apache.shiro:shiro-core:1.2.3'
      compile 'org.apache.shiro:shiro-web:1.2.3'
  }
  </code></pre>
  
  <p>Output:</p>
  
  <pre><code>18-Jul-2015 21:28:10.775 SEVERE [RMI TCP Connection(2)-127.0.0.1] org.apache.catalina.core.StandardContext.listenerStart Error configuring application listener of class org.apache.shiro.web.env.EnvironmentLoaderListener
   java.lang.ClassNotFoundException: org.apache.shiro.web.env.EnvironmentLoaderListener
  //...
  </code></pre>
  
  <p>What's wrong? Why it can't deploy?</p>