Can some one help me with this problem. jetty is not able to find my servlet. 🙁
I am getting the following error-

This is my directory structure –

This is my Web.xml –
<!DOCTYPE web-app PUBLIC
"-//Sun Microsystems, Inc.//DTD Web Application 2.3//EN"
"http://java.sun.com/dtd/web-app_2_3.dtd" >
<web-app>
<display-name>Archetype Created Web Application</display-name>
<servlet>
<servlet-name>loginSer</servlet-name>
<display-name>loginSer</display-name>
<description></description>
<servlet-class>launchpad.servlets.loginSer</servlet-class>
</servlet>
<servlet-mapping>
<servlet-name>loginSer</servlet-name>
<url-pattern>/loginSer</url-pattern>
</servlet-mapping>
</web-app>
You kept it in wrong directory, it should go under
not in
Maven takes into compilati
Update
It is because you don’t have servlet-api in yoru classpath
add dependency to your POM, replace
${servlet-api-version}with the appropriate version matching your app environment