java - HTTP Status 500 wrapper can not find servlet class -


i have created simple dynamic web project on eclipse. trying submit html form , passing request servlet. when click on submit exception:

http status 500 wrapper can not find servlet class com.tcs.navigator.servlet.labservlet or class depends on

in jsp form actoin tag had given same action path per web xml :

action = "labservlet"

content of web.xml :

<?xml version="1.0" encoding="utf-8"?> <web-app xmlns:xsi="http://www.w3.org/2001/xmlschema-instance" xmlns="http://java.sun.com/xml/ns/javaee" xmlns:web="http://java.sun.com/xml/ns/javaee/web-app_2_5.xsd" xsi:schemalocation="http://java.sun.com/xml/ns/javaee http://java.sun.com/xml/ns/javaee/web-app_2_5.xsd" id="webapp_id" version="2.5">    <welcome-file-list>     <welcome-file>home.jsp</welcome-file>    </welcome-file-list>   <servlet>     <description>to upload files processing</description>     <display-name>labservlet</display-name>     <servlet-name>labservlet</servlet-name>     <servlet-class>com.tcs.navigator.servlet.labservlet</servlet-class>   </servlet>   <servlet-mapping>     <servlet-name>labservlet</servlet-name>                  <url-pattern>/labservlet</url-pattern>     </servlet-mapping>  </web-app>               

i tried following workarounds:

  1. clean tomcat directory
  2. open/close project
  3. clean projects
  4. restart eclipse
  5. verifying class path
  6. created new dynamic web project same code

but still same exception persist.

all libraries servlet-api.jar present in build path.

you have kept capital s in "servlet.labservlet" . system getting class named servlet. name servlet starting caps "labservlet" in code , start package name small letters. complete class path should be

com.tcs.navigator.servlets.labservlet


Comments

Popular posts from this blog

php - Submit Form Data without Reloading page -

linux - Rails running on virtual machine in Windows -