I don't know how you set your web.xml, it should be ok as this:
MyServletName
com.mycompany.MyServlet
param1
value1
param2
value2
...
and as in your code, you didn't use absolute path, so this file will be found in classes directory, you should make sure this file exist in WEB-INF/classes dir.