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