tomcat-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From John Wadkin <j.wad...@hud.ac.uk>
Subject RE: Servlet POST results in 404 error
Date Wed, 27 Feb 2002 00:40:40 GMT
keith,

Yeah - Randy Layman solved it. The servlet mapping was setup to servletname/
instead of servletname/* The answer's obvious now! Whenever the servlet
created a URL like:

..../servletname/stringofnumbers

It stopped working cos that particular URL pattern wasn't mapped. It just so
happens that this only occurs when the servlet uses doPost, hence me
thinking it was a POST problem!

Re showing you the post method - I'd have trouble finding it :) The servlet
is incredibly complex - loads of classes. I'm a pretty naff Java programmer,
which doesn't help! I've only seen parts of the code - frightening stuff!
The servlet is an electronic Personal Development Planning (PDP) tool called
LUSID. It allows the user to record experiences and achievements, perform
skills audits, and plan goals and activities. Pages are create in an XML
language (lusidml) which the servlet then parses. Everything's stored in an
Oracle database. It's a bit rough around the edges and the interface is
pretty poor from a HCI perspective but otherwise it's pretty good.

Thanks,

John

> -----Original Message-----
> From: Keith Ng [mailto:woonbock@yahoo.com]
> Sent: 02 March 2002 20:22
> To: Tomcat Users List
> Subject: RE: Servlet POST results in 404 error
> 
> 
> Hi John, have u solved it already?
> 
> someone here said that u might not have define yr post method
> 
> would u care to show us yr post mthod?(whole defination) pls do the
> following.
> add a System.out.println("post method invoked"); under your 
> post method
> implemention for us to see.
> Is tat post method even invoked?
> 
> -----Original Message-----
> From: John Wadkin [mailto:j.wadkin@hud.ac.uk]
> Sent: Wednesday, February 27, 2002 12:11 AM
> 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:tomcat-user-unsubscribe@jakarta.apache.org>
> For additional commands: <mailto:tomcat-user-help@jakarta.apache.org>
> Troubles with the list: <mailto:tomcat-user-owner@jakarta.apache.org>
> 
> 
> 
> _________________________________________________________
> Do You Yahoo!?
> Get your free @yahoo.com address at http://mail.yahoo.com
> 
> 
> --
> To unsubscribe:   <mailto:tomcat-user-unsubscribe@jakarta.apache.org>
> For additional commands: <mailto:tomcat-user-help@jakarta.apache.org>
> Troubles with the list: <mailto:tomcat-user-owner@jakarta.apache.org>
> 

--
To unsubscribe:   <mailto:tomcat-user-unsubscribe@jakarta.apache.org>
For additional commands: <mailto:tomcat-user-help@jakarta.apache.org>
Troubles with the list: <mailto:tomcat-user-owner@jakarta.apache.org>


Mime
View raw message