java.lang.ClassCastException: tr.com.belsis.common.web.utils.InitServlet cannot be cast to javax.servlet.Servlet
at org.apache.catalina.core.StandardWrapper.loadServlet(StandardWrapper.java:1116)
at org.apache.catalina.core.StandardWrapper.load(StandardWrapper.java:993)
Multiple javax.servlet.Servlet at class path causes this exception. The solution is to define the scope of servlet dependency as provided as below;
<dependency>
<groupId>javax.servlet</groupId>
<artifactId>servlet-api</artifactId>
<version>2.5</version>
<scope>provided</scope>
</dependency>
Hiç yorum yok:
Yorum Gönder