Cannot install the framework

27 views
Skip to first unread message

dhaval

unread,
Feb 2, 2010, 9:50:53 AM2/2/10
to Mach-II for CFML
Hello, I followed the video tutorial and installed the framework, but
when I access the url, I am getting this error. I am also new the
coldfusion.

Railo 3.1.2.001 Error (Expression)
Message invalid component definition, can't find
MachII.framework.AppLoader
Stacktrace The Error Occurred in
/Users/dhaval/Programs/railo-3.1.2.001-railo-express-macosx/webroot/
website/MachII/mach-ii.cfc: line 105
103: <!--- Create the AppLoader. No locking requires if called during
the onApplicationStart() event. --->
104: <cfset application[appKey] = StructNew() />
105: <cfset application[appKey].appLoader = CreateObject("component",
"MachII.framework.AppLoader").init(MACHII_CONFIG_PATH,
MACHII_DTD_PATH, AppKey, MACHII_VALIDATE_XML) />
106: <cfset request.MachIIReload = FALSE />
107: </cffunction>

called from/Users/dhaval/Programs/railo-3.1.2.001-railo-express-
macosx/webroot/website/MachII/mach-ii.cfc: line 64
62: hint="Run on the application start event. Override to provide
customize functionality.">
63: <!--- Load up the framework --->
64: <cfset LoadFramework() />
65:
66: <cfreturn TRUE />

I am running railo express. I am sure this is some config issue, but I
dont understand what it is.

Matthew Woodward

unread,
Feb 2, 2010, 10:12:06 AM2/2/10
to mach-ii-for...@googlegroups.com
On Tue, Feb 2, 2010 at 6:50 AM, dhaval <dhru...@gmail.com> wrote:
Hello, I followed the video tutorial and installed the framework, but
when I access the url, I am getting this error. I am also new the
coldfusion.


Are the Mach-II files in your webroot or in a directory below that?

--
Matthew Woodward
ma...@mattwoodward.com
http://blog.mattwoodward.com
identi.ca/Twitter: @mpwoodward

Please do not send me proprietary file formats such as Word, PowerPoint, etc. as attachments.
http://www.gnu.org/philosophy/no-word-attachments.html

dhaval

unread,
Feb 2, 2010, 10:35:37 AM2/2/10
to Mach-II for CFML
It is in the directory below that. This is the path: railo-3.1.2.001-
railo-express-macosx/webroot/website all the files are in the
"website" directory.

On Feb 2, 10:12 am, Matthew Woodward <m...@mattwoodward.com> wrote:


> On Tue, Feb 2, 2010 at 6:50 AM, dhaval <dhruva...@gmail.com> wrote:
> > Hello, I followed the video tutorial and installed the framework, but
> > when I access the url, I am getting this error. I am also new the
> > coldfusion.
>
> Are the Mach-II files in your webroot or in a directory below that?
>
> --
> Matthew Woodward

> m...@mattwoodward.comhttp://blog.mattwoodward.com

Matthew Woodward

unread,
Feb 2, 2010, 10:38:35 AM2/2/10
to mach-ii-for...@googlegroups.com
On Tue, Feb 2, 2010 at 7:35 AM, dhaval <dhru...@gmail.com> wrote:
It is in the directory below that. This is the path: railo-3.1.2.001-
railo-express-macosx/webroot/website   all the files are in the
"website" directory.

It has to be in the webroot or you have to create a mapping. Note that if you're using virtual hosts it can be in the root of a virtual host as well. The key is that /MachII needs to get you to the MachII directory. If it doesn't, it's in the wrong place or you need to create a mapping.

--
Matthew Woodward
ma...@mattwoodward.com

Peter J. Farrell

unread,
Feb 2, 2010, 10:49:29 AM2/2/10
to mach-ii-for...@googlegroups.com
Matthew Woodward said the following on 02/02/10 09:38:
On Tue, Feb 2, 2010 at 7:35 AM, dhaval <dhru...@gmail.com> wrote:
It is in the directory below that. This is the path: railo-3.1.2.001-
railo-express-macosx/webroot/website   all the files are in the
"website" directory.

It has to be in the webroot or you have to create a mapping. Note that if you're using virtual hosts it can be in the root of a virtual host as well. The key is that /MachII needs to get you to the MachII directory. If it doesn't, it's in the wrong place or you need to create a mapping.
Just to reiterate what Matt just said -- you have to be able to get to MachII from the root of your domain.  So if you are using localhost, then the Mach-II files should be located in http://localhost/MachII (if you looking from the perspective of the browser).  The same applies if you are using virtual domains: http://mysite.com/MachII. If you put MachII elsewhere such as in http://localhost/website/MachII, then you'll need to create a CFML mapping (called /MachII) in the administrator or create a per application mapping (called /MachII) in your application's Application.cfc file that points to the that path to disk.

This is how the way CFML engine treat paths and there isn't any way for Team Mach-II to change that.  I hope this helps resolve your issue.

Best,
.Peter

dhaval

unread,
Feb 2, 2010, 12:18:55 PM2/2/10
to Mach-II for CFML
Thank you guys for your help, I moved MachII in webroot and everything
is working fine now.

Sincerely,
Dhaval

Reply all
Reply to author
Forward
0 new messages