I'm reasonably confident that the doPost method is defined. The servlet is currently working fine under JServ at another University. Re. using Netscape - I can't think of a less pleasant form of torture :) I'll try it though. I always make a point of turning off friendly HTTP error messages in IE. The Apache thing interests me - I'll look into. It didn't occur to me to check Apache. I'd give you the URL but I'd have to give passwords and stuff... It goes like this:
servername/webapp/servletname/stringofnumbers The log for TomCat shows a valid URL - i.e. I can't see anything wrong with the URL. Worryingly, if (after I get the 404) I type a / after the string of numbers and press "Enter", the contents of the post (inc. passwords) appear in the browser as a 501 error! The rest of the servlet works fine - it's just the post method for some reason. I think it might be relevant to say that the servlet was written and installed in the mid-nineties. Nothing major has been done to it since... My Uni has agreed to "test" if the servlet will work on a more modern platform, amongst other things. I've only just started working with servlets so I'm not aware of the historical context - e.g. major changes between JServ and Apache, changes in the Java and/or Servlet spec's. Thanks, John -----Original Message----- From: Markus Spath [mailto:[EMAIL PROTECTED]] Sent: 26 February 2002 18:05 To: Tomcat Users List Subject: Re: Servlet POST results in 404 error did you define the doPost method in your servlet? if not add: ... public void doPost(HttpServletRequest request, HttpServletResponse response) { doGet(request, response); } .. hth, markus John Wadkin wrote: > I'd appreciate a response on this! I've spent time searching the Net but > haven't turned up anything useful. I don't think I've misconfigured anything > in my server.xml or web.xml... > It's just the POST method that doesn't work - no idea why! > > Suggestions please!! > > Thanks, > > John > > -----Original Message----- > From: John Wadkin [mailto:[EMAIL PROTECTED]] > Sent: 26 February 2002 16:11 > To: Tomcat Users List (E-mail) > Subject: Servlet POST results in 404 error > > > All, > > TomCat 4.0.1 > Apache 1.3 > mod_WebApp > Solaris 8 > > I have a servlet that returns a 404 error whenever a POST is sent. GET works > fine. The servlet uses sessions - not sure if this has anything to do with > it. My server.xml just defines a context and a logger. The web.xml has a > servlet name and mapping, nothing more. > The servlet was originally written for JServ - could this have something to > do with it? > > There's nothing in the logs. > > I'm not a servlet programmer so I have no ideas! > > Any suggestions?? > > Thanks, > > John > > -- > To unsubscribe: <mailto:[EMAIL PROTECTED]> > For additional commands: <mailto:[EMAIL PROTECTED]> > Troubles with the list: <mailto:[EMAIL PROTECTED]> > > -- > To unsubscribe: <mailto:[EMAIL PROTECTED]> > For additional commands: <mailto:[EMAIL PROTECTED]> > Troubles with the list: <mailto:[EMAIL PROTECTED]> > > -- To unsubscribe: <mailto:[EMAIL PROTECTED]> For additional commands: <mailto:[EMAIL PROTECTED]> Troubles with the list: <mailto:[EMAIL PROTECTED]> -- To unsubscribe: <mailto:[EMAIL PROTECTED]> For additional commands: <mailto:[EMAIL PROTECTED]> Troubles with the list: <mailto:[EMAIL PROTECTED]>
