Re: Apache/mod_jk serves random files from tomcat

2010-10-09 Thread Pid
On 08/10/2010 04:40, domiguo wrote: > > Has this thread has a clear answer now? You resurrected a thread which is over a year old. If you have a problem, please start a new email and describe the details and your environment. p 0x62590808.asc Description: application/pgp-keys signature.asc

Re: Apache/mod_jk serves random files from tomcat

2010-10-07 Thread domiguo
Has this thread has a clear answer now? -- View this message in context: http://old.nabble.com/Apache-mod_jk-serves-random-files-from-tomcat-tp18385568p29912221.html Sent from the Tomcat - User mailing list archive at Nabble.com.

Re: Apache/mod_jk serves random files from tomcat

2009-04-17 Thread Jakob Ericsson
Problem found in mod_proxy_ajp too, https://issues.apache.org/bugzilla/show_bug.cgi?id=46949 /Jakob On Fri, Mar 27, 2009 at 10:33 PM, LukeK wrote: > > > Rainer Jung-3 wrote: >> >> Thanks very much for the feedback. Considering the severity of the >> problem, if you could give us another update

Re: Apache/mod_jk serves random files from tomcat

2009-03-27 Thread LukeK
Rainer Jung-3 wrote: > > Thanks very much for the feedback. Considering the severity of the > problem, if you could give us another update at a time you think is > appropriate (depending on how often the problem happened before). It's been about a month now since we dropped libtcnative, and t

Re: Apache/mod_jk serves random files from tomcat

2009-03-20 Thread SQ
Rainer, Rainer Jung-3 wrote: > > I guess you mean the lines with the 503 are the bad responses? But those > do not indicate, that the probe gets back the page requested by someone > else, it shows that the web server or Tomcat throw an HTTP error, namely > 503. In this case I would guess, th

Re: Apache/mod_jk serves random files from tomcat

2009-03-13 Thread Rainer Jung
On 13.03.2009 18:14, Rainer Jung wrote: Not sure the answer to that. Both were installed by other people, who either don't recall their orgins, or are no longer employed here. I'm working on building the 1.2.27 from source right now. We're x86, not sparc, by the way. OK. For Solaris x86 we neve

Re: Apache/mod_jk serves random files from tomcat

2009-03-13 Thread Rainer Jung
On 13.03.2009 17:50, SQ wrote: Rainer Jung-3 wrote: Just to make sure, we are talking about the same kind of observation: could you please describe independently, how the observed problem looks like in your case? In development, the developers are getting other people pages. So user1 request

Re: Apache/mod_jk serves random files from tomcat

2009-03-13 Thread SQ
Hi Rainer, Thanks for the reply. Answers to your questions below, Rainer Jung-3 wrote: > > Jus to make sure, we are talking about the same kind of observation: > could you please describe independently, how the observed problem looks > like in your case? > In development, the developers ar

Re: Apache/mod_jk serves random files from tomcat

2009-03-13 Thread Yuval Perlov
We were not using APR. Since this was a live project I had no choice but switch to regular http proxy which doesn't work as well as AJP (speed/functionality) but is consistent. Alas, as much as I'd like to help with solving this issue, I wasn't able to reproduce in a test environment and the

Re: Apache/mod_jk serves random files from tomcat

2009-03-12 Thread Rainer Jung
On 12.03.2009 16:42, SQ wrote: Good to see others are seeing the same problem that’s been driving us crazy and is slowly become a very serious issue. Admittedly, my knowledge on this whole area is limited, but I’ll try my best to provide as much info as possible to help solve the problem. Here

Re: Apache/mod_jk serves random files from tomcat

2009-03-12 Thread SQ
Good to see others are seeing the same problem that’s been driving us crazy and is slowly become a very serious issue. Admittedly, my knowledge on this whole area is limited, but I’ll try my best to provide as much info as possible to help solve the problem. Here are some specifics: Tomcat serve

Re: Apache/mod_jk serves random files from tomcat

2009-03-11 Thread Rainer Jung
On 11.03.2009 20:19, LukeK wrote: Rainer Jung-3 wrote: did you find out in the meantime, whether you were using the tcnative (aka APR) connector? I was certainly using libtcnative, and removed it at the start of the month. I haven't seen enough to definitively say that it solved the problem,

Re: Apache/mod_jk serves random files from tomcat

2009-03-11 Thread LukeK
Rainer Jung-3 wrote: > > did you find out in the meantime, whether you were using the tcnative (aka > APR) connector? > I was certainly using libtcnative, and removed it at the start of the month. I haven't seen enough to definitively say that it solved the problem, but my experience thus far

Re: Apache/mod_jk serves random files from tomcat

2009-03-10 Thread Rainer Jung
Hi Yuval, did you find out in the meantime, whether you were using the tcnative (aka APR) connector? Regards, Rainer On 19.02.2009 11:34, Yuval Perlov wrote: Just the swapping responses has me concerned. Thank you so much for the rest of your responses we will put them to good use once we

Re: Apache/mod_jk serves random files from tomcat

2009-02-19 Thread Yuval Perlov
Just the swapping responses has me concerned. Thank you so much for the rest of your responses we will put them to good use once we give up on AJP completely. Yuval On Feb 18, 2009, at 8:45 PM, Christopher Schultz wrote: -BEGIN PGP SIGNED MESSAGE- Hash: SHA1 Yuval, On 2/17/2009 1:

Re: Apache/mod_jk serves random files from tomcat

2009-02-18 Thread Christopher Schultz
-BEGIN PGP SIGNED MESSAGE- Hash: SHA1 Yuval, On 2/17/2009 1:48 PM, Yuval Perlov wrote: > Is APR part of tomcat or apache [httpd]? APR is the Apache Portable Runtime. Technically, it's its own beast and is used by both httpd and Tomcat (optionally). > If I am running on linux and have no

Re: Apache/mod_jk serves random files from tomcat

2009-02-17 Thread Yuval Perlov
Is APR part of tomcat or apache? If I am running on linux and have no .so files in my tomcat directory does that mean I have no APR installed? On a more positive note, we switched to proxy_http (after making the necessary code changes) and everything works now - no more mixed content. O

Re: Apache/mod_jk serves random files from tomcat

2009-02-17 Thread rnilsen
Hi, We had similar behaviour on our server, apache in the front serving tomcat on SSL, mostly servlets. First off, this is what we installed: Tomcat 5.5.27 and Apache 2.2.11 with mod_jk 1.2.26. The server is a 64 bit version of Windows Server 2008 (2 CPUs). We got some strange problems with consta

Re: Apache/mod_jk serves random files from tomcat

2009-02-16 Thread dave smith
Sorry for not providing an update sooner. I disabled the APR and the problem went away. On 2/12/09, Christopher Schultz wrote: > -BEGIN PGP SIGNED MESSAGE- > Hash: SHA1 > > Yuval, > > On 2/12/2009 3:12 AM, Yuval Perlov wrote: >> I actually upgraded from mod_jk 1.2.26 to 27 to try and mak

Re: Apache/mod_jk serves random files from tomcat

2009-02-12 Thread Christopher Schultz
-BEGIN PGP SIGNED MESSAGE- Hash: SHA1 Yuval, On 2/12/2009 3:12 AM, Yuval Perlov wrote: > I actually upgraded from mod_jk 1.2.26 to 27 to try and make the problem > go away. Ha! Okay. Sorry for a bad tip. ;) So, I'm definitely not going to be able to help you from here on out, but I know

Re: Apache/mod_jk serves random files from tomcat

2009-02-12 Thread Yuval Perlov
I actually upgraded from mod_jk 1.2.26 to 27 to try and make the problem go away. I see the mixup in the file sizes so thought a trace was not necessary. The mixup occurs only in tomcat originated data - the static stuff coming from httpd stays fine. Moreover, in the past I had it setup so the

Re: Apache/mod_jk serves random files from tomcat

2009-02-11 Thread Christopher Schultz
-BEGIN PGP SIGNED MESSAGE- Hash: SHA1 Yuval, On 2/11/2009 1:56 AM, Yuval Perlov wrote: > What leads me to believe this is unrelated to my application code is > that restarting apache makes the problem go away. So, when your site goes crazy, a simple httpd-bounce does the trick? No Tomcat

Re: Apache/mod_jk serves random files from tomcat

2009-02-10 Thread Yuval Perlov
Thanks! The problem as far as I can tell is a simple mixup of http requests so user identities don't play into this. It might look like it since user A is getting the results of user B but as far as session management goes it is unaffected by this. The URLs are very short. This happens at

Re: Apache/mod_jk serves random files from tomcat

2009-02-10 Thread Christopher Schultz
-BEGIN PGP SIGNED MESSAGE- Hash: SHA1 Yuval, On 2/10/2009 3:44 PM, Yuval Perlov wrote: > We started restarting apache on a regular basis but if a user is in mid > request (consider a user that just filled a big form and is upload a file). So it appears that Apache is, over time, losing t

Re: Apache/mod_jk serves random files from tomcat

2009-02-10 Thread André Warnier
Yuval Perlov wrote: [...] 2) getting rid of apache and moving tomcat to the front (much harder to configure but ensures we are rid of this problem). This being the Tomcat forum, and as these things go, I am sure you are going to get some ringing endorsements for that. But I am less sure the

Re: Apache/mod_jk serves random files from tomcat

2009-02-10 Thread Yuval Perlov
We started restarting apache on a regular basis but if a user is in mid request (consider a user that just filled a big form and is upload a file). I moved all static content to apache so tomcat is now only delivering the actual jsp file. The result was that the mix up took longer to appe

Re: Apache/mod_jk serves random files from tomcat

2009-02-05 Thread LukeK
JohnHardin wrote: > > * Have others (that now seem to be "fixed") gotten things to work by > updating to the latest mod_jk (1.2.27)? I suspect that it's related to 1.2.27 - I have been playing around with older versions. .24 and .25 have had issues forwarding certain request headers, but so far

Re: Apache/mod_jk serves random files from tomcat

2009-02-05 Thread JohnHardin
LukeK wrote: > > > yuvalperlov wrote: >> >> I am having the exact same symptoms with the latest versions of >> everything: >> Fedora 10 >> Tomcat 6.0.18 >> Apache Apache/2.2.10 >> mod_jk-1.2.27 (and the same problem with the built-in mod_proxy_ajp). >> >> It takes a day or so for the problem

Re: Apache/mod_jk serves random files from tomcat

2009-02-03 Thread LukeK
yuvalperlov wrote: > > I am having the exact same symptoms with the latest versions of > everything: > Fedora 10 > Tomcat 6.0.18 > Apache Apache/2.2.10 > mod_jk-1.2.27 (and the same problem with the built-in mod_proxy_ajp). > > It takes a day or so for the problem to start but once it does it h

Re: Apache/mod_jk serves random files from tomcat

2009-01-21 Thread yuvalperlov
Trying to revive this thread: I am having the exact same symptoms with the latest versions of everything: Fedora 10 Tomcat 6.0.18 Apache Apache/2.2.10 mod_jk-1.2.27 (and the same problem with the built-in mod_proxy_ajp). It takes a day or so for the problem to start but once it does it happens m

Re: Apache/mod_jk serves random files from tomcat

2008-11-14 Thread Rainer Jung
Jakob Ericsson schrieb: > On Thu, Nov 13, 2008 at 8:17 PM, Rainer Jung <[EMAIL PROTECTED]> wrote: >> Jakob Ericsson schrieb: >>> Upgrading to latest version of mod_jk solves the problem. As I said >>> before, this on Windows 2003 Server running both httpd (2.0.59) and >>> tomcat (6.0.13) on the sam

Re: Apache/mod_jk serves random files from tomcat

2008-11-14 Thread Jakob Ericsson
On Thu, Nov 13, 2008 at 8:17 PM, Rainer Jung <[EMAIL PROTECTED]> wrote: > Jakob Ericsson schrieb: >> Upgrading to latest version of mod_jk solves the problem. As I said >> before, this on Windows 2003 Server running both httpd (2.0.59) and >> tomcat (6.0.13) on the same machine. We upgraded all pro

Re: Apache/mod_jk serves random files from tomcat

2008-11-13 Thread Rainer Jung
Jakob Ericsson schrieb: > Upgrading to latest version of mod_jk solves the problem. As I said > before, this on Windows 2003 Server running both httpd (2.0.59) and > tomcat (6.0.13) on the same machine. We upgraded all production > machines this morning. > > Problem is in mod_jk 1.2.22 and is at l

Re: Apache/mod_jk serves random files from tomcat

2008-11-13 Thread Jakob Ericsson
Hi, Upgrading to latest version of mod_jk solves the problem. As I said before, this on Windows 2003 Server running both httpd (2.0.59) and tomcat (6.0.13) on the same machine. We upgraded all production machines this morning. Problem is in mod_jk 1.2.22 and is at least and fixed in 1.2.27. We di

Re: Apache/mod_jk serves random files from tomcat

2008-11-12 Thread Jakob Ericsson
On Wed, Nov 12, 2008 at 12:21 PM, Rainer Jung <[EMAIL PROTECTED]> wrote: > Jakob Ericsson schrieb: >> >> >> -- >> Jakob Ericsson >> +46 704 533 627 >> >> 11 nov 2008 kl. 22.37 skrev Christopher Schultz >> <[EMAIL PROTECTED]>: >> >> Jakob, >> >> Jakob Ericsson wrote: > We are also experiencing t

Re: Apache/mod_jk serves random files from tomcat

2008-11-12 Thread Rainer Jung
Jakob Ericsson schrieb: > > > -- > Jakob Ericsson > +46 704 533 627 > > 11 nov 2008 kl. 22.37 skrev Christopher Schultz > <[EMAIL PROTECTED]>: > > Jakob, > > Jakob Ericsson wrote: We are also experiencing this problem. Our setup is running Windows 2003 Server with Apache 2.0.59 (no

Re: Apache/mod_jk serves random files from tomcat

2008-11-12 Thread Jakob Ericsson
-- Jakob Ericsson +46 704 533 627 11 nov 2008 kl. 22.37 skrev Christopher Schultz <[EMAIL PROTECTED] >: -BEGIN PGP SIGNED MESSAGE- Hash: SHA1 Jakob, Jakob Ericsson wrote: We are also experiencing this problem. Our setup is running Windows 2003 Server with Apache 2.0.59 (no pref

Re: Apache/mod_jk serves random files from tomcat

2008-11-11 Thread Christopher Schultz
-BEGIN PGP SIGNED MESSAGE- Hash: SHA1 Jakob, Jakob Ericsson wrote: > We are also experiencing this problem. > Our setup is running Windows 2003 Server with Apache 2.0.59 (no prefork), > mod_jk 1.2.22 and Apache Tomcat/6.0.13. > > Will upgrading to latest mod_proxy_ajp in Apache httpd 2.2

Re: Apache/mod_jk serves random files from tomcat

2008-11-11 Thread Jakob Ericsson
Hi, We are also experiencing this problem. Our setup is running Windows 2003 Server with Apache 2.0.59 (no prefork), mod_jk 1.2.22 and Apache Tomcat/6.0.13. Will upgrading to latest mod_proxy_ajp in Apache httpd 2.2.X solve this problem? How did other people solve this problem? Regards, Jakob

Re: Apache/mod_jk serves random files from tomcat

2008-08-01 Thread Rainer Jung
dave.smith wrote: As I mentioned upgrading to mod_jk 1.2.26 was very easy. Unfortunately, Tomcat is now crashing with "An unexpected error has been detected by HotSpot Virtual Machine." # SIGSEGV (0xb) at pc=0xb7aeaf7b, pid=19887, tid=2991246224 # # Java VM: Java HotSpot(TM) Client VM (1.5.0_1

Re: Apache/mod_jk serves random files from tomcat

2008-07-31 Thread dave.smith
As I mentioned upgrading to mod_jk 1.2.26 was very easy. Unfortunately, Tomcat is now crashing with "An unexpected error has been detected by HotSpot Virtual Machine." # SIGSEGV (0xb) at pc=0xb7aeaf7b, pid=19887, tid=2991246224 # # Java VM: Java HotSpot(TM) Client VM (1.5.0_12-b04 mixed mode, s

Re: Apache/mod_jk serves random files from tomcat

2008-07-21 Thread Tim Redding
Hi, > Are Apache and Tomcat on the same system? Yes they are. > Do you have any of the httpd cache modules active? No, none. Tim.. Rainer Jung-3 wrote: > > Tim Redding schrieb: >> I now have logs from both the Apache server and Tomcat. I'm a little >> unsure >> how to interpret thes

Re: Apache/mod_jk serves random files from tomcat

2008-07-19 Thread Rainer Jung
Tim Redding schrieb: I now have logs from both the Apache server and Tomcat. I'm a little unsure how to interpret these log files. It shows that Tomcat does serve the file correctly and it is Apache that appears to do something odd when Tomcat returns a 304 response code. Apache Access Log

Re: Apache/mod_jk serves random files from tomcat

2008-07-18 Thread Rainer Jung
Tim Redding wrote: Just checked the the mod_jk log file. 2 other files were requested at 12:31:42 in addition to the /css/global.css file. One was index.html which just happened to be 2352 bytes in size. Exactly the same as the mysterious global.css file we got served. I have full debug le

Re: Apache/mod_jk serves random files from tomcat

2008-07-17 Thread dave.smith
Hi Rainer, I just use mod_jk to connect apache to tomcat. I don't do anything special with the configurations: i just have a few virtual hosts that contain a few JkMounts and some apache rewrites. Do you think switching to mod_proxy_ajp would make the problem go away? Thanks, Dave Rainer Ju

Re: Apache/mod_jk serves random files from tomcat

2008-07-17 Thread Tim Redding
Just checked the the mod_jk log file. 2 other files were requested at 12:31:42 in addition to the /css/global.css file. One was index.html which just happened to be 2352 bytes in size. Exactly the same as the mysterious global.css file we got served. I have full debug level log files for mod

Re: Apache/mod_jk serves random files from tomcat

2008-07-17 Thread Tim Redding
I now have logs from both the Apache server and Tomcat. I'm a little unsure how to interpret these log files. It shows that Tomcat does serve the file correctly and it is Apache that appears to do something odd when Tomcat returns a 304 response code. Apache Access Log xx.xx.4.58 - - [17/Jul

Re: Apache/mod_jk serves random files from tomcat

2008-07-17 Thread Eric Dalquist
Rainer Jung-3 wrote: > > Do you get any info or above log messages in the JK log file close to > this events? > I don't believe there was anything interesting in the JK log file near that time period. Rainer Jung-3 wrote: > > What is the last column in the log formats? Is it both %D? Then

Re: Apache/mod_jk serves random files from tomcat

2008-07-16 Thread Rainer Jung
Eric Dalquist schrieb: We are seeing a similar problem. We have Apache 2.2.6 using prefork connecting to Tomcat 5.5.23 via mod_jk 1.2.25 We see infrequent issues with requests getting swapped from request to Tomcat. After the first time it was reported we added Tomcat access logging to try and

Re: Apache/mod_jk serves random files from tomcat

2008-07-16 Thread Eric Dalquist
We are seeing a similar problem. We have Apache 2.2.6 using prefork connecting to Tomcat 5.5.23 via mod_jk 1.2.25 We see infrequent issues with requests getting swapped from request to Tomcat. After the first time it was reported we added Tomcat access logging to try and help figure out the prob

Re: Apache/mod_jk serves random files from tomcat

2008-07-15 Thread dave.smith
Thanks, Mark. When I first saw that security notice, I thought, "this is it!". I don't think it is my problem, though, because I don't allow direct SSL requests to get to the web servers. All HTTPS gets terminated to HTTP at the load balancer. The load balancer sends the HTTP requests to Apach

Re: Apache/mod_jk serves random files from tomcat

2008-07-15 Thread Rainer Jung
dave.smith schrieb: Yesterday, I upgraded our dev environment to mod_jk 1.2.26, which couldn't have been easier. It will probably take me a couple of days before I can get this done in production, though. I terminate all HTTPS requests before they get to the web server, so from what you have de

Re: Apache/mod_jk serves random files from tomcat

2008-07-15 Thread dave.smith
Yesterday, I upgraded our dev environment to mod_jk 1.2.26, which couldn't have been easier. It will probably take me a couple of days before I can get this done in production, though. I terminate all HTTPS requests before they get to the web server, so from what you have described, it is probab

Re: Apache/mod_jk serves random files from tomcat

2008-07-15 Thread Mark Thomas
Rainer Jung wrote: Hi David, dave.smith schrieb: Hi Rainer, Thanks a lot for the reply. I am using Tomcat 5.5.25 (rpm from jpackage.org). CentOS Linux 2.6.18. Could you be seeing CVE-2007-6286 ? See http://tomcat.apache.org/security-5.html for info. Mark -

Re: Apache/mod_jk serves random files from tomcat

2008-07-15 Thread Rainer Jung
Hi David, dave.smith schrieb: Hi Rainer, Thanks a lot for the reply. I am using Tomcat 5.5.25 (rpm from jpackage.org). CentOS Linux 2.6.18. httpd was compiled in prefork mode. The prefork settings are: StartServers 8 MinSpareServers5 MaxSpareServers 20 ServerLimit 256 MaxCl

Re: Apache/mod_jk serves random files from tomcat

2008-07-15 Thread dave.smith
Hi Rainer, Thanks a lot for the reply. I am using Tomcat 5.5.25 (rpm from jpackage.org). CentOS Linux 2.6.18. httpd was compiled in prefork mode. The prefork settings are: StartServers 8 MinSpareServers5 MaxSpareServers 20 ServerLimit 256 MaxClients 256 MaxRequestsPerCh

Re: Apache/mod_jk serves random files from tomcat

2008-07-14 Thread Rainer Jung
dave.smith schrieb: Wow. That's weird. Is Tomcat serving the file, or is httpd serving it? Not too weird. I am experiencing the same thing with Tomcat 5.5 and mod_jk 1.2.23. I have Tomcat serving everything. I am also using a load balancer that sends an OPTION every 2 seconds to each web ser

Re: Apache/mod_jk serves random files from tomcat

2008-07-14 Thread dave.smith
> Wow. That's weird. Is Tomcat serving the file, or is httpd serving it? Not too weird. I am experiencing the same thing with Tomcat 5.5 and mod_jk 1.2.23. I have Tomcat serving everything. I am also using a load balancer that sends an OPTION every 2 seconds to each web server to make sure tha

Re: Apache/mod_jk serves random files from tomcat

2008-07-12 Thread Rainer Jung
Christopher Schultz schrieb: | JkMount status Probably not your problem, but is this the correct syntax? You can use that syntax in Location directives. Then the missing URL is taken from the Location URL, so the mount is valid for each URL in the respective Location. Regards, Rainer --

Re: Apache/mod_jk serves random files from tomcat

2008-07-12 Thread Rainer Jung
Hi Tim, Tim Redding schrieb: Hi, We are experiencing intermittent problems with a particular site that is not returning the correct file that is requested. For instance if we request the index.html file we actually get a css file or even an image. From the apache access log you can see that t

Re: Apache/mod_jk serves random files from tomcat

2008-07-11 Thread Tim Redding
Hi, > Wow. That's weird. Is Tomcat serving the file, or is httpd serving it? All requests are going to tomcat via httpd. > Does the WAR file get expanded during deployment? Well tomcat usually extracts the contents to a temporary location so I guess yes. > Does this happen whether Tomcat is r

Re: Apache/mod_jk serves random files from tomcat

2008-07-11 Thread Tim Redding
Thanks for the quick reply. I've enabled the AccessLogValve. I've just gotta wait for it to start playing up again. Could be 2 hours or 2 weeks. I'll reply when I have more info. Tim. Len Popp wrote: > > That log file is from the httpd server, right? What does the Tomcat > log file say? (

Re: Apache/mod_jk serves random files from tomcat

2008-07-10 Thread Christopher Schultz
-BEGIN PGP SIGNED MESSAGE- Hash: SHA1 Tim, Tim Redding wrote: | We are experiencing intermittent problems with a particular site that is not | returning the correct file that is requested. For instance if we request | the index.html file we actually get a css file or even an image. Fro

Re: Apache/mod_jk serves random files from tomcat

2008-07-10 Thread Len Popp
That log file is from the httpd server, right? What does the Tomcat log file say? (Turn on AccessLogValve if you haven't already.) Is Tomcat always getting requests for the correct file, or is mod_jk requesting the wrong file sometimes? -- Len On Thu, Jul 10, 2008 at 11:44, Tim Redding <[EMAIL P