Document root has to be a physical path on the remote server e.g. "C:\webroot". This is the path on the remote machine and not mapped path on the machine on which CF Builder is installed.
In mappings, local path is the path on the machine on which CF Builder is installed. Remote path is the path on the remote machine, and not the URL.
e.g. if CF is installed at D:\Coldfusion on remote machine and on the your local machine (where CF Builder is installed) you have corresponding files in C:\ColdFusion, then when setting up remote server, you would set Document root to D:\Coldfusion\wwwroot and then you would create a mapping with local path as C:\ColdFusion\wwwroot and remote path as D:\ColdFusion\wwwroot.
CF Builder uses this information when you preview files and when you debug a file.
Great, that definitely gets the right URL to show up in the "sample url" field in "ColdFusion Server Settings." It still throws up this message when I try to preview the page; "Unable to resolve file on remote machine with mappings provided. Make sure the debugging file has corresponding mapping in server."
Here's an example that uses the style of mappings I'm using:
Server Name: foosite.com
Host Name: dev1.foosite.com
WebServer Port: 80
Remote Server Settings
Document Root: c:\dev.wwwroot\foosite
Local Path: z:\foosite
Remote Path: c:\dev.wwwroot\foosite
Remote Server Web Root: c:\dev.wwwroot\foosite
Install Location: c:\dev.wwwroot\foosite\extensions
Almost there! Thanks again for any help
Tell us the location of the file your trying to preview. Seems the file your trying to preview is doesn't in the location of mappings you added in server.
For example :-
I have c:\work\site\preview.cfm to preview. The corresponding file in server is in C:\ColdFusion9\wwwroot\site\preview.cfm
So you need to add mapping in server
Local path = c:\work
Remote path = C:\ColdFusion9\wwwroot
Local path = c:\work\site
Remote path = C:\ColdFusion9\wwwroot\site
I think I just figured it out. I've been using periods in my folder names as it corresponds well with the domains. When I just tried one project without periods in the document root I was able to preview the file with no problems. Looks like eclipse doesn't like the periods.
Well, looks like I have to think about migrating the folders to new non-period containing ones.
Thanks for the help!
I found all the setup fields a little ambiguous too. More guidance is definately required for setting up a remote CF server. I only realised I should have selected port 8500 by accident after watching one of Ben Forta's videos! Why doesn't it pre-fill with the typical port number to help people get started? Better tooltips would go a long way to help.
Is this really a problem for Eclipse? Surely not? Well, it could explain the problem.