FW: My very first servlet cannot be run

2005-01-28 Thread Van Den Bemt, Patrick \(P.\)
Hi there, I have got an issue running a very first servlet on tomcat5. The valid Servlet code for Log4jTester : package test; public class Log4jTester { public void doGet(HttpServletRequest request, HttpServletResponse response) throws ServletException, IOException { } } The

Re: FW: My very first servlet cannot be run

2005-01-28 Thread Kwok Peng Tuck
Hi Patrick, You use should use the servlet name you specified rather than the class name. Do you need the servlet-mapping as well ? Here's a example from tomcat: http://cvs.apache.org/viewcvs.cgi/jakarta-tomcat-catalina/webapps/admin/WEB-INF/web.xml?view=markup Van

Re: FW: My very first servlet cannot be run

2005-01-28 Thread Caroline Jen
Hi Patrick, I suppose that your compiled Log4jTester in the test package is under this directory: C:\tomcat-5.x/webapps/ROOT/WEB-INF/classes The mapping in the web.xml file should be: servlet servlet-namelog4j/servlet-name servlet-classtest.Log4jTester/servlet-class