我正在将一个EAR应用程序从 JBoss 6.1.0 AS 迁移到 Wildfly 8.2.0-Final AS 。 standalone-full-ha.xml
是用于在独立模式下运行服务器的配置文件。
mod_jk
设置,并尝试将更改与Wildfly 8.2.0-Final AS
集成。
<subsystem xmlns="urn:jboss:domain:undertow:1.2">
子系统
<ajp-listener name="ajp" socket-binding="ajp"/>
根据链接https://docs.jboss.org/author/display/WFLY8/AJP+listeners,我修改了以上内容,如下所示:
<ajp-listener name="ajp" scheme=http, socket-binding="ajp"/>
但是,当从客户端计算机中的浏览器访问应用程序URL时,我在mod_jk.log
中遇到错误(甚至在更改之前,获得了相同的错误):
[Wed Aug 19 16:04:14 2015] [32461:140363260491712] [info] jk_open_socket::jk_connect.c (758): connect to ::1:8009 failed (errno=111)
[Wed Aug 19 16:04:14 2015] [32461:140363260491712] [info] ajp_connect_to_endpoint::jk_ajp_common.c (1019): Failed opening socket to (::1:8009) (errno=111)
[Wed Aug 19 16:04:14 2015] [32461:140363260491712] [error] ajp_send_request::jk_ajp_common.c (1663): (ajp13) connecting to backend failed. Tomcat is probably not started or is listening on the wrong port (errno=111)
[Wed Aug 19 16:04:14 2015] [32461:140363260491712] [info] ajp_service::jk_ajp_common.c (2673): (ajp13) sending request to tomcat failed (recoverable), because of error during request sending (attempt=1)
[Wed Aug 19 16:04:14 2015] [32461:140363260491712] [info] jk_open_socket::jk_connect.c (758): connect to ::1:8009 failed (errno=111)
[Wed Aug 19 16:04:14 2015] [32461:140363260491712] [info] ajp_connect_to_endpoint::jk_ajp_common.c (1019): Failed opening socket to (::1:8009) (errno=111)
[Wed Aug 19 16:04:14 2015] [32461:140363260491712] [error] ajp_send_request::jk_ajp_common.c (1663): (ajp13) connecting to backend failed. Tomcat is probably not started or is listening on the wrong port (errno=111)
[Wed Aug 19 16:04:14 2015] [32461:140363260491712] [info] ajp_service::jk_ajp_common.c (2673): (ajp13) sending request to tomcat failed (recoverable), because of error during request sending (attempt=2)
[Wed Aug 19 16:04:14 2015] [32461:140363260491712] [error] ajp_service::jk_ajp_common.c (2693): (ajp13) connecting to tomcat failed.
[Wed Aug 19 16:04:14 2015] [32461:140363260491712] [info] jk_handler::mod_jk.c (2806): Service error=-3 for worker=ajp13
PFB worker.properties 内容:
worker.list=ajp13
worker.ajp13.type=ajp13
worker.ajp13.host=localhost
worker.ajp13.port=8009
standalone-full-ha.xml 中的公共接口绑定定义:
<interface name="public">
<any-ipv4-address/>
</interface>
我是mod_jk
的新手,我怀疑这是一个需要在standalone-full-ha.xml
中完成的变更,我在那里遗漏了一些东西。有谁可以帮我解决这个问题。