tomcat-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Bodycombe, Andrew" <andrew.bodyco...@siemens.com>
Subject RE: Servlet mapping error
Date Fri, 27 Jun 2003 17:24:33 GMT
Try the following URL: http://<host:port>/bugtracker/servlets/LoginServlet

Hope this helps,
	Andy

-----Original Message-----
From: KKolle@gkservices.com [mailto:KKolle@gkservices.com] 
Sent: 27 June 2003 18:17
To: tomcat-user@jakarta.apache.org
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-name>LoginServlet</servlet-name>

<servlet-class>com.bugtracker.servlets.LoginServlet</servlet-class>
            </servlet>
            <servlet-mapping>
                  <servlet-name>LoginServlet</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: tomcat-user-unsubscribe@jakarta.apache.org
For additional commands, e-mail: tomcat-user-help@jakarta.apache.org

---------------------------------------------------------------------
To unsubscribe, e-mail: tomcat-user-unsubscribe@jakarta.apache.org
For additional commands, e-mail: tomcat-user-help@jakarta.apache.org


Mime
View raw message