Re: Webapp reloading issue and intermittent 404 errors

2010-08-09 Thread Tomislav Petrović
Caldarale, Charles R said on 8.7.2010 3:31: From: Caldarale, Charles R Subject: RE: Webapp reloading issue and intermittent 404 errors Given the test on lines 129-130, it is impossible to have a -1 at line 131 - unless there's a JVM bug. 6u21 was just released tonight, so you might give

Re: Webapp reloading issue and intermittent 404 errors

2010-07-07 Thread Tomislav Petrović
Tomislav Petrović said on 30.6.2010 16:27: Forgot to say: Tomcat service is started with following parameters: JVM: have to check whether server or client, not sure at the moment. Server, one would hope. Did you find out the exact version? Yup JVM path for tomcat is

Re: Webapp reloading issue and intermittent 404 errors

2010-07-07 Thread Pid
On 07/07/2010 11:07, Tomislav Petrović wrote: Tomislav Petrović said on 30.6.2010 16:27: Forgot to say: Tomcat service is started with following parameters: JVM: have to check whether server or client, not sure at the moment. Server, one would hope. Did you find out the exact version?

Re: Webapp reloading issue and intermittent 404 errors

2010-07-07 Thread Tomislav Petrović
Pid said on 7.7.2010 12:26: On 07/07/2010 11:07, Tomislav Petrović wrote: Tomislav Petrović said on 30.6.2010 16:27: Forgot to say: Tomcat service is started with following parameters: JVM: have to check whether server or client, not sure at the moment. Server, one would hope. Did you find

Re: Webapp reloading issue and intermittent 404 errors

2010-07-07 Thread Pid
On 07/07/2010 11:35, Tomislav Petrović wrote: Pid said on 7.7.2010 12:26: On 07/07/2010 11:07, Tomislav Petrović wrote: Tomislav Petrović said on 30.6.2010 16:27: Forgot to say: Tomcat service is started with following parameters: JVM: have to check whether server or client, not sure at the

Re: Webapp reloading issue and intermittent 404 errors

2010-07-07 Thread André Warnier
Pid wrote: .. I wondered if it doesn't like spaces in File paths. I did not want to ask that question. Good that someone did. - To unsubscribe, e-mail: users-unsubscr...@tomcat.apache.org For additional commands, e-mail:

RE: Webapp reloading issue and intermittent 404 errors

2010-07-07 Thread Caldarale, Charles R
From: Tomislav Petrović [mailto:t.petro...@inet.hr] Subject: Re: Webapp reloading issue and intermittent 404 errors Don't know have to check with customer, but actual index varies in each occurrence of stack trace, sometimes it is even -1. Here's the code of interest: 127 while (true

Re: Webapp reloading issue and intermittent 404 errors

2010-07-07 Thread Konstantin Kolinko
2010/6/30 Tomislav Petrović t.petro...@inet.hr: Pid said on 30.6.2010 13:06: On 30/06/2010 11:59, Tomislav Petrović wrote:        Context path=/some_webapp docBase=/some_webapp debug=0 reloadable=true crossContext=true        ResourceLink global=jdbc/SomeDB name=jdbc/SomeDB

RE: Webapp reloading issue and intermittent 404 errors

2010-07-07 Thread Caldarale, Charles R
From: Caldarale, Charles R Subject: RE: Webapp reloading issue and intermittent 404 errors Given the test on lines 129-130, it is impossible to have a -1 at line 131 - unless there's a JVM bug. 6u21 was just released tonight, so you might give that a shot and see if the problem has been

Re: Webapp reloading issue and intermittent 404 errors

2010-07-07 Thread Konstantin Kolinko
2010/7/8 Caldarale, Charles R chuck.caldar...@unisys.com: From: Caldarale, Charles R Subject: RE: Webapp reloading issue and intermittent 404 errors Given the test on lines 129-130, it is impossible to have a -1 at line 131 - unless there's a JVM bug. 6u21 was just released tonight, so you

RE: Webapp reloading issue and intermittent 404 errors

2010-07-07 Thread Caldarale, Charles R
From: Konstantin Kolinko [mailto:knst.koli...@gmail.com] Subject: Re: Webapp reloading issue and intermittent 404 errors Oh. It matches this case. All three seem to. The issue names mention SSE 4.2, so it supposedly happens only on certain families of Intel CPUs. Right - just Nehalem

Re: Webapp reloading issue and intermittent 404 errors

2010-06-30 Thread Tomislav Petrović
Pid said on 29.6.2010 23:20: On 29/06/2010 19:29, Konstantin Kolinko wrote: 2010/6/29 Caldarale, Charles Rchuck.caldar...@unisys.com: From: Tomislav Petrović [mailto:t.petro...@inet.hr] Subject: Re: Webapp reloading issue and intermittent 404 errors

Re: Webapp reloading issue and intermittent 404 errors

2010-06-30 Thread Tomislav Petrović
Tomislav Petrović said on 30.6.2010 12:59: Pid said on 29.6.2010 23:20: On 29/06/2010 19:29, Konstantin Kolinko wrote: 2010/6/29 Caldarale, Charles Rchuck.caldar...@unisys.com: From: Tomislav Petrović [mailto:t.petro...@inet.hr] Subject: Re: Webapp reloading issue and intermittent 404 errors

Re: Webapp reloading issue and intermittent 404 errors

2010-06-30 Thread Pid
On 30/06/2010 11:59, Tomislav Petrović wrote: Context path=/some_webapp docBase=/some_webapp debug=0 reloadable=true crossContext=true ResourceLink global=jdbc/SomeDB name=jdbc/SomeDB type=javax.sql.DataSource / ResourceLink global=jdbc/SomeDB2 name=jdbc/SomeDB2

Re: Webapp reloading issue and intermittent 404 errors

2010-06-30 Thread Pid
: Webapp reloading issue and intermittent 404 errors org.apache.catalina.util.RequestUtil.normalize(RequestUtil.java:131) IIRC, you are not the first person to report an exception at this spot in the code. (Unfortunately, I can't locate the other thread at the moment, but it was fairly recent

Re: Webapp reloading issue and intermittent 404 errors

2010-06-30 Thread Tomislav Petrović
...@inet.hr] Subject: Re: Webapp reloading issue and intermittent 404 errors org.apache.catalina.util.RequestUtil.normalize(RequestUtil.java:131) IIRC, you are not the first person to report an exception at this spot in the code. (Unfortunately, I can't locate the other thread at the moment

Re: Webapp reloading issue and intermittent 404 errors

2010-06-30 Thread Tomislav Petrović
Pid said on 30.6.2010 13:06: On 30/06/2010 11:59, Tomislav Petrović wrote: Context path=/some_webapp docBase=/some_webapp debug=0 reloadable=true crossContext=true ResourceLink global=jdbc/SomeDB name=jdbc/SomeDB type=javax.sql.DataSource / ResourceLink

RE: Webapp reloading issue and intermittent 404 errors

2010-06-30 Thread Caldarale, Charles R
From: Pid [mailto:p...@pidster.com] Subject: Re: Webapp reloading issue and intermittent 404 errors JVM: have to check whether server or client, not sure at the moment. Server, one would hope. Probably not - it's a 32-bit Windows, and you have to build your own JVM if you want a server

Re: Webapp reloading issue and intermittent 404 errors

2010-06-30 Thread Pid
On 30/06/2010 13:38, Caldarale, Charles R wrote: From: Pid [mailto:p...@pidster.com] Subject: Re: Webapp reloading issue and intermittent 404 errors JVM: have to check whether server or client, not sure at the moment. Server, one would hope. Probably not - it's a 32-bit Windows, and you

Re: Webapp reloading issue and intermittent 404 errors

2010-06-30 Thread David kerber
On 6/30/2010 8:41 AM, Pid wrote: On 30/06/2010 13:38, Caldarale, Charles R wrote: From: Pid [mailto:p...@pidster.com] Subject: Re: Webapp reloading issue and intermittent 404 errors JVM: have to check whether server or client, not sure at the moment. Server, one would hope. Probably

RE: Webapp reloading issue and intermittent 404 errors

2010-06-30 Thread Caldarale, Charles R
From: Pid [mailto:p...@pidster.com] Subject: Re: Webapp reloading issue and intermittent 404 errors Probably not - it's a 32-bit Windows, and you have to build your own JVM if you want a server version for that. Really?! I thought later versions had the server JVM too (for some reason

Re: Webapp reloading issue and intermittent 404 errors

2010-06-30 Thread David kerber
On 6/30/2010 8:38 AM, Caldarale, Charles R wrote: From: Pid [mailto:p...@pidster.com] Subject: Re: Webapp reloading issue and intermittent 404 errors JVM: have to check whether server or client, not sure at the moment. Server, one would hope. Probably not - it's a 32-bit Windows, and you

RE: Webapp reloading issue and intermittent 404 errors

2010-06-30 Thread Caldarale, Charles R
From: Tomislav Petrović [mailto:t.petro...@inet.hr] Subject: Re: Webapp reloading issue and intermittent 404 errors Do you actually have an 'endorsed' directory in your Tomcat installation? What's in it if you do? No I don't, this folder doesn't exist, will have to investigate who

Re: Webapp reloading issue and intermittent 404 errors

2010-06-30 Thread Pid
...@unisys.com: From: Tomislav Petrović [mailto:t.petro...@inet.hr] Subject: Re: Webapp reloading issue and intermittent 404 errors org.apache.catalina.util.RequestUtil.normalize(RequestUtil.java:131) IIRC, you are not the first person to report an exception at this spot in the code. (Unfortunately

RE: Webapp reloading issue and intermittent 404 errors

2010-06-30 Thread Caldarale, Charles R
From: Tomislav Petrović [mailto:t.petro...@inet.hr] Subject: Re: Webapp reloading issue and intermittent 404 errors Can you post me how my new server.xml should look and how some_webapp/META-INF/context.xml should look. Just remove all Context elements from server.xml - it's bad practice

Re: Webapp reloading issue and intermittent 404 errors

2010-06-30 Thread Pid
On 30/06/2010 13:07, Tomislav Petrović wrote: Pid said on 30.6.2010 13:06: On 30/06/2010 11:59, Tomislav Petrović wrote: Context path=/some_webapp docBase=/some_webapp debug=0 reloadable=true crossContext=true ResourceLink global=jdbc/SomeDB name=jdbc/SomeDB type=javax.sql.DataSource

Re: Webapp reloading issue and intermittent 404 errors

2010-06-30 Thread Tomislav Petrović
Pid said on 30.6.2010 15:05: On 30/06/2010 13:07, Tomislav Petrović wrote: Pid said on 30.6.2010 13:06: On 30/06/2010 11:59, Tomislav Petrović wrote: Context path=/some_webapp docBase=/some_webapp debug=0 reloadable=true crossContext=true ResourceLink global=jdbc/SomeDB

Re: Webapp reloading issue and intermittent 404 errors

2010-06-30 Thread Tomislav Petrović
Caldarale, Charles R said on 30.6.2010 15:03: From: Tomislav Petrović [mailto:t.petro...@inet.hr] Subject: Re: Webapp reloading issue and intermittent 404 errors Can you post me how my new server.xml should look and how some_webapp/META-INF/context.xml should look. Just remove allContext

RE: Webapp reloading issue and intermittent 404 errors

2010-06-30 Thread Caldarale, Charles R
From: Tomislav Petrović [mailto:t.petro...@inet.hr] Subject: Re: Webapp reloading issue and intermittent 404 errors any idea what caused original problem? And if I can provide any additional info to help resolve it. Again, we believe this to be a JVM bug, not specific to Tomcat. Since it's

Re: Webapp reloading issue and intermittent 404 errors

2010-06-30 Thread Tomislav Petrović
Forgot to say: Tomcat service is started with following parameters: JVM: have to check whether server or client, not sure at the moment. Server, one would hope. Did you find out the exact version? Yup JVM path for tomcat is ..\jdk1.6.0_18\jre\bin\server\jvm.dll, so Java 6 update 18

Re: Webapp reloading issue and intermittent 404 errors

2010-06-29 Thread Tomislav Petrović
Tomislav Petrović said on 28.6.2010 15:46: Caldarale, Charles R said on 28.6.2010 15:32: Seems to me it is related to web app reloading but this is my blind guess. What makes you suspicious that reloading is going on? Just my VERY BIG AND BLIND guess based on classes involved in

Re: Webapp reloading issue and intermittent 404 errors

2010-06-29 Thread Pid
On 29/06/2010 11:51, Tomislav Petrović wrote: Tomislav Petrović said on 28.6.2010 15:46: Caldarale, Charles R said on 28.6.2010 15:32: Seems to me it is related to web app reloading but this is my blind guess. What makes you suspicious that reloading is going on? Just my VERY BIG AND

Re: Webapp reloading issue and intermittent 404 errors

2010-06-29 Thread Tomislav Petrović
Pid said on 29.6.2010 13:36: On 29/06/2010 11:51, Tomislav Petrović wrote: Tomislav Petrović said on 28.6.2010 15:46: Caldarale, Charles R said on 28.6.2010 15:32: Seems to me it is related to web app reloading but this is my blind guess. What makes you suspicious that reloading is going

Re: Webapp reloading issue and intermittent 404 errors

2010-06-29 Thread Mark Thomas
On 29/06/2010 12:51, Tomislav Petrović wrote: This is problematic code (part of normalize method): // Resolve occurrences of // in the normalized path while (true) { int index = normalized.indexOf(//); if (index 0) break;

RE: Webapp reloading issue and intermittent 404 errors

2010-06-29 Thread Caldarale, Charles R
From: Tomislav Petrović [mailto:t.petro...@inet.hr] Subject: Re: Webapp reloading issue and intermittent 404 errors org.apache.catalina.util.RequestUtil.normalize(RequestUtil.java:131) IIRC, you are not the first person to report an exception at this spot in the code. (Unfortunately, I

Re: Webapp reloading issue and intermittent 404 errors

2010-06-29 Thread Konstantin Kolinko
2010/6/29 Caldarale, Charles R chuck.caldar...@unisys.com: From: Tomislav Petrović [mailto:t.petro...@inet.hr] Subject: Re: Webapp reloading issue and intermittent 404 errors org.apache.catalina.util.RequestUtil.normalize(RequestUtil.java:131) IIRC, you are not the first person to report

Re: Webapp reloading issue and intermittent 404 errors

2010-06-29 Thread Pid
On 29/06/2010 19:29, Konstantin Kolinko wrote: 2010/6/29 Caldarale, Charles R chuck.caldar...@unisys.com: From: Tomislav Petrović [mailto:t.petro...@inet.hr] Subject: Re: Webapp reloading issue and intermittent 404 errors org.apache.catalina.util.RequestUtil.normalize(RequestUtil.java:131

Webapp reloading issue and intermittent 404 errors

2010-06-28 Thread Tomislav Petrović
I have two problems with a fairly complex webapp. I don't know if they are related or not. Webapp has been deployed on several dozens of customers without problem and tested in our lab on several configurations without problem. However one customer has following two issues. Tomcat is: Apache

Re: Webapp reloading issue and intermittent 404 errors

2010-06-28 Thread Pid
On 28/06/2010 14:25, Tomislav Petrović wrote: I have two problems with a fairly complex webapp. I don't know if they are related or not. Webapp has been deployed on several dozens of customers without problem and tested in our lab on several configurations without problem. However one

RE: Webapp reloading issue and intermittent 404 errors

2010-06-28 Thread Caldarale, Charles R
From: Tomislav Petrović [mailto:t.petro...@inet.hr] Subject: Webapp reloading issue and intermittent 404 errors Tomcat is: Apache Tomcat/6.0.24, Java is 6 don't know update number exactly but can find out if necessary. Try moving to 6.0.26, or 6.0.27 when it comes out in a few days

Webapp reloading issue and intermittent 404 errors

2010-06-28 Thread Tomislav Petrović
First of all apologies for problems with my first post Posting again completely new. I have two problems with a fairly complex webapp. I don't know if they are related or not. Webapp has been deployed on several dozens of customers without problem and tested in our lab on several

Re: Webapp reloading issue and intermittent 404 errors

2010-06-28 Thread Tomislav Petrović
Caldarale, Charles R said on 28.6.2010 15:32: From: Tomislav Petrović [mailto:t.petro...@inet.hr] Subject: Webapp reloading issue and intermittent 404 errors Tomcat is: Apache Tomcat/6.0.24, Java is 6 don't know update number exactly but can find out if necessary. Try moving to 6.0.26

Re: Webapp reloading issue and intermittent 404 errors

2010-06-28 Thread Pid
On 28/06/2010 14:46, Tomislav Petrović wrote: Caldarale, Charles R said on 28.6.2010 15:32: From: Tomislav Petrović [mailto:t.petro...@inet.hr] Subject: Webapp reloading issue and intermittent 404 errors Tomcat is: Apache Tomcat/6.0.24, Java is 6 don't know update number exactly but can find

Re: Webapp reloading issue and intermittent 404 errors

2010-06-28 Thread Tomislav Petrović
Pid said on 28.6.2010 15:49: On 28/06/2010 14:46, Tomislav Petrović wrote: Caldarale, Charles R said on 28.6.2010 15:32: From: Tomislav Petrović [mailto:t.petro...@inet.hr] Subject: Webapp reloading issue and intermittent 404 errors Tomcat is: Apache Tomcat/6.0.24, Java is 6 don't know update

Re: Webapp reloading issue and intermittent 404 errors

2010-06-28 Thread Pid
On 28/06/2010 14:51, Tomislav Petrović wrote: Pid said on 28.6.2010 15:49: On 28/06/2010 14:46, Tomislav Petrović wrote: Caldarale, Charles R said on 28.6.2010 15:32: From: Tomislav Petrović [mailto:t.petro...@inet.hr] Subject: Webapp reloading issue and intermittent 404 errors Tomcat