title: java.lang.ClassNotFoundException in Maven project, while trying to load listener from web.xml
body: <p>I have converted existing web project into Maven, technologies used are : Struts 2, Hibernate. A listener extends  <code>javax.servlet.ServletContextListener</code>, which has a entry in <code>web.xml</code> as follows:</p>
  <pre><code>&lt;listener&gt;
      &lt;listener-class&gt;com.tcs.weserv.util.Listener&lt;/listener-class&gt;
    &lt;/listener&gt;
  </code></pre>
  <p>Maven project build successfully, but when I try to start server, it throw an exception:</p>
  <pre><code>java.lang.ClassNotFoundException: package.util.Listener
  </code></pre>
  <p>All dependencies are defined properly in <code>pom.xml</code>, listener is available at given location, still it throws <code>ClassNotFoundException</code>.</p>