Re: [framework-one] unable to deduce dot-relative paths outside webroot

213 views
Skip to first unread message

Sean Corfield

unread,
May 20, 2013, 5:52:36 PM5/20/13
to framew...@googlegroups.com
On Wed, May 15, 2013 at 11:35 AM, David Schaller
<davidrs...@gmail.com> wrote:
> unable to deduce dot-relative paths outside webroot:
> C:/websites/testSUG/mobile/controllers/main.cfc

So this is telling you that DI/1 could not figure out the dot-relative
path for the main controller CFC.

You get that exception if DI/1 thinks you've specified a
non-root-relative path - you have: . - and the expanded path of the
CFC - that C:/websites/... path - does not start with the same
case-sensitive sequence as expandPath("/").

Could you tell us what expandPath("/") is? (where you set up your bean
factory, just dump expandPath("/") and abort so you can see exactly
what path you get)

Could you also verify whether you have a / mapping defined in your
administrator and, if so, exactly what value it has?
--
Sean A Corfield -- (904) 302-SEAN
An Architect's View -- http://corfield.org/
World Singles, LLC. -- http://worldsingles.com/

"Perfection is the enemy of the good."
-- Gustave Flaubert, French realist novelist (1821-1880)

David Schaller

unread,
May 21, 2013, 9:06:04 AM5/21/13
to framew...@googlegroups.com
Thanks for responding Sean.

Through much experimentation, I was able to determine that DI/1 was attempting to load cfc's from all three websites on the test server. I reviewed case-sensitivity but the most likely cause was a mapping in the CF Server admin. Although I have converted to using mappings set within the Application.cfc , I am currently unable to remove the mapping in the CF Admin, I am overwriting it within the Application.cfc.

Thanks again.
David
Reply all
Reply to author
Forward
0 new messages