Have you restarted the ch1 context/tomcat server after placing the servlet class in the right place ? (Or when you put the changed web.xml there context will get restarted automatically).
Everytime I tried something I shutdown Tomcat first, the I restarted. Is there anything else to do to restart the context/Tomcat?
I did not understand what you said about the web.xml file
As I come to understand the thing is:
Everything that Tomcat will use must be in the directory "webapps"
Inside that directory there must be a directory per app.
Inside each app root directory there must be a WEB-INF directory. Inside it there must be a "classes" directory and under it there must be directories that matches the packages you are using.
Static context that you intent your client to use must be in the root or a directory structure not under WEB-INF.
The web.xml must be in the app root directory.
Right? Is that so for every Tomcat version or it may have changed?
I assume you have mistyped closing tag in line
<url-pattern>/Serv1</servlet-class>
?
What does your tomcat error log say?
[quote=Carlos Obregon]I'm not sure I'm following.
Everytime I tried something I shutdown Tomcat first, the I restarted. Is there anything else to do to restart the context/Tomcat?
I did not understand what you said about the web.xml file
As I come to understand the thing is:
Everything that Tomcat will use must be in the directory "webapps"
Inside that directory there must be a directory per app.
Inside each app root directory there must be a WEB-INF directory. Inside it there must be a "classes" directory and under it there must be directories that matches the packages you are using.
Static context that you intent your client to use must be in the root or a directory structure not under WEB-INF.
The web.xml must be in the app root directory.
Right? Is that so for every Tomcat version or it may have changed?