Servlet mapping error
I'm trying to map a Servlet URL and then invoke that Servlet in my web app. When I attempt this, I'm getting the following error in my browser: [start error] HTTP Status 404 - /servlets/LoginServlet type Status report message /servlets/LoginServlet description The requested resource (/servlets/LoginServlet) is not available. Apache Tomcat/4.1.24 [end error] Under tomcat home/webapps/bugtracker/WEB-INF/web.xml, I have the following snippet of lines: servlet servlet-nameLoginServlet/servlet-name servlet-classcom.bugtracker.servlets.LoginServlet/servlet-class /servlet servlet-mapping servlet-nameLoginServlet/servlet-name url-pattern/servlets/LoginServlet/url-pattern /servlet-mapping Under tomcat home/webapps/bugtracker/WEB-INF/classes, I have: /com/bugtracker/servlets/LoginServlet.class In my login.jsp, I have this line: form method=post action=/servlets/LoginServlet Can anyone give me suggestions on what I might be doing wrong? Thanks - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
RE: Servlet mapping error
Try the following URL: http://host:port/bugtracker/servlets/LoginServlet Hope this helps, Andy -Original Message- From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] Sent: 27 June 2003 18:17 To: [EMAIL PROTECTED] Subject: Servlet mapping error I'm trying to map a Servlet URL and then invoke that Servlet in my web app. When I attempt this, I'm getting the following error in my browser: [start error] HTTP Status 404 - /servlets/LoginServlet type Status report message /servlets/LoginServlet description The requested resource (/servlets/LoginServlet) is not available. Apache Tomcat/4.1.24 [end error] Under tomcat home/webapps/bugtracker/WEB-INF/web.xml, I have the following snippet of lines: servlet servlet-nameLoginServlet/servlet-name servlet-classcom.bugtracker.servlets.LoginServlet/servlet-class /servlet servlet-mapping servlet-nameLoginServlet/servlet-name url-pattern/servlets/LoginServlet/url-pattern /servlet-mapping Under tomcat home/webapps/bugtracker/WEB-INF/classes, I have: /com/bugtracker/servlets/LoginServlet.class In my login.jsp, I have this line: form method=post action=/servlets/LoginServlet Can anyone give me suggestions on what I might be doing wrong? Thanks - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
RE: Servlet mapping error
Howdy, Under tomcat home/webapps/bugtracker/WEB-INF/web.xml, I have the following snippet of lines: servlet servlet-nameLoginServlet/servlet-name servlet-classcom.bugtracker.servlets.LoginServlet/servlet-class /servlet servlet-mapping servlet-nameLoginServlet/servlet-name url-pattern/servlets/LoginServlet/url-pattern /servlet-mapping Under tomcat home/webapps/bugtracker/WEB-INF/classes, I have: /com/bugtracker/servlets/LoginServlet.class In my login.jsp, I have this line: form method=post action=/servlets/LoginServlet The action URL is wrong, should be /bugtracker/servlets/LoginServlet Yoav Shapira 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]
RE: Servlet mapping error
Thanks, I knew it was somthing simple/stupid. Works now. Shapira, Yoav [EMAIL PROTECTED]To: Tomcat Users List [EMAIL PROTECTED] .comcc: Subject: RE: Servlet mapping error 06/27/2003 12:35 PM Please respond to Tomcat Users List Howdy, Under tomcat home/webapps/bugtracker/WEB-INF/web.xml, I have the following snippet of lines: servlet servlet-nameLoginServlet/servlet-name servlet-classcom.bugtracker.servlets.LoginServlet/servlet-class /servlet servlet-mapping servlet-nameLoginServlet/servlet-name url-pattern/servlets/LoginServlet/url-pattern /servlet-mapping Under tomcat home/webapps/bugtracker/WEB-INF/classes, I have: /com/bugtracker/servlets/LoginServlet.class In my login.jsp, I have this line: form method=post action=/servlets/LoginServlet The action URL is wrong, should be /bugtracker/servlets/LoginServlet Yoav Shapira 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] - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]