Bug 42518 - Intermittent 404
Summary: Intermittent 404
Status: RESOLVED DUPLICATE of bug 43683
Alias: None
Product: Tomcat 6
Classification: Unclassified
Component: Catalina (show other bugs)
Version: 6.0.10
Hardware: PC Windows 2000
: P2 normal (vote)
Target Milestone: default
Assignee: Tomcat Developers Mailing List
URL: http://www.tictacmobile.com
Keywords:
Depends on:
Blocks:
 
Reported: 2007-05-25 03:51 UTC by Carl Zetterberg
Modified: 2008-11-03 06:30 UTC (History)
0 users



Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Carl Zetterberg 2007-05-25 03:51:16 UTC
Hitting the login page of our application intermittently (approx 1 out of 200) 
returns a 404, file not found.

Excerpt from accesslog:
h92n1fls33o276.telia.com - - [22/May/2007:09:23:54 +0200] "GET /login/ 
HTTP/1.1" 200 588
h92n1fls33o276.telia.com - - [22/May/2007:09:23:54 +0200] "GET /login/Login.jsp 
HTTP/1.1" 404 1119
h92n1fls33o276.telia.com - - [22/May/2007:09:23:57 +0200] "GET /login/ 
HTTP/1.1" 200 588
h92n1fls33o276.telia.com - - [22/May/2007:09:23:57 +0200] "GET /login/Login.jsp 
HTTP/1.1" 200 3729

The first attempt of accessing Login.jsp fails. A reload succeds.

The /login/ references a welcome file, index.jsp, containing an iframe 
referencing /login/Login.jsp

It is an HTTPS connection.

I have occasional reports of 404 failures wihin the application that a reload 
of the page cures.
Comment 1 Jonathan Leech 2007-05-25 08:25:56 UTC
Is there any code in the .jsp, a filter, etc. that could be throwing a
FileNotFoundException?  Tomcat incorrectly converts those to 404s. 
Comment 2 Carl Zetterberg 2007-05-26 01:43:51 UTC
(In reply to comment #1)
> Is there any code in the .jsp, a filter, etc. that could be throwing a
> FileNotFoundException?  Tomcat incorrectly converts those to 404s. 

There is an include in the Login.jsp:

<%@ include file="LoginLogic.jsp" %>

... with a relative path. Both Login.jsp and LoginLogic.jsp reside in the same 
directory \ROOT\login. But that would be resolved at compile time.

Also there is a 
ResourceBundle rb= ResourceBundle.getBundle("txt.user", new Locale(lang));
With the user.txt. properties residing in \ROOT\WEB-INF\classes\txt

Comment 3 Mark Thomas 2008-04-11 10:42:40 UTC
Please take a look at https://issues.apache.org/bugzilla/show_bug.cgi?id=43683 and see if it could explain this bug.
Comment 4 Mark Thomas 2008-11-03 06:30:13 UTC
I am marking this as a duplicate of 43683 as that would explain this bug and there is no information that suggests an alternative cause. If further information is available, please feel free to re-open this issue.

*** This bug has been marked as a duplicate of bug 43683 ***