【发布时间】:2015-01-10 05:33:09
【问题描述】:
- 我使用 Jdeveloper 11.1.1.7 构建了一个 Web 服务应用程序并部署在物理服务器上的 weblogic 10.3.6 上,我们称之为 后端服务器。
- 我不想让客户端直接访问后端服务器,所以我使用 Apache 2.2 位于客户端中间并返回- 端服务器。 Apache 2.2 配置在不同的物理服务器上,我们称之为中间服务器。
- 我在 Apache httpd.conf 文件中的中间服务器上定义了应用程序的上下文根(部署在后端服务器中)。李>
- 我将WSDL 文件位置分享给客户端(WSDL URL 指的是中间服务器 域名)。外部客户端可以通过浏览器访问 URL,他/她可以在其中看到 WSDL 内容
但是当客户端尝试向 中间服务器 URL 发送请求时,它会被拒绝并出现以下错误:
[error] [client -clinet public IP goes here-] ap_proxy: trying POST /[application context root goes
here] at backend host '[back-end server local IP]/[port goes here]; got exception 'CONNECTION_REFUSED
[os error=0, line 1602 of URL.cpp]: apr_socket_connect call failed with error=730061, host=[back-end
server local IP], port=[port goes here]'
此错误来自 中间服务器 Apache 错误日志文件。没有来自后端服务器
的日志到目前为止做了什么:
- 我使用
telnet命令检查是否可以作为外部用户访问中间服务器。telnet IP port。它正在工作,中间服务器正在监听。 - 我还检查了所有端口。外部客户端和中间服务器之间,中间服务器和后端服务器之间也使用telnet。所有端口都工作。
- 在这个答案中: ssl - Apache 2 with Weblogic Plug-in Redirection, original location still requested to backend - Server Fault 他们建议从 weblogic 服务器调整中增加 Accept Backlog 值。我在后端服务器上这样做了,但问题仍未解决。
【问题讨论】:
标签: java apache web-services ssl wsdl