Like a lot of other programmers, I have proble with running Servlet with Tomcat. Here is my configuration:
The name of the directory for my application is:
test
classes are in:
webapps\test\WEB-INF\classes\visit1\ServletVisit1.class
where visit1 is the package.
my web.xml is:
<web-app>
<servlet>
<servlet-name>servletvisit1</servlet-name>
<servlet-class>visit1.ServletVisit1</servlet-class>
</servlet>
<servlet-mapping>
<servlet-name>servletvisit1</servlet-name>
<url-pattern>/servlet/ServletVisit1</url-pattern>
</servlet-mapping>
</web-app>
I'm calling with the following URL:
/servlet/visit1.ServletVisit1
and I received the famous The requested resource (/servlet/visit1.ServletVisit1) is not available.
Is somebody knows what is possibly wrong with this ?
I'm not an expert at all with all this stuff so, it's possible that I forgot something very simple but any help will be helpful,
Thank you in advance.
The name of the directory for my application is:
test
classes are in:
webapps\test\WEB-INF\classes\visit1\ServletVisit1.class
where visit1 is the package.
my web.xml is:
<web-app>
<servlet>
<servlet-name>servletvisit1</servlet-name>
<servlet-class>visit1.ServletVisit1</servlet-class>
</servlet>
<servlet-mapping>
<servlet-name>servletvisit1</servlet-name>
<url-pattern>/servlet/ServletVisit1</url-pattern>
</servlet-mapping>
</web-app>
I'm calling with the following URL:
/servlet/visit1.ServletVisit1
and I received the famous The requested resource (/servlet/visit1.ServletVisit1) is not available.
Is somebody knows what is possibly wrong with this ?
I'm not an expert at all with all this stuff so, it's possible that I forgot something very simple but any help will be helpful,
Thank you in advance.