I try to map a Servlet in web.xml file, but run the servlet, I got an error:
javax.servlet.ServletException: Wrapper cannot find servlet class beans.TestServlet
web-app
display-namepackage-web/display-name
servlet-nameTestServlet/servlet-name
More information:
beans.TestServlet.class can be found in the /build/bean directory, along with other
classes in the same packages. Classes in the same package are used in .jsp files and
all of them work fine.
Did I miss something in web.xml or my build.xml?
Thanks!
View the original
Sorry, the actual code is:
| web-app
| display-namepackage-web/display-name
| servlet
| servlet-nameTestServlet/servlet-name
| servlet-classbeans.TestServlet/servlet-class
| /servlet
| servlet-mapping
| servlet-nameTestServlet/servlet-name
|