如何将mod_jk(apache2)与Wildfly 8.2.0-Final AS

时间:2015-08-19 11:17:54

标签: java apache2 wildfly-8 mod-jk

我正在将一个EAR应用程序从 JBoss 6.1.0 AS 迁移到 Wildfly 8.2.0-Final AS standalone-full-ha.xml是用于在独立模式下运行服务器的配置文件。

在集成设置中可以使用 apache2 进行

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中完成的变更,我在那里遗漏了一些东西。有谁可以帮我解决这个问题。

0 个答案:

没有答案