The servlet works fine. Check your web.xml file in %CATALINA_HOME%\webapps\myApplicationName\WEB-INF.
You must include the servlet descriptor:
<servlet>
<servlet-name>MyServlet</servlet-name>
<servlet-class>com.MyPackage.MyTest.MyServlet</servlet-class>
</servlet>
and a servlet mapping entry
<servlet-mapping>
<servlet-name>MyServlet</servlet-name>
<url-pattern>/MyServlet</url-pattern>
</servlet-mapping>
Then you can call the servlet with the url
http://myhost:myport/myApplicationName/MyServlet
after restarting Tomcat.
When you ask a question in a newsgroup, you should always include which version of software you are using, which platform. Also, check your logfiles for any specific error messages.