I have a remote tomcat 6.0.24 server on which there is a web-app. Now when I type in a specific url ( website/wordbank/xmldictionaryservice ) that is mapped on the server I get the following:
HTTP Status 404 - Servlet xmldictionaryserviceservlet is not available
type: Status report
message: Servlet xmldictionaryserviceservlet is not available
description: The requested resource (Servlet xmldictionaryserviceservlet is not available) is not available.
...where I'm expecting a tiny form with a file selector and a submit button.
The relevant part of the web.xml is here:
<web-app>
...
<servlet>
<servlet-name>xmldictionaryserviceservlet</servlet-name>
<servlet-class>wordbank.servlets.XMLDictionaryServiceServlet</servlet-class>
</servlet>
...
<servlet-mapping>
<servlet-name>xmldictionaryserviceservlet</servlet-name>
<url-pattern>/xmldictionaryservice</url-pattern>
</servlet-mapping>
...
</web-app>
The contents of the xmldictionaryservice.jsp:
<html>
<body>
<form action="xmldictionaryservice" method="post" enctype="multipart/form-data">
<input name="xmlfile" type="file">
<input name="send" type="submit">
</form>
</body>
</html>
The directory tree is:
webapps
|
...
+-wordbank
|
...
+-xmldictionaryservice.jsp
+-WEB-INF
|
+-web.xml
+-classes
|
+-wordbank
|
...
+-servlets
|
...
+-XMLDictionaryServiceServlet.class
I have checked the various similar threads, but they haven't helped me. Does anyone have an idea of what is wrong here?