glassfish + jk +大文件/奇怪的回应

时间:2012-03-19 12:50:43

标签: apache2 glassfish-3 mod-jk

我使用Glassfish-ApplicationServer进行Web应用程序。 Glassfish与mod_jk连接到Apache2-Server。 现在有一个非常奇怪的行为:收到的文件的某些部分(html,css,js,...)丢失,文件中有奇怪的数字...如果我使用直接访问Glassfish eth的工作。

我使用Glassfish 3.1.2,mod_jk 1.2.33和Apache2。 Web应用程序使用jsf / Primefaces 3.2。

在mod_jk日志中有奇怪的错误消息。消息仅在首次访问网页时显示。

[Mon Mar 19 13:33:42 2012] [3763:2928831344] [error]ajp_connection_tcp_get_message::jk_ajp_common.c (1280): wrong message format 0x2020 from 127.0.0.1:9009
[Mon Mar 19 13:33:42 2012] [3763:2928831344] [error] ajp_get_reply::jk_ajp_common.c (2145): (ajp13_worker) Tomcat is down or network problems. Part of the response has already been sent to the client
[Mon Mar 19 13:33:42 2012] [3763:2928831344] [info] ajp_service::jk_ajp_common.c (2614): (ajp13_worker) sending request to tomcat failed (recoverable), because of protocol error (attempt=2)
[Mon Mar 19 13:33:42 2012] [3763:2928831344] [error] ajp_service::jk_ajp_common.c (2634): (ajp13_worker) connecting to tomcat failed.
[Mon Mar 19 13:33:42 2012] [3763:2928831344] [info] jk_handler::mod_jk.c (2788): Service error=-11 for worker=ajp13_worker
[Mon Mar 19 13:33:42 2012] ajp13_worker ores.pragma.biz 0.191397
[Mon Mar 19 13:33:42 2012] [3764:2903653232] [error] ajp_connection_tcp_get_message::jk_ajp_common.c (1280): wrong message format 0x6973 from 127.0.0.1:9009
[Mon Mar 19 13:33:42 2012] [3764:2903653232] [error] ajp_get_reply::jk_ajp_common.c (2145): (ajp13_worker) Tomcat is down or network problems. Part of the response has already been sent to the client
[Mon Mar 19 13:33:42 2012] [3764:2903653232] [info] ajp_service::jk_ajp_common.c (2614): (ajp13_worker) sending request to tomcat failed (recoverable), because of protocol error (attempt=2)
[Mon Mar 19 13:33:42 2012] [3764:2903653232] [error] ajp_service::jk_ajp_common.c (2634): (ajp13_worker) connecting to tomcat failed.
[Mon Mar 19 13:33:42 2012] [3764:2903653232] [info] jk_handler::mod_jk.c (2788): Service error=-11 for worker=ajp13_worker

希望,任何人都可以帮助我。

2 个答案:

答案 0 :(得分:2)

尝试安装GF 3.1.1,看看是否能解决问题。我上周读到了这个bug,这可能是你的问题所在:http://java.net/jira/browse/GLASSFISH-18446看起来这个bug上有一个补丁。

答案 1 :(得分:0)

这不完全是一个答案,但如果你有任何机会仅使用apachemod_jk作为GF的代理(正如我们多年来所做的那样) - 安装nginx ,忘了apache。就像白天和黑夜。

http://wiki.nginx.org/HttpProxyModule