Installing Coldbox

53 views
Skip to first unread message

bazjapan

unread,
Jul 3, 2010, 4:55:42 AM7/3/10
to ColdBox Platform
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

Dorioo

unread,
Jul 3, 2010, 8:59:55 AM7/3/10
to col...@googlegroups.com
You didn't send the error. Only a filepath. What is the error text?

- Gabriel

> --
> You received this message because you are subscribed to the Google Groups "ColdBox Platform" group.
> To post to this group, send email to col...@googlegroups.com
> To unsubscribe from this group, send email to coldbox-u...@googlegroups.com
> For more options, visit this group at http://groups-beta.google.com/group/coldbox
> For News, visit http://blog.coldbox.org
> For Documentation, visit http://wiki.coldbox.org
>

Sparky

unread,
Jul 3, 2010, 12:24:05 PM7/3/10
to ColdBox Platform
How have you mapped CB?

On Jul 3, 9:55 am, bazjapan <bazja...@gmail.com> wrote:
> H, I have just received the Coldbox book and am trying to i nstall it.

bazjapan

unread,
Jul 3, 2010, 1:20:20 PM7/3/10
to ColdBox Platform
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)

Dorioo

unread,
Jul 3, 2010, 1:34:40 PM7/3/10
to col...@googlegroups.com
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."

http://www.coldfusionjedi.com/forums/messages.cfm?threadid=97B51D46-19B9-E658-9D133430026969B3

- Gabriel

Sparky

unread,
Jul 3, 2010, 4:24:13 PM7/3/10
to ColdBox Platform
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

bazjapan

unread,
Jul 3, 2010, 9:09:20 PM7/3/10
to ColdBox Platform
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.

Sparky

unread,
Jul 4, 2010, 11:50:03 AM7/4/10
to ColdBox Platform
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.

bazjapan

unread,
Jul 4, 2010, 8:30:30 PM7/4/10
to ColdBox Platform
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

John Whish

unread,
Jul 5, 2010, 7:23:31 AM7/5/10
to ColdBox Platform
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
Reply all
Reply to author
Forward
0 new messages