On Thu, 27 Mar 2003, Randy Curnutt wrote:
> Date: Thu, 27 Mar 2003 10:13:40 -0500 > From: Randy Curnutt <[EMAIL PROTECTED]> > Reply-To: Tomcat Users List <[EMAIL PROTECTED]>, > Randy Curnutt <[EMAIL PROTECTED]> > To: Tomcat Users List <[EMAIL PROTECTED]> > Subject: Tomcat 4.1.18 config for Servlet ... > > I can't get Tomcat 4.1.18 to send a form "GET" to my Servlet. My current > guess is that maybe the GET is being handled by the DefaultServlet. I > checked my log file after starting Tomcat and then having the error occur. > In the log it looks like it maps to my servlet correctly but then it adds " > default: DefaultServlet.serveResource: Serving resource '/' headers and > data". > What does this mean? Is it saying that the DefaultServlet is handling > these requests instead of my servlet? > > 2003-03-27 09:48:10 StandardHost[localhost]: Mapping request URI > '/SAWSServlet' > 2003-03-27 09:48:10 StandardHost[localhost]: Trying the longest context path > prefix > 2003-03-27 09:48:10 StandardHost[localhost]: Mapped to context > '/SAWSServlet' You don't tell us the entire URL you are submitting, or how you've got your webapps organized, so the best we can do is guess, but this line is pretty revealing -- it implies that you are using a URL like this: http://localhost:8080/SAWSServlet and you've got your web application in a directory named "/SAWSServlet" under webapps. To make this work, you need to do one of the following: * Use a different URL (http//localhost:8080/SAWSServlet/SAWSServlet) -- note that it is pretty confusing to have a webapp and a servlet using the same prefix. * Make your web application the "default" webapp for this Tomcat installation, by putting it in the "webapps/ROOT" directory. Craig --------------------------------------------------------------------- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]