我在努力让映射工作
...
this.mappings = {
"/toolbox" = ExpandPath(".") & "toolbox",
"/models" = ExpandPath(".") & "controllers/model",
"/model" = ExpandPath(".") & "controllers/model" // hack, plural is correct
};
setupApplication() {
...
// works
application.objCCFRO = new controllers.model.ccfro();
application.objUtil = new controllers.model.utils();
// Does not work
application.objCCFRO = new models.ccfro();
application.objUtil = new models.utils();
...
}无效的组件定义,在railo.runtime.component.ComponentLoader.load(ComponentLoader.java:276):276,railo.runtime.component.ComponentLoader.loadComponent(ComponentLoader.java:39):39,railo.runtime.PageContextImpl.loadComponent(PageContextImpl.java:2784):2784,railo.runtime.functions.other.CreateObject.doComponent(CreateObject.java:178):178,railo.runtime.functions.other._CreateComponent.call(_CreateComponent.java:21):21,scorecard38,找不到models.ccfro。application_cfc$cf.udfCall(D:\railo\webapps\www\Scorecard38\Application.cfc:55):55 at railo.runtime.type.UDFImpl.implementation(UDFImpl.java:94):94
注: ACF没有此问题。
发布于 2014-01-03 22:32:29
您必须确保在更改映射时更改应用程序名称。
https://stackoverflow.com/questions/20645464
复制相似问题