1

我需要一个连接到我的服务器的 cfajaxproxy 接口(无需在页面上提交即可传递数据)。希望 cfajaxproxy 是正确的方法吗?

为了了解这一点,我首先修改了http://tutorial13.learncf.com/上显示的示例教程,但在收到“模板拒绝访问”错误后,我决定直接按原样使用该教程,它只有两个小文件(可以从他的教程中剪切和粘贴)。不幸的是,我在他的教程中遇到了同样的错误(即使他在他的网站上作为演示运行)。所以 ??

我将proxy.cfc 文件放在我正在访问的(主)wwwroot 目录中(第一次使用cfc)。我是否需要要求托管公司允许服务器上的某些内容(运行 ColdFusion 8)?

谢谢。错误详情如下:

处理请求安全时发生错误:请求的模板已被拒绝访问 C:/Coldfusion8/wwwroot/WEB-INF/cfclasses/cfproxy2ecfc771136334.class。

以下是内部异常消息:访问被拒绝(java.io.FilePermission C:/Coldfusion8/wwwroot/WEB-INF/cfclasses/cfproxy2ecfc771136334.class read)

ColdFusion cannot determine the line of the template that caused this error. This is often    caused by an error in the exception handling subsystem.
Resources:
Check the ColdFusion documentation to verify that you are using the correct syntax.
Search the Knowledge Base to find a solution to your problem.
Browser     Mozilla/5.0 (Windows NT 6.0) AppleWebKit/537.17 (KHTML, like Gecko)    Chrome/24.0.1312.57 Safari/537.17
Remote Address      72.201.113.149
Referrer    
Date/Time   22-Feb-13 12:42 AM
Stack Trace
java.security.AccessControlException: access denied (java.io.FilePermission    C:/Coldfusion8/wwwroot/WEB-INF/cfclasses/cfproxy2ecfc771136334.class read) at  cfdemo2ecfm1260454926.runPage(C:/Websites/202350mu7/wwwroot/sf/demo.cfm:1) 

java.security.AccessControlException: access denied (java.io.FilePermission C:\Coldfusion8\wwwroot\WEB-INF\cfclasses\cfproxy2ecfc771136334.class read)
at java.security.AccessControlContext.checkPermission(AccessControlContext.java:374)
at java.security.AccessController.checkPermission(AccessController.java:546)
at java.lang.SecurityManager.checkPermission(SecurityManager.java:532)
at java.lang.SecurityManager.checkRead(SecurityManager.java:871)
             ...
4

1 回答 1

2

这是一个安全沙箱问题,您需要联系您的主机并确保您有一个可以访问此文件夹的沙箱。

于 2013-02-22T10:05:53.747 回答