Hello,
try it with your first URL but without the 's' on servlet, like below:

http://server:8080/mycontext/servlet/HelloWorldServlet2

I think that's is..

greetings;
Wolle
"Gilson do N. D'Elrei" wrote:

hello all,I have made a simple servlet (HelloWorldServlet2) and added it on my WEB-INF/Classes context. When I try to execute it using the url below: http://server:8080/mycontext/servlets/HelloWorldServlet2 i received "not found (404)" error. I tried also: http://server:8080/mycontext/HelloWorldServlet2http://server:8080/mycontext/WEB-INF/Classes/HelloWorldServlet2but I continue to receiving the same error.My tomcat installation is ok, cos i get to execute the examples servlet files and others.  I have added these lines in the server.xml file<Context path="/mycontext"
docBase="webapps/mycontext"
debug="0"
reloadable="true" >
</Context>

and updated these lines in the tomcat.conf  (only more a trying... )

############################## Context mapping - you need to "deploy"
# ( copy or ln -s ) the context into htdocs
##

ApJservMount /mycontext/servlet /root
<Location /mycontext/WEB-INF/ >
AllowOverride None
deny from all
</Location>

thanks in advance. 

--

Reply via email to