![在 ColdFusion 11 IIS 8.5 上调用 cfx dll 时出现网关错误!](https://linux22.com/image/659647/%E5%9C%A8%20ColdFusion%2011%20IIS%208.5%20%E4%B8%8A%E8%B0%83%E7%94%A8%20cfx%20dll%20%E6%97%B6%E5%87%BA%E7%8E%B0%E7%BD%91%E5%85%B3%E9%94%99%E8%AF%AF%EF%BC%81.png)
当我运行调用 C++ dll 的 ColdFusion 页面时,我得到了 Bad Gateway!错误。
CF 管理员运行,其他带有 cfx dll 调用的页面也运行。ColdFusion 是 32 位的,因为 DLL 是 32 位的。CGI、ASP.NET 和 ISAPI 是启用的功能。ColdFusion wsconfig 运行正常。此系统上的 iis 用户对目录具有完全权限。cfx dll 调用第三方 dll。对同一第三方 dll 进行类似调用的可执行文件在命令行上成功运行。
此 cfx dll 和第三方 dll 在当前生产系统上运行
- ColdFusion 8 32 位
- 服务器 2003 32位
- 微软 IIS 6 新功能
- ColdFusion 在此版本中使用了 JRun
您对如何解决该错误有什么想法吗?
我的服务器配置不起作用的地方是:
- ColdFusion 11 企业版 32 位
- Windows Server 2012 64 位
- IIS 8.5
- ColdFusion 从版本 10 开始使用 Tomcat
网页错误为:
Bad Gateway!
There is a problem with the page you are looking for, and it cannot be displayed. When the Web server (while acting as a gateway or proxy) contacted the upstream content server, it received an invalid response from the content server.
Jakarta/ISAPI/isapi_redirector/1.2.37
isapi_redirect.log 是:请注意它首先运行 CLogP.cfm 页面,然后运行 wwwroot/index.htm 页面,然后关闭套接字。它记录错误无法从 tomcat 接收响应头消息,网络问题或 tomcat (127.0.0.1:8014) 已关闭 (errno=54)
[Wed Jun 03 18:56:57.123 2015] [1840:6896] [debug] ajp_process_callback::jk_ajp_common.c (1934): Getting real path
[Wed Jun 03 18:56:57.124 2015] [1840:6896] [debug] getRealPath::jk_isapi_plugin.c (4032): getRealPath(/myapplication/dlltestpages/CLogP.cfm) = C:\inetpub\wwwroot\mypath\web\dlltestpages\CLogP.cfm
[Wed Jun 03 18:56:57.125 2015] [1840:6896] [debug] ajp_connection_tcp_send_message::jk_ajp_common.c (1233): sending to ajp13 pos=4 len=59 max=60
[Wed Jun 03 18:56:57.126 2015] [1840:6896] [debug] ajp_connection_tcp_send_message::jk_ajp_common.c (1233): 0000 12 34 00 37 36 43 3A 5C 69 6E 65 74 70 75 62 5C - .4.76C:\inetpub\
[Wed Jun 03 18:56:57.126 2015] [1840:6896] [debug] ajp_connection_tcp_send_message::jk_ajp_common.c (1233): 0010 77 77 77 72 6F 6F 74 5C 65 63 6F 73 75 71 7A 75 - wwwroot\mypath
[Wed Jun 03 18:56:57.127 2015] [1840:6896] [debug] ajp_connection_tcp_send_message::jk_ajp_common.c (1233): 0020 5C 77 65 62 5C 64 6C 6C 74 65 73 74 70 61 67 65 - \web\dlltestpage
[Wed Jun 03 18:56:57.128 2015] [1840:6896] [debug] ajp_connection_tcp_send_message::jk_ajp_common.c (1233): 0030 73 5C 43 4C 6F 67 50 2E 63 66 6D 00 00 00 00 00 - s\CLogP.cfm.....
[Wed Jun 03 18:56:57.130 2015] [1840:6896] [debug] ajp_connection_tcp_get_message::jk_ajp_common.c (1428): received from ajp13 pos=0 len=14 max=65536
[Wed Jun 03 18:56:57.131 2015] [1840:6896] [debug] ajp_connection_tcp_get_message::jk_ajp_common.c (1428): 0000 0F 00 0A 2F 69 6E 64 65 78 2E 68 74 6D 00 00 00 - .../index.htm...
[Wed Jun 03 18:56:57.132 2015] [1840:6896] [debug] ajp_process_callback::jk_ajp_common.c (1934): Getting real path
[Wed Jun 03 18:56:57.133 2015] [1840:6896] [debug] getRealPath::jk_isapi_plugin.c (4032): getRealPath(/index.htm) = C:\inetpub\wwwroot\index.htm
[Wed Jun 03 18:56:57.133 2015] [1840:6896] [debug] ajp_connection_tcp_send_message::jk_ajp_common.c (1233): sending to ajp13 pos=4 len=33 max=34
[Wed Jun 03 18:56:57.134 2015] [1840:6896] [debug] ajp_connection_tcp_send_message::jk_ajp_common.c (1233): 0000 12 34 00 1D 1C 43 3A 5C 69 6E 65 74 70 75 62 5C - .4...C:\inetpub\
[Wed Jun 03 18:56:57.135 2015] [1840:6896] [debug] ajp_connection_tcp_send_message::jk_ajp_common.c (1233): 0010 77 77 77 72 6F 6F 74 5C 69 6E 64 65 78 2E 68 74 - wwwroot\index.ht
[Wed Jun 03 18:56:57.136 2015] [1840:6896] [debug] ajp_connection_tcp_send_message::jk_ajp_common.c (1233): 0020 6D 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 - m...............
[Wed Jun 03 18:57:05.615 2015] [1840:6896] [debug] jk_shutdown_socket::jk_connect.c (732): About to shutdown socket 1644 [127.0.0.1:53412 -> 127.0.0.1:8014]
[Wed Jun 03 18:57:05.675 2015] [1840:6896] [debug] jk_shutdown_socket::jk_connect.c (814): Shutdown socket 1644 [127.0.0.1:53412 -> 127.0.0.1:8014] and read 0 lingering bytes in 0 sec.
[Wed Jun 03 18:57:05.676 2015] [1840:6896] [info] ajp_connection_tcp_get_message::jk_ajp_common.c (1316): (cfusion) can't receive the response header message from tomcat, network problems or tomcat (127.0.0.1:8014) is down (errno=54)
[Wed Jun 03 18:57:05.684 2015] [1840:6896] [error] ajp_get_reply::jk_ajp_common.c (2232): (cfusion) Tomcat is down or refused connection. No response has been sent to the client (yet)
[Wed Jun 03 18:57:05.685 2015] [1840:6896] [error] ajp_service::jk_ajp_common.c (2735): (cfusion) sending request to tomcat failed (unrecoverable), (attempt=1)
[Wed Jun 03 18:57:05.687 2015] [1840:6896] [error] HttpExtensionProc::jk_isapi_plugin.c (2612): service() failed with http error 502
[Wed Jun 03 18:57:05.689 2015] [1840:6896] [debug] ajp_reset_endpoint::jk_ajp_common.c (828): (cfusion) resetting endpoint with socket -1 (socket shutdown)
[Wed Jun 03 18:57:05.696 2015] [1840:6896] [debug] ajp_done::jk_ajp_common.c (3218): recycling connection pool for worker cfusion and socket -1
.cfm 测试页是
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1" />
<title>CLogP Test Page</title>
</head>
<body>
<DIV align = "Center">
If you do not get an error, CLogP has been set up correctly
<cfx_ClogP1 Smiles="O=COC=O">
</DIV>
</body>
</html>
ColdFusion 应用程序日志为:
Warning
The description for Event ID 80 from source ColdFusion 11 Application Server cannot be found. Either the component that raises this event is not installed on your local computer or the installation is corrupted. You can install or repair the component on the local computer.
If the event originated on another computer, the display information had to be saved with the event.
The following information was included with the event:
ColdFusion 11 Application Server
the message resource is present but the message is not found in the string/message table
cfx C++ 定义是:
tag name cfx_CLogP1
server library dll C:/ColdFusion11/cfusion/cfx/ExternalComponents/cfx_CLogP.dll
Procedure ProcessTagRequest
Keep Library Loaded check
ColdFusion 日志显示信息但不显示错误。
Web 服务器日志显示 502 错误:
#Software: Microsoft Internet Information Services 8.5
#Version: 1.0
#Date: 2015-06-03 23:56:56
#Fields: date time s-ip cs-method cs-uri-stem cs-uri-query s-port cs-username c-ip cs(User-Agent) cs(Referer) sc-status sc-substatus sc-win32-status time-taken
2015-06-03 23:56:56 127.0.0.1 GET /myapplication/dlltestpages/CLogP.cfm - 80 - 127.0.0.1 Mozilla/5.0+(Windows+NT+6.3;+WOW64;+Trident/7.0;+rv:11.0)+like+Gecko - 401 2 5 14265
2015-06-03 23:56:56 127.0.0.1 GET /myapplication/dlltestpages/CLogP.cfm - 80 - 127.0.0.1 Mozilla/5.0+(Windows+NT+6.3;+WOW64;+Trident/7.0;+rv:11.0)+like+Gecko - 401 1 2148074254 154
2015-06-03 23:57:05 127.0.0.1 GET /myapplication/dlltestpages/CLogP.cfm - 80 AA\me 127.0.0.1 Mozilla/5.0+(Windows+NT+6.3;+WOW64;+Trident/7.0;+rv:11.0)+like+Gecko - 502 0 0 8732