0

前段时间我有 mod-jk 工作,但在切换服务器和修改一些文件后,它不再工作。我使用 mod_jk-1.2.28 和 JBoss 4.2.3 作为后端。

在 JBoss server.xml 文件中,我在端口 8009 上定义了 AJP 1.3 连接器,并将 jboss 绑定到服务器的新 IP 地址。我尝试转发的应用程序部署为:

[TomcatDeployer] deploy, ctxPath=/ManualAlerts, warUrl=.../tmp/deploy/tmp8097651929280250028ManualAlertsApp.ear-contents/ManualAlerts-exp.war/

在 Web 服务器上,我有 worker.properties,其中有一个为 JBoss 地址和端口 8009 设置的工作者。

mod-jk.conf 有 JkMount /ManualAlerts/* worker1。

这不应该将所有请求通过 URL http://address/ManualAlerts/ 转发到名为 ManualAlerts 的后端应用程序的 Web 服务器吗?

mod-jk.log 显示:

[Sat Oct 31 14:19:28 2009][30709:3086014224] [error] ajp_send_request::jk_ajp_common.c (1507): (worker1) connecting to backend failed. Tomcat is probably not started or is listening on the wrong port (errno=115)
[Sat Oct 31 14:19:28 2009][30709:3086014224] [info] ajp_service::jk_ajp_common.c (2447): (worker1) sending request to tomcat failed (recoverable), because of error during request sending (attempt=2)
[Sat Oct 31 14:19:28 2009][30709:3086014224] [error] ajp_service::jk_ajp_common.c (2466): (worker1) connecting to tomcat failed.
[Sat Oct 31 14:19:28 2009][30709:3086014224] [info] service::jk_lb_worker.c (1384): service failed, worker worker1 is in error state
[Sat Oct 31 14:19:28 2009][30709:3086014224] [info] service::jk_lb_worker.c (1464): All tomcat instances are busy or in error state
[Sat Oct 31 14:19:28 2009][30709:3086014224] [error] service::jk_lb_worker.c (1469): All tomcat instances failed, no more workers left

在应用服务器上运行netstat -an显示jboss正在监听8009,本地地址是应用服务器的地址。在 mod-jk.log 中显示连接到 (XXX.XXX.XXX.XXX:8009) 失败,并且此处的应用服务器地址也是正确的。我无法弄清楚是什么导致了这个问题。

4

1 回答 1

0

最好发布您的 mod-jk.conf、workers.properties 和 ajp 连接定义。没有它们,我会说您应该尝试添加以下挂载点:

JkMount /ManualAlerts worker1
于 2009-10-31T20:23:19.093 回答