tomcat-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Johanes Soetanto <otnat...@gmail.com>
Subject tomcat 6.0.35 with java 7 ssl proxy request body failed
Date Mon, 26 Nov 2012 03:28:07 GMT
Hi all,

I am wondering whether there is a known issue with running Tomcat
6.0.35 with Java 7 ?

I see lots of "(502)Unknown error 502: proxy: pass request body
failed.." error in our Apache log after running our Tomcat with Java
7. Once I change back Tomcat to use Java 6, I see no error at all.

The error appears when I use Apache to proxy to a backend Tomcat
server through port 8443. No other configuration changed apart
changing Java from
version 1.6.0_26-b03 to Java 1.7.0_09-b05 (both SUN/Oracle). Example
of error message

[Sun Nov 25 23:05:25 2012] [error] (502)Unknown error 502: proxy: pass
request body failed to 127.0.0.1:8443 (127.0.0.1)
[Sun Nov 25 23:05:25 2012] [error] proxy: pass request body failed to
127.0.0.1:8443 (127.0.0.1) from X.X.X.X ()

Other configuration information:
---
Apache: v2.2.14 (Ubuntu)
Apache Virtual Host:
<VirtualHost *:443>
    ...
    ProxyPreserveHost On
    ProxyRequests Off
    SSLEngine On
    SSLCertificateFile /etc/apache2/ssl/2012/
myserver.crt
    SSLCertificateKeyFile /etc/apache2/ssl/2012/myserver.key
    SSLCertificateChainFile /etc/apache2/ssl/2012/gd_bundle.crt
    SSLOptions +StrictRequire
    SSLProxyEngine On
    SSLProxyVerify none
    SSLProxyProtocol all
    RewriteEngine On
    RewriteRule ^/$ /app/ [R]
    RewriteRule /app(.*)$ https://127.0.0.1:8443/app$1 [P,L]
</VirtualHost>

Tomcat Connector setting:
    <Connector port="8443" protocol="HTTP/1.1" SSLEnabled="true"
               maxThreads="150" scheme="https" secure="true"
        keystoreFile="/var/server/tomcat.keystore"
        keystorePass="changeit"
               clientAuth="false" sslProtocol="TLS" />


/etc/init.d/tomcat $JAVA_OPTS configuration:
$JAVA_OPTS = "-server -Xms512m -Xmx1024m -XX:MaxPermSize=256M
-XX:+UseParallelGC"


Thanks beforehand for any help or assistance.

Johanes Soetanto

---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscribe@tomcat.apache.org
For additional commands, e-mail: users-help@tomcat.apache.org


Mime
View raw message