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:
- clean tomcat directory
- open/close project
- clean projects
- restart eclipse
- verifying class path
- 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
Post a Comment