我有一个使用CF8和Fusebox 5的站点.无论何时我需要为站点添加新功能,我通常都需要为circuit.xml.cfm添加一个新的保险丝,用于控制器,模型或视图,或者全部.要启用这些新功能/页面,请转到以下网址:
?fusebox.load=true&fusebox.parse=true&fusebox.password=password&fusebox.loadclean=true
Run Code Online (Sandbox Code Playgroud)
最后一个参数是我最近选择的参数,并确定使用它可以启用我的新保险丝; 没有它,新的保险丝不被识别.但是,当我这样做时,删除之前生成的所有解析文件.这不是什么大问题,因为它们在第一次需要时会动态重新生成,但我有一些页面在访问时会返回错误.该错误表示目录未找到,但它们在那里,每次出现都是因为解析文件不存在.
以下是堆栈跟踪的一个错误示例:
Error - Parsed File or Directory not found.
Date/Time: Apr 25 2009 12:26:02
Type: fusebox.missingParsedFile
Message: Parsed File or Directory not found.
Detail:
Attempting to execute the parsed file 'login.logout.cfm' threw an error. This can occur if the parsed file does not exist in the parsed directory or if the parsed directory itself is missing.
Stack Trace:
coldfusion.runtime.CustomException: Parsed File or Directory not found.
at coldfusion.tagext.lang.ThrowTag.doStartTag(ThrowTag.java:124)
at coldfusion.runtime.CfJspPage._emptyTag(CfJspPage.java:2644)
at cffusebox52ecfm1214986498.runPage(C:\example.com\fb5core\fusebox5.cfm:216)
at coldfusion.runtime.CfJspPage.invoke(CfJspPage.java:192)
at coldfusion.tagext.lang.IncludeTag.doStartTag(IncludeTag.java:366) …Run Code Online (Sandbox Code Playgroud) 当我在本地使用以下内容进行开发时,它可以工作,当它在生产中时它大部分时间都可以工作,但是每次使用这段代码我们都会得到以下错误:
码
CreateObject("component", "model.mThing.Thing");
Run Code Online (Sandbox Code Playgroud)
现在model映射是在路径中创建的,Application.cfc因此model.mThing.Thing路径应始终指向存在的cfc,并且ww应该永远不会出现以下错误.那么这里有什么问题?
环境是CF8使用fusebox和coldspring,这个错误只在我们开始使用coldspring存储我们的工厂cfcs后才开始发生,这些执行CreateObject上面的代码会导致下面的错误.
错误:
"Error","jrpp-839","02/xx/12","xx:yy:zz","appName","Could not find the ColdFusion Component or Interface model.mThing.Thing. Ensure that the name is correct and that the component or interface exists. The specific sequence of files included or processed is: Z:\domains\x.y.com\root\index.cfm, line: 11 "
coldfusion.runtime.CfJspPage$NoSuchTemplateException: Could not find the ColdFusion Component or Interface model.mThing.Thing.
at coldfusion.runtime.TemplateProxyFactory.getResolvedFile(TemplateProxyFactory.java:1173)
at coldfusion.runtime.TemplateProxyFactory.getTemplateFileHelper(TemplateProxyFactory.java:1346)
at coldfusion.runtime.TemplateProxyFactory.resolveName(TemplateProxyFactory.java:1289)
at coldfusion.cfc.ComponentProxyFactory.getProxy(ComponentProxyFactory.java:38)
at coldfusion.runtime.ProxyFactory.getProxy(ProxyFactory.java:65)
at coldfusion.runtime.CFPage.createObjectProxy(CFPage.java:4707)
at coldfusion.runtime.CFPage.CreateObject(CFPage.java:4552)
at cfThingFactory2ecfc633415381$funcCREATEthings.runFunction(Z:\domains\x.y.com\approot\_Model\mThing\ThingFactory.cfc:11)
at coldfusion.runtime.UDFMethod.invoke(UDFMethod.java:418)
at coldfusion.runtime.UDFMethod$ReturnTypeFilter.invoke(UDFMethod.java:360) …Run Code Online (Sandbox Code Playgroud) 我有一份学校作业,我需要在ColdFusion网站上使用Fusebox框架.但为什么我需要使用它?有什么好处?