我的mod-jk工作了一段时间,但在切换服务器和修改一些文件后,它不再工作。我使用mod_jk-1.2.28和JBoss 4.2.3作为后端。
在JBoss server.xml文件中,我在端口8009上定义了AJP1.3连接器,并将jboss绑定到服务器的新IP地址。我尝试转发的应用程序部署为:
[TomcatDeployer] deploy, ctxPath=/ManualAlerts, warUrl=.../tmp/deploy/tmp8097651929280250028ManualAlertsApp.ear-contents/ManualAlerts-exp.war/在web服务器上,我为JBoss地址和端口8009设置了带有worker的worker.properties。
mod-jk.conf有JkMount /ManualAlerts/* worker1。
这是否应该将所有请求转发到web服务器,并将URL http://address/ManualAlerts/发送到名为ManualAlerts的后端应用程序?
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:8009)失败,这里的应用服务器地址也是正确的。我不知道是什么导致了这个问题。
发布于 2009-11-01 04:23:19
把你的mod-jk.conf,workers.properties和ajp连接定义张贴出来可能是个好主意。如果没有它们,我会说你应该尝试添加以下挂载点:
JkMount /ManualAlerts worker1https://stackoverflow.com/questions/1655197
复制相似问题