Skip to main content
Known Participant
April 5, 2010
Answered

Unix/Windows Issue?

  • April 5, 2010
  • 2 replies
  • 837 views

Hi,

This query runs fine on a Unix web server

<cfinvoke

component="dir1.dir2.QrySomething" method="myMethod" returnvariable="myVariable"></cfinvoke>

but my localhost which is Windows XP give me the error

Could not find the ColdFusion Component or Interface dir1.dir2.QrySomething.


Suggestions please?

    This topic has been closed for replies.
    Correct answer Adam Cameron.

    Well the CF server doesn't care (or know) what's set up in Eclipse, so the vagaries of your Eclipse set-up are neither here nor there in this equation.

    The code needs to point to where ColdFusion can find it on the file system.

    --

    Adam

    2 replies

    flhtflhtAuthor
    Known Participant
    April 5, 2010

    That helped A Cameron!

    I found that my pc eclipse work area  is setup up C:\ColdFusion8\wwwroot\dev while the root is wwwroot.

    So it's probably searching for file C:\ColdFusion8\wwwroot\dir1\dir2\QrySomething.cfc when the file is actual location is C:\ColdFusion8\wwwroot\dev\dir1\dir2\QrySomething.cfc.

    Would you agree?

    Adam Cameron.Correct answer
    Inspiring
    April 5, 2010

    Well the CF server doesn't care (or know) what's set up in Eclipse, so the vagaries of your Eclipse set-up are neither here nor there in this equation.

    The code needs to point to where ColdFusion can find it on the file system.

    --

    Adam

    flhtflhtAuthor
    Known Participant
    April 5, 2010

    Sounds like you agree. I just need to remove dev from the file path.

    I am aware ColdFusion and Eclipse don't talk to each other.

    Thank you for your help!

    Inspiring
    April 5, 2010

    Is /dir1/dir2/QrySomething.cfc valid, either as a path from the doc root or via a CF mapping (eg: /dir1 is mapped to C:\some\other\path, and C:\some\other\path\dir2\QrySomething.cfc exists at that location)?

    --

    Adam