views:

131

answers:

2

I am new to ColdFusion and ColdBox (and programming). I tried to setup ColdBox but some of the links in the sample applications are broken.

My configuration is a GlassFish v3 installation with the current Railo OSS. I access my site through Apache 2.2.14.

So instead of http://127.0.0.1:8080/railo/ I access my environment trough http://railo/.

In Railo I have a webroot mapping / to C:/webapps/myproject/.

I have copied the current ColdBox 3M4 to C:/webapps/myproject/coldbox. I can access the dashboard through http://railo/coldbox/dashboard/index.cfm and have access to all options.

My problems start the moment I try to open the sample gallery:

HTTP Status 500 -
type Exception report
message
description The server encountered an internal error () that prevented
it from fulfilling this request.
exception
java.io.FileNotFoundException: C:\webapps\viss-dev\coldbox\samples
(Zugriff verweigert)
note The full stack traces of the exception and its root causes are
available in the GlassFish v3 logs.
GlassFish v3 

OK, no problem, just enter the link directly: http://railo/coldbox/samples/index.cfm.

The site looks plain, who cares - BUT all local links look like this: http://127.0.0.1:8080/coldbox/samples/applications/helloworld/index.cfm (railo is replaced with 127.0.0.1:8080).

Looks like trouble. To make my confusion perfect: when I try to access the login app: http://railo/coldbox/samples/applications/sampleloginapp/index.cfm and hit the submit button, I am redirected to this address: http://railo/railo/coldbox/samples/applications/sampleloginapp/index.cfm.

I believe that this is not really ColdBox-related, but it manifests itself when I try to use ColdBox, so here I am.

P.S.: amazon.de takes too long to ship the ColdBox book :(

+1  A: 

Since you are new to ColdFusion (and programming in general), I would recommend developing against Adobe ColdFusion. The Developer Edition of ColdFusion is free and available from Adobe.com. You won't need to mess around or configure GlassFish since Adobe ColdFusion comes with a baked-in JEE and web server.

Just install the 'Stand-alone' version of ColdFusion Developer Edition, copy the ColdBox files into the webroot and in less than 15 minutes you be up and running.

You should also check out ColdFusion Builder which is currently available in beta from http://labs.adobe.com. It has full language support and integrated help content for learning the ins-outs of the language.

As far as the ColdBox book goes, it's available as an eBook if you really can't wait. ;-)

DISCLAIMER: I spend about 50% of my waking life devoted to making ColdFusion better as the CF Product Manager at Adobe. :-)

Adrocknaphobia
A: 

i have given up on glassfish and i am now struggling with tomcat :D

mrt181