your error "noclassdeffound" means that tomcat cannot find assign1a.RPCServlet when necessary. so that tomcat can find the class in question, it must be in the path of the tomcat class. The best way to put it there is to make sure that it is in the classes folder. however, finding this folder can be a little difficult: there are several options, depending on which system you are on, how you are developing and how you are deploying.
start by looking in the tomcat installation folder under a folder called webapps. there, find the folder named [context], as in your URL http: // localhost: 8080 / [context] / RPC. you see? the folder should be named by the url you are using. (it would be easier to give accurate help if you provided accurate information, itβs bad not knowing the URL that you are using.) in this folder, find the WEB-INF folder, and there you should find the folder with the class names, in this the folder should be a folder named assign1a, and there you should have the RPCServlet.class file, which is a compiled file.
therefore, in the abstract short: [tomcat_install_folder] / webapps / [context] /WEB-INF/classes/assign1a/RPCServlet.class is missing. oh, and slashes are, of course, backslashes on windows :)
eclipse with dynamic web project
also, if you are developing in eclipse and using the tomcat server inside eclipse, your tomcat folder is actually located in a completely different place. you will find it under the eclipse workspace in the .metadata / .plugins / org.eclipse.wst.server.core / tmp0 / wtpwebapps / [context] folder, where tmp0 could be tmp1 or something else, depending on how much tomcat servers you started into the eclipse workspace.
if you still cannot understand, please write more information about your setup (i.e. development idea, deployment scenario, visit URL, web.xml)
davogotland
source share