After compiling the java file "UserData.java",you will get one class file="UserData.class".Make sure that the UserData.class is located in User under class.
ie the location of the file UserData.java and UserData.class must be-
..\Tomcat6.0\webapps\ROOT\WEB-INF\classes\UserData.java and
..\Tomcat6.0\webapps\ROOT\WEB-INF\classes\UserData.class
If "classes" is not present in WEB-INF,you can create a new folder named "classes" to store these files.Restart the tomcat to view changes.