Application_noinheritance

Was just installing 3.1.0 for the first time and ran into issue. Was
going to use per application mapping to point back to ColdBox. Was
getting a strange error I attributed to somethign I did.

Went back to both a vanilla Advanced and a Simple Template application
by copying the folders from ApplicationTemplates, with coldbox then
copied into the folder without per app mapping. Using standard
application.cfc the application loads normally. Rename
application.cfc to old* and then copy application_noinheritance.cfc to
application.cfc (no changes), restart CF server and get the following
error:

The value returned from the onRequestStart function is not of type
boolean.
If the component name is specified as a return type, it is possible
that either a definition file for the component cannot be found or is
not accessible.

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) AppleWebKit/534.30
(KHTML, like Gecko) Chrome/12.0.742.112 Safari/534.30
Remote Address 10.102.200.106
Referrer
Date/Time 29-Aug-11 02:49 PM
Stack Trace

coldfusion.runtime.UDFMethod$InvalidReturnTypeException: The value
returned from the onRequestStart function is not of type boolean.
  at coldfusion.runtime.UDFMethod
$ReturnTypeFilter.invoke(UDFMethod.java:429)
  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:491)
  at coldfusion.runtime.TemplateProxy.invoke(TemplateProxy.java:337)
  at coldfusion.runtime.AppEventInvoker.invoke(AppEventInvoker.java:88)
  at
coldfusion.runtime.AppEventInvoker.onRequestStart(AppEventInvoker.java:
258)
  at coldfusion.filter.ApplicationFilter.invoke(ApplicationFilter.java:
349)
  at
coldfusion.filter.RequestMonitorFilter.invoke(RequestMonitorFilter.java:
48)
  at coldfusion.filter.MonitoringFilter.invoke(MonitoringFilter.java:
40)
  at coldfusion.filter.PathFilter.invoke(PathFilter.java:94)
  at coldfusion.filter.ExceptionFilter.invoke(ExceptionFilter.java:70)
  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:200)
  at
coldfusion.bootstrap.BootstrapServlet.service(BootstrapServlet.java:
89)
  at jrun.servlet.FilterChain.doFilter(FilterChain.java:86)
  at
coldfusion.monitor.event.MonitoringServletFilter.doFilter(MonitoringServletFilter.java:
42)
  at coldfusion.bootstrap.BootstrapFilter.doFilter(BootstrapFilter.java:
46)
  at jrun.servlet.FilterChain.doFilter(FilterChain.java:94)
  at jrun.servlet.FilterChain.service(FilterChain.java:101)
  at jrun.servlet.ServletInvoker.invoke(ServletInvoker.java:106)
  at jrun.servlet.JRunInvokerChain.invokeNext(JRunInvokerChain.java:42)
  at
jrun.servlet.JRunRequestDispatcher.invoke(JRunRequestDispatcher.java:
286)
  at
jrun.servlet.ServletEngineService.dispatch(ServletEngineService.java:
543)
  at
jrun.servlet.jrpp.JRunProxyService.invokeRunnable(JRunProxyService.java:
203)
  at jrunx.scheduler.ThreadPool
$DownstreamMetrics.invokeRunnable(ThreadPool.java:320)
  at jrunx.scheduler.ThreadPool
$ThreadThrottle.invokeRunnable(ThreadPool.java:428)
  at jrunx.scheduler.ThreadPool
$UpstreamMetrics.invokeRunnable(ThreadPool.java:266)
  at jrunx.scheduler.WorkerThread.run(WorkerThread.java:66)

Am I missing somethign, is there an edit I should have made? The
application is running at the root of its own site under IIS 7/Win
2008.

yes, this was reported and fixed on the app template. Just make sure the template “onRequestStart” returns true, that’s it.