Installing Coldbox

H, I have just received the Coldbox book and am trying to install it.
I have no difficulties on my local server but when I copy the coldbox
folder on the root of the remote server I get the following error
when trying to run the samples.

D:\inetpub\lohasjapan\coldbox\samples\coldbox\system\controller.cfc

it would seem there is a path issue.
Is there a easy way to fix this. Many thanks and I am looking forward
to getting Coldbox to rock.

Barry

You didn't send the error. Only a filepath. What is the error text?

- Gabriel

How have you mapped CB?

Sorry,
This is the error I get when trying to access the samples folder.
I simply downloaded the latest coldbox and put it in the server root.
Like I say the same installation works fine on my local box running
under coldfusion's server. (not IIS)

Error Occurred While Processing Request
Security: The requested template has been denied access to D:\inetpub
\lohasjapan\coldbox\samples\coldbox\system\controller.cfc.
The following is the internal exception message: access denied
(java.io.FilePermission D:\inetpub\lohasjapan\coldbox\samples\coldbox
\system\controller.cfc 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; U; Windows NT 6.1; en-US) AppleWebKit/
533.4 (KHTML, like Gecko) Chrome/5.0.375.86 Safari/533.4
Remote Address 119.173.68.78
Referrer http://lohasjapan.org/coldbox/samples/
Date/Time 03-Jul-10 10:15 AM
Stack Trace
java.security.AccessControlException: access denied
(java.io.FilePermission D:\inetpub\lohasjapan\coldbox\samples\coldbox
\system\controller.cfc read) at
cfcoldbox2ecfc180203609$funcLOADCOLDBOX.runFunction(D:\inetpub
\hostmyguild\coldbox\system\coldbox.cfc:54) at
cfApplication2ecfc849889160$funcONAPPLICATIONSTART.runFunction(D:
\inetpub\lohasjapan\coldbox\samples\Application.cfc:32)

java.security.AccessControlException: access denied
(java.io.FilePermission D:\inetpub\lohasjapan\coldbox\samples\coldbox
\system\controller.cfc read)
  at java.security.AccessControlContext.checkPermission(Unknown Source)
  at java.security.AccessController.checkPermission(Unknown Source)
  at java.lang.SecurityManager.checkPermission(Unknown Source)
  at java.lang.SecurityManager.checkRead(Unknown Source)
  at java.io.File.exists(Unknown Source)
  at
coldfusion.runtime.TemplateProxyFactory.getTemplateFileHelper(TemplateProxyFactory.java:
1515)
  at
coldfusion.cfc.ComponentProxyFactory.getProxy(ComponentProxyFactory.java:
51)
  at coldfusion.runtime.CFPage.CreateObject(CFPage.java:4781)
  at coldfusion.runtime.CFPage.CreateObject(CFPage.java:4795)
  at cfcoldbox2ecfc180203609$funcLOADCOLDBOX.runFunction(D:\inetpub
\hostmyguild\coldbox\system\coldbox.cfc:54)
  at coldfusion.runtime.UDFMethod.invoke(UDFMethod.java:472)
  at coldfusion.filter.SilentFilter.invoke(SilentFilter.java:47)
  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:2582)
  at cfApplication2ecfc849889160$funcONAPPLICATIONSTART.runFunction(D:
\inetpub\lohasjapan\coldbox\samples\Application.cfc:32)
  at coldfusion.runtime.UDFMethod.invoke(UDFMethod.java:472)
  at coldfusion.filter.SilentFilter.invoke(SilentFilter.java:47)
  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:490)
  at coldfusion.runtime.TemplateProxy.invoke(TemplateProxy.java:336)
  at coldfusion.runtime.AppEventInvoker.invoke(AppEventInvoker.java:88)
  at
coldfusion.runtime.AppEventInvoker.onApplicationStart(AppEventInvoker.java:
211)
  at coldfusion.filter.ApplicationFilter.invoke(ApplicationFilter.java:
224)
  at
coldfusion.filter.RequestMonitorFilter.invoke(RequestMonitorFilter.java:
48)
  at coldfusion.filter.MonitoringFilter.invoke(MonitoringFilter.java:
40)
  at coldfusion.filter.PathFilter.invoke(PathFilter.java:87)
  at coldfusion.filter.ExceptionFilter.invoke(ExceptionFilter.java:70)
  at
coldfusion.filter.BrowserDebugFilter.invoke(BrowserDebugFilter.java:
74)
  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:53)
  at coldfusion.CfmServlet.service(CfmServlet.java:200)
  at
coldfusion.bootstrap.BootstrapServlet.service(BootstrapServlet.java:
89)
  at jrun.servlet.FilterChain.doFilter(FilterChain.java:86)
  at
com.intergral.fusionreactor.filter.FusionReactorFilter.b(FusionReactorFilter.java:
376)
  at
com.intergral.fusionreactor.filter.FusionReactorFilter.c(FusionReactorFilter.java:
254)
  at
com.intergral.fusionreactor.filter.FusionReactorFilter.doFilter(FusionReactorFilter.java:
164)
  at jrun.servlet.FilterChain.doFilter(FilterChain.java:94)
  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)

Are you running on shared hosting? It's likely to do with sandbox security.

Maybe this is applicable to you: "This happened to me on a shared
hosting environment trying to run Model-Glue.
The hosting company had to give me permission to the CFTags directory."

- Gabriel

def sandbox security, if you are in a shared environment ask your
hosting company to set the correct permissions i think you need create
object

Thanks Dorioo and Sparky for getting back to me. I have sorted it with
my hosting company. So everything is good now.
Seems that another site on the same box also had coldbox and this was
causing the issues.
Once again thanks.

in that case if they have mapped it for you then thats ok but remember
if they change or update the mapping it could brake your app. I would
use per application mapping in this sort of environment.

Thanks Sparky,

I am a bit of a noob at this. Where should I be looking to set the
mappings? In the app's coldox.cfc?

many thanks,
Barry

If your host has created a mapping in the ColdFusion administrator,
called "Coldbox" then you should be able to run a Coldbox application
and it will work. However, if the mapped version of ColdBox is
different to the version you want to use (say they have 2.6 installed
but you're using 3), then you need to either upload the Coldbox files
to the webroot of your website.

As your Application cfc extends ColdBox, you can't use per-application
mappings to map to Coldbox. You could alternatively use ColdBox
without inheritance.

This page explains the options:
http://wiki.coldbox.org/wiki/Bootstrapper.cfm