Glassfish 3.1.1 集群负载均衡 apache mod_jk windows 7 x64
我使用以下配置:
Glassfish 3.1.1(zip 版本)、apache 2.2.22、mod_jk 1.2.32 和 Windows 7 x64。
我有2台物理机。第一台机器上有 DAS、Glassfish 实例 1、带有 mod_jk 的 apache。第二台机器上有 Glassfish 实例 2。
我在网上阅读了很多教程,做了完全相同的事情,但我仍然无法让它工作。我可以在一个 Web 应用程序的两台物理机器之间进行会话复制。我设法运行 apache 并安装 mod_jk。我在端口 8009 上设置了 http-listener。我可以看到 apache 将所有请求重定向到 Glassfish 使用的端口 80 到 8080。但是,当我输入 localhost/some_application 时,它不会打开 some_application。
我查看了 mod_jk 的日志。这是我通常在那里看到的:
[Thu Feb 09 18:15:31 2012] [5532:2244] [info] jk_open_socket::jk_connect.c (626): connect to 127.0.1.1:8009 failed (errno=61) [2012 年 2 月 9 日星期四 18:15:31] [5532:2244] [info] ajp_connect_to_endpoint::jk_ajp_common.c (1008): 无法打开套接字到 (127.0.1.1:8009) (errno=61) [2012 年 2 月 9 日星期四 18:15:31] [5532:2244] [错误] ajp_send_request::jk_ajp_common.c (1630): (worker1) 连接到后端失败。 Tomcat 可能未启动或正在侦听错误的端口 (errno=61) [Thu Feb 09 18:15:31 2012] [5532:2244] [info] ajp_service::jk_ajp_common.c (2607): (worker1) 向 tomcat 发送请求失败(可恢复),因为请求发送期间出错(尝试= 1)
有人知道解决这个问题吗?
提前致谢。
I am using the following configuration:
Glassfish 3.1.1 (zip version), apache 2.2.22, mod_jk 1.2.32 and Windows 7 x64.
I've got 2 physical machines. On the 1st machine there is DAS, instance 1 of Glassfish, apache with mod_jk. On the second machine there is instance 2 of Glassfish.
I read through lots of tutorials on the web, did exactly the same things and I still can't get it working. I can do session replication between two physical machines of one web application. I managed to run apache and install mod_jk. I set up http-listener on port 8009. I can see that apache redirects all requests to port 80 to 8080 used by Glassfish. However, when I type localhost/some_application it doesn't open some_application.
I looked at the logs for mod_jk. This is what I usually see there:
[Thu Feb 09 18:15:31 2012] [5532:2244] [info] jk_open_socket::jk_connect.c (626): connect to 127.0.1.1:8009 failed (errno=61)
[Thu Feb 09 18:15:31 2012] [5532:2244] [info] ajp_connect_to_endpoint::jk_ajp_common.c (1008): Failed opening socket to (127.0.1.1:8009) (errno=61)
[Thu Feb 09 18:15:31 2012] [5532:2244] [error] ajp_send_request::jk_ajp_common.c (1630): (worker1) connecting to backend failed. Tomcat is probably not started or is listening on the wrong port (errno=61)
[Thu Feb 09 18:15:31 2012] [5532:2244] [info] ajp_service::jk_ajp_common.c (2607): (worker1) sending request to tomcat failed (recoverable), because of error during request sending (attempt=1)
Does anybody know to resolve that?
Thanks in advance.
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。

绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论