Howdy, You need a servlet mapping element for NKServlet in your web.xml. You should declare a DTD in your web.xml. Loko at your tomcat log, where it's probably telling you it doesn't like your web.xml and is deploying your webapp with default properties, i.e. no mapping for NKServlet.
Yoav Shapira Millennium ChemInformatics >-----Original Message----- >From: Nauman Khan [mailto:[EMAIL PROTECTED] >Sent: Wednesday, September 17, 2003 4:08 PM >To: [EMAIL PROTECTED] >Subject: Servlet Not Found in Tomcat 4.1.24 > >Hi, >I have a problem to run Servlet on Tomcat 4.1.24,I >have mentioned the whole problem,please let me know >how could I resolve this issue. > > >I have created a folder nauman and placed two files >index.html and NKServlet.class with NKServlet.java in >this way >c:\tomcat4.1\webapps\nauman\index.html >c:\tomcat4.1\webapps\nauman\WEB-INF\classes\NKServlet.class >c:\tomcat4.1\webapps\nauman\WEB-INF\classes\NKServlet.java >c:\tomcat4.1\webapps\nauman\WEB-INF\web.xml >and I wrote web.xml ><web-app> ><servlet> ><servlet-name>NKServlet</servlet-name> ><servlet-class>NKServlet</servlet-class> ></servlet> ></web-app> >When i run the >http://localhost:8080/nauman/index.html, it works fine >but when i click the submit button which takes me to >Servlet, It doesn't work, >It says 404 NKServlet not found. I tried to run with >different way but it doesn't work >code of index.html is ><form name="Newfrm" action="servlet/NKServlet" >method="POST"> ><input type=submit value="submit"> ></form> > >I did this with href to use get method but It doesn't >work. >Please help me to find where I'm making mistakes to >run the servlet. > >Thanks in Advance, >Nauman > > > >______________________________________________________________________ >Post your free ad now! http://personals.yahoo.ca > >--------------------------------------------------------------------- >To unsubscribe, e-mail: [EMAIL PROTECTED] >For additional commands, e-mail: [EMAIL PROTECTED] This e-mail, including any attachments, is a confidential business communication, and may contain information that is confidential, proprietary and/or privileged. This e-mail is intended only for the individual(s) to whom it is addressed, and may not be saved, copied, printed, disclosed or used by anyone else. If you are not the(an) intended recipient, please immediately delete this e-mail from your computer system and notify the sender. Thank you. --------------------------------------------------------------------- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
