You are viewing a plain text version of this content. The canonical link for it is here.
Posted to users@tomcat.apache.org by Jonathan Rosenberg <sh...@gmail.com> on 2011/11/18 22:28:50 UTC
Erratic Response Types When Tomcat Fronted by Apache httpd
Setup basics (all on Linux box):
- Apache Tomcat/7.0.6
- JVM: 1.6.0_22-b04
- Apache httpd 2.2.17
-- proxied via "ProxyPass /Catalog ajp://localhost:8009/Catalog"
I just deployed a new version of the app to my test server.
When I access the application (/Catalog) directly via Tomcat, all runs fine:
http://test.domain.org:8080/Catalog
When I access via http
http://test.domain.org/Catalog
I get very strange, erratic behavior:
- responses are often (not always) returned with improper context
types (e.g., images as text/plain).
The behavior is not consistent. Sometimes a page reload "fixes" the
problem. Most of the time it doesn't. I have seen the behavior with
all types of content (text/javascript, text/css, text/html, ...).
I have yet to see this behavior when accessing Tomcat directly.
This is a setup I have been using for quite a while without problems.
I have not run into this before.
Before I start digging into all kinds of weird possibilities, I was
hoping this description might trigger something in one of you that
would help me.
Thanks in advance for any guidance/pointers.
--
Jonathan Rosenberg
Founder & Executive Director
Tabby's Place, a Cat Sanctuary
http://www.tabbysplace.org/
---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscribe@tomcat.apache.org
For additional commands, e-mail: users-help@tomcat.apache.org
Re: Erratic Response Types When Tomcat Fronted by Apache httpd
Posted by Jonathan Rosenberg <jr...@tabbysplace.org>.
An update to close this issue:
After fiddling with many other things, I finally updated from 7.0.6 to
7.0.22. That fixed the issue.
The behavior was very strange & inconsistent. Apparently randomly,
most AJP requests to Tomcat would come back with incorrect
Content-type. As you can imagine, this caused some hard-to-track down
errors. I couldn;t find any pattern to the errors. The same objects
could be returned correctly after a reload (or not).
In case it helps someone else ...
--
Jonathan Rosenberg
Founder & Executive Director
Tabby's Place, a Cat Sanctuary
http://www.tabbysplace.org/
On Fri, Nov 18, 2011 at 4:58 PM, Daniel Mikusa <dm...@vmware.com> wrote:
> On Fri, 2011-11-18 at 13:28 -0800, Jonathan Rosenberg wrote:
>> Setup basics (all on Linux box):
>>
>> - Apache Tomcat/7.0.6
>> - JVM: 1.6.0_22-b04
>> - Apache httpd 2.2.17
>> -- proxied via "ProxyPass /Catalog ajp://localhost:8009/Catalog"
>>
>
> You might want to give an updated version of Tomcat 7 a try. 7.0.22 is
> the latest.
>
> If nothing else, you'll pick up an important security fix related to
> AJP.
>
> https://tomcat.apache.org/security-7.html#Fixed_in_Apache_Tomcat_7.0.21
>
> Dan
>
---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscribe@tomcat.apache.org
For additional commands, e-mail: users-help@tomcat.apache.org
Re: Erratic Response Types When Tomcat Fronted by Apache httpd
Posted by Daniel Mikusa <dm...@vmware.com>.
On Fri, 2011-11-18 at 13:28 -0800, Jonathan Rosenberg wrote:
> Setup basics (all on Linux box):
>
> - Apache Tomcat/7.0.6
> - JVM: 1.6.0_22-b04
> - Apache httpd 2.2.17
> -- proxied via "ProxyPass /Catalog ajp://localhost:8009/Catalog"
>
You might want to give an updated version of Tomcat 7 a try. 7.0.22 is
the latest.
If nothing else, you'll pick up an important security fix related to
AJP.
https://tomcat.apache.org/security-7.html#Fixed_in_Apache_Tomcat_7.0.21
Dan