Solved

cfclocation path being added to itself

Posted on 2011-03-02
4
372 Views
Last Modified: 2012-05-11
CF9 on Red Hat / Apache

I'm setting my orm settings in Application.cfc....


             THIS.ormsettings={logsql="true",cfclocation = "var/www/html/mysite/ORM/CFC/"};      

I have triple checked the case and paths.

When trying to load my index page I get this error:  


Message: Path /var/www/html/mysite/var/www/html/mysite/ORM/CFC specified in the cfclocation does not exist.

It's adding the cfclocation path to itself.
0
Comment
Question by:MFredin
[X]
Welcome to Experts Exchange

Add your voice to the tech community where 5M+ people just like you are talking about what matters.

  • Help others & share knowledge
  • Earn cash & points
  • Learn & ask questions
  • 2
4 Comments
 
LVL 52

Expert Comment

by:_agx_
ID: 35023287
It looks like it's treating it as a relative path.  If it should be an absolute path, try adding a "/" in front

ie       /var/www/html/mysite/ORM/CFC/

0
 
LVL 11

Accepted Solution

by:
Brijesh Chauhan earned 250 total points
ID: 35023290
Your webroot is var/www/html/mysite/, so CF starts searching from there..

THIS.ormsettings={logsql="true",cfclocation = "ORM/CFC/"};       --- just use this.. should work
0
 

Author Comment

by:MFredin
ID: 35023292
thanks agx,

I tried that but same deal :(
0
 
LVL 52

Expert Comment

by:_agx_
ID: 35023319
@MFredin

I was just going to say then convert it to a relative path of course ;-) but someone beat me to it.
0

Featured Post

What does it mean to be "Always On"?

Is your cloud always on? With an Always On cloud you won't have to worry about downtime for maintenance or software application code updates, ensuring that your bottom line isn't affected.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

PROBLEM: How to add your own buttons to the bottom toolbar with paging info ( result count ). While creating a cfgrid, I ran into an issue where I wanted to embed my own custom buttons where the default ones ( insert / delete / etc… ) are for aes…
I spent nearly three days trying to figure out how incorporate OAuth in Coldfusion for the Eventful API. Hopefully, this article will allow Coldfusion Programmers to buzz through the API when they need to. Basically, what this script does is authori…
In this video, viewers are given an introduction to using the Windows 10 Snipping Tool, how to quickly locate it when it's needed and also how make it always available with a single click of a mouse button, by pinning it to the Desktop Task Bar. Int…
Monitoring a network: why having a policy is the best policy? Michael Kulchisky, MCSE, MCSA, MCP, VTSP, VSP, CCSP outlines the enormous benefits of having a policy-based approach when monitoring medium and large networks. Software utilized in this v…

622 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question