Error building: coldbox.system.EventHandler -> Could not find the included template includes/helpers/ApplicationHelper.cfm. Note: If you wish to use an absolute template path (for example, template="/mypath/index.cfm") with include, you must create a mapping for the path using the ColdFusion Administrator. Or, you can use per-application settings to specify mappings specific to this application by specifying a mappings struct to THIS.mappings in Application.cfc.
Using relative paths (for example, template="index.cfm" or template="../index.cfm") does not require the creation of any special mappings. It is therefore recommended that you use relative paths with include whenever possible. with constructor arguments: {controller={[(Component=coldbox.system.web.Controller)]}}
**************************************************
Side note, I know any changes I make to ColdBox will break the port URL and move me closer to the Subfolder URL.
Here is a sample of my httpd.conf settings:
<Directory "/localhost-www/CFSite">
Options None
AllowOverride All
Order allow,deny
Allow from all
</Directory>
<VirtualHost localhost:8080>
DocumentRoot "/localhost-www/CFSite"
ErrorLog "logs/error.log"
CustomLog "logs/access.log" common
</VirtualHost>
<IfModule alias_module>
Alias /CFSite /localhost-www/CFSite
</IfModule>
For starters I found I could set a relative path to the ApplicationHelper.cfm in the Config/ColdBox.cfc from "include/helpers/ApplicationHelper.cfm" to "../include/helpers/ApplicationHelper.cfm". That solved that issue but create another stating:
********************** ERROR MSG *********************
CacheBoxProvider.EvictionPolicyCreationException The error occurred in C:/localhost-www/CFSite/coldbox/system/cache/providers/CacheBoxProvider.cfc: line 111
Called from C:/localhost-www/CFSite/coldbox/system/cache/CacheFactory.cfc: line 646
Called from C:/localhost-www/CFSite/coldbox/system/cache/CacheFactory.cfc: line 602
Called from C:/localhost-www/CFSite/coldbox/system/cache/CacheFactory.cfc: line 163
Called from C:/localhost-www/CFSite/coldbox/system/cache/CacheFactory.cfc: line 100
Called from C:/localhost-www/CFSite/coldbox/system/web/services/LoaderService.cfc: line 157
Called from C:/localhost-www/CFSite/coldbox/system/web/services/LoaderService.cfc: line 48
Called from C:/localhost-www/CFSite/coldbox/system/Bootstrap.cfc: line 71
Called from C:/localhost-www/CFSite/coldbox/system/Bootstrap.cfc: line 107
Called from C:/localhost-www/CFSite/coldbox/system/Bootstrap.cfc: line 350
Called from C:/localhost-www/CFSite/Application.cfc: line 39
109 : catch(Any e){ 110 : instance.logger.error("Error creating eviction policy: #evictionPolicy#", e); 111 : throw('Error creating eviction policy: #evictionPolicy#','#e.message# #e.detail# #e.stackTrace#','CacheBoxProvider.EvictionPolicyCreationException'); 112 : } 113 :
**************************************************************
I read that this means it could not find the LRU Policy file which makes me thing another path issue.
My whole goal on our production server is to create multiple sites as subfolders of the root (e.g. http://www.mysite.com/subsite1, http://www.mysite.com/subsite2, etc.).
Any thoughts would be HUGE!! Thanks in advance. Side note, I'm a total newbee to ColdFusion coming from the .NET world trying to help out client.
Jeff
--------- Original Message ---------
--
--
You received this message because you are subscribed to the Google Groups "ColdBox Platform" group.
For News, visit http://blog.coldbox.org
For Documentation, visit http://wiki.coldbox.org
For Bug Reports, visit https://ortussolutions.atlassian.net/browse/COLDBOX
---
You received this message because you are subscribed to the Google Groups "ColdBox Platform" group.
To unsubscribe from this group and stop receiving emails from it, send an email to coldbox+u...@googlegroups.com.
To post to this group, send email to col...@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/coldbox/c07166c9-ca6e-4aa2-8836-3fff2d9fe6d9%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.
--------- Original Message ---------
To view this discussion on the web visit https://groups.google.com/d/msgid/coldbox/5e627afa-317d-4567-babd-88a9c2f9c978%40googlegroups.com.
I now get a new error. I added this.mappings = { "/root" = "/localhost-www/CFSite" }, updated the COLDBOX_APP_MAPPING and COLDBOX_APP_ROOT_PATH in the Application.cfc file. I'm still missing something probably obvious, any thoughts?
My folder structure is as follows:
Apache Installation Path
C:\Apache22\
ColdFusion Installation Path
C:\ColdFusion\
ColdBox Application path
C:\localhost-www\CFSite\
Apache httpd.conf Alias (see attached httpd-cf-development.conf included by httpd.conf)
C:\localhost-www\CFSite\ => http://locahost/CFSite/
Coldbox.cfc (see attached)
applicationHelper = "/root/includes/helpers/ApplicationHelper.cfm",
Application.cfc (see attached)
this.mappings = {
"/root" = "/localhost-www/CFSite"
};
// COLDBOX STATIC PROPERTY, DO NOT CHANGE UNLESS THIS IS NOT THE ROOT OF YOUR COLDBOX APP
//COLDBOX_APP_ROOT_PATH = getDirectoryFromPath( getCurrentTemplatePath() );
COLDBOX_APP_ROOT_PATH = "/localhost/CFSite";
// The web server mapping to this application. Used for remote purposes or static purposes
COLDBOX_APP_MAPPING = "/CFSite";
// COLDBOX PROPERTIES
COLDBOX_CONFIG_FILE = "";
// COLDBOX APPLICATION KEY OVERRIDE
COLDBOX_APP_KEY = "";
Could not find the included template /coldbox/system/includes/BugReport.cfm. |
Note: If you wish to use an absolute template path (for example, template="/mypath/index.cfm") with include, you must create a mapping for the path using the ColdFusion Administrator. Or, you can use per-application settings to specify mappings specific to this application by specifying a mappings struct to THIS.mappings in Application.cfc. |
||
The error occurred in C:/localhost-www/CFSite/coldbox/system/Bootstrap.cfc: line 514 |
||
512 : // Show Bug Report 513 : savecontent variable="local.exceptionReport"{ 514 : include "#bugReportTemplatePath#"; 515 : } 516 : } else { |
||
|
||
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.1; WOW64; Trident/7.0; rv:11.0) like Gecko |
|
Remote Address |
::1 |
|
Referrer |
||
Date/Time |
14-Sep-16 05:18 PM |
Stack Trace |
at cfBootstrap2ecfc1202367431$funcPROCESSEXCEPTION.runFunction(C:/localhost-www/CFSite/coldbox/system/Bootstrap.cfc:514) at cfBootstrap2ecfc1202367431$funcPROCESSCOLDBOXREQUEST.runFunction(C:/localhost-www/CFSite/coldbox/system/Bootstrap.cfc:289) at cfBootstrap2ecfc1202367431$funcONREQUESTSTART.runFunction(C:/localhost-www/CFSite/coldbox/system/Bootstrap.cfc:353) at cfApplication2ecfc120834661$funcONREQUESTSTART.runFunction(C:/localhost-www/CFSite/Application.cfc:41) coldfusion.tagext.lang.IncludeTag$NoSuchIncludeTemplateException: Could not find the included template /coldbox/system/includes/BugReport.cfm. at coldfusion.tagext.lang.IncludeTag.setTemplate(IncludeTag.java:366) at cfBootstrap2ecfc1202367431$funcPROCESSEXCEPTION.runFunction(C:\localhost-www\CFSite\coldbox\system\Bootstrap.cfc:514) at coldfusion.runtime.UDFMethod.invoke(UDFMethod.java:472) at coldfusion.runtime.UDFMethod$ReturnTypeFilter.invoke(UDFMethod.java:405) at coldfusion.runtime.UDFMethod$ArgumentCollectionFilter.invoke(UDFMethod.java:368) at coldfusion.filter.FunctionAccessFilter.invoke(FunctionAccessFilter.java:55) at coldfusion.runtime.UDFMethod.runFilterChain(UDFMethod.java:321) at coldfusion.runtime.UDFMethod.invoke(UDFMethod.java:220) at coldfusion.runtime.CfJspPage._invokeUDF(CfJspPage.java:2659) at cfBootstrap2ecfc1202367431$funcPROCESSCOLDBOXREQUEST.runFunction(C:\localhost-www\CFSite\coldbox\system\Bootstrap.cfc:289) at coldfusion.runtime.UDFMethod.invoke(UDFMethod.java:472) at coldfusion.runtime.UDFMethod$ArgumentCollectionFilter.invoke(UDFMethod.java:368) at coldfusion.filter.FunctionAccessFilter.invoke(FunctionAccessFilter.java:55) at coldfusion.runtime.UDFMethod.runFilterChain(UDFMethod.java:321) at coldfusion.runtime.UDFMethod.invoke(UDFMethod.java:220) at coldfusion.runtime.CfJspPage._invokeUDF(CfJspPage.java:2659) at cfBootstrap2ecfc1202367431$funcONREQUESTSTART.runFunction(C:\localhost-www\CFSite\coldbox\system\Bootstrap.cfc:353) at coldfusion.runtime.UDFMethod.invoke(UDFMethod.java:472) at coldfusion.runtime.UDFMethod$ReturnTypeFilter.invoke(UDFMethod.java:405) at coldfusion.runtime.UDFMethod$ArgumentCollectionFilter.invoke(UDFMethod.java:368) at coldfusion.filter.FunctionAccessFilter.invoke(FunctionAccessFilter.java:55) at coldfusion.runtime.UDFMethod.runFilterChain(UDFMethod.java:321) at coldfusion.runtime.UDFMethod.invoke(UDFMethod.java:220) at coldfusion.runtime.TemplateProxy.invoke(TemplateProxy.java:655) at coldfusion.runtime.TemplateProxy.invoke(TemplateProxy.java:444) at coldfusion.runtime.TemplateProxy.invoke(TemplateProxy.java:414) at coldfusion.runtime.CfJspPage._invoke(CfJspPage.java:2432) at cfApplication2ecfc120834661$funcONREQUESTSTART.runFunction(C:\localhost-www\CFSite\Application.cfc:41) at coldfusion.runtime.UDFMethod.invoke(UDFMethod.java:472) at coldfusion.runtime.UDFMethod$ReturnTypeFilter.invoke(UDFMethod.java:405) at coldfusion.runtime.UDFMethod$ArgumentCollectionFilter.invoke(UDFMethod.java:368) at coldfusion.filter.FunctionAccessFilter.invoke(FunctionAccessFilter.java:55) at coldfusion.runtime.UDFMethod.runFilterChain(UDFMethod.java:321) at coldfusion.runtime.UDFMethod.invoke(UDFMethod.java:220) at coldfusion.runtime.TemplateProxy.invoke(TemplateProxy.java:655) at coldfusion.runtime.TemplateProxy.invoke(TemplateProxy.java:444) at coldfusion.runtime.TemplateProxy.invoke(TemplateProxy.java:414) at coldfusion.runtime.AppEventInvoker.invoke(AppEventInvoker.java:108) at coldfusion.runtime.AppEventInvoker.onRequestStart(AppEventInvoker.java:278) at coldfusion.filter.ApplicationFilter.invoke(ApplicationFilter.java:411) at coldfusion.filter.RequestMonitorFilter.invoke(RequestMonitorFilter.java:48) at coldfusion.filter.MonitoringFilter.invoke(MonitoringFilter.java:40) at coldfusion.filter.PathFilter.invoke(PathFilter.java:112) at coldfusion.filter.LicenseFilter.invoke(LicenseFilter.java:30) at coldfusion.filter.ExceptionFilter.invoke(ExceptionFilter.java:94) at coldfusion.filter.ClientScopePersistenceFilter.invoke(ClientScopePersistenceFilter.java:28) at coldfusion.filter.BrowserFilter.invoke(BrowserFilter.java:38) at coldfusion.filter.NoCacheFilter.invoke(NoCacheFilter.java:46) at coldfusion.filter.GlobalsFilter.invoke(GlobalsFilter.java:38) at coldfusion.filter.DatasourceFilter.invoke(DatasourceFilter.java:22) at coldfusion.filter.CachingFilter.invoke(CachingFilter.java:62) at coldfusion.CfmServlet.service(CfmServlet.java:204) at coldfusion.bootstrap.BootstrapServlet.service(BootstrapServlet.java:89) at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:305) at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:210) at coldfusion.monitor.event.MonitoringServletFilter.doFilter(MonitoringServletFilter.java:42) at coldfusion.bootstrap.BootstrapFilter.doFilter(BootstrapFilter.java:46) at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:243) at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:210) at org.apache.catalina.core.StandardWrapperValve.invoke(StandardWrapperValve.java:224) at org.apache.catalina.core.StandardContextValve.invoke(StandardContextValve.java:169) at org.apache.catalina.authenticator.AuthenticatorBase.invoke(AuthenticatorBase.java:472) at org.apache.catalina.core.StandardHostValve.invoke(StandardHostValve.java:168) at org.apache.catalina.valves.ErrorReportValve.invoke(ErrorReportValve.java:98) at org.apache.catalina.valves.AccessLogValve.invoke(AccessLogValve.java:928) at org.apache.catalina.core.StandardEngineValve.invoke(StandardEngineValve.java:118) at org.apache.catalina.connector.CoyoteAdapter.service(CoyoteAdapter.java:414) at org.apache.coyote.ajp.AjpProcessor.process(AjpProcessor.java:203) at org.apache.coyote.AbstractProtocol$AbstractConnectionHandler.process(AbstractProtocol.java:539) at org.apache.tomcat.util.net.JIoEndpoint$SocketProcessor.run(JIoEndpoint.java:298) at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1145) at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:615) at java.lang.Thread.run(Thread.java:722) |