I have a problem and not I don´t know where I have the mistake.
I have a count in myjavaserver and I am trying to test a servlet but I don´t obtain good results the page always returns me "404 not found".
in the root of my directory I have this:
/WEB-INF/classes/com/bloodredsun/servlet/
inside of this I have this file:
ExampleServlet.class
this servlet has that:
response.getWriter().println("<b>hello</b>world!!!")"
in web.xml I have this:
<?xml version="1.0" encoding="UTF-8"?>
<!DOCTYPE web-app PUBLIC "-//Sun Microsystems, Inc.//DTD Web Application 2.3//EN" "http://java.sun.com/dtd/web-app_2_3.dtd">
<web-app>
<servlet>
<servlet-name>ExampleServlet</servlet-name>
<servlet-class>com.bloodredsun.servlet.ExampleServlet</servlet-class>
</servlet>
<servlet-mapping>
<servlet-name>ExampleServlet</servlet-name>
<url-pattern>/ExampleServlet.do</url-pattern>
</servlet-mapping>
<session-config>
<session-timeout>
30
</session-timeout>
</session-config>
<welcome-file-list>
<welcome-file>
index.jsp
</welcome-file>
<welcome-file>
index.html
</welcome-file>
<welcome-file>
index.htm
</welcome-file>
</welcome-file-list>
</web-app>
When I write this link:
http://www.myjavaserver.com/~afluben...mpleServlet.do
this message appear:
The requested URL /~aflubenov/ExampleServlet.do was not found on this server.
Do you know what is happening?
thank a lot
alan